HowdyGo SDK
The HowdyGo SDK is a JavaScript library that lets your site interact with embedded HowdyGo demos. Use it to tag viewers with their identity from your app, swap personalization tokens for real values, open a demo in a pop-up modal, or drive a demo programmatically from your own UI.
Quick start
Add the SDK snippet near the top of your page ideally in the <head> of your website.
<script>
!function(h,o,w,d,y,g,o0){if(!(h.HowdyGoSDK||h[y]&&(h[y].q||h[y]._stub)||h._howdygo_loading)){var e=h.HOWDYGO_CONFIG||{};d=e.sdkUrl||d,o.querySelector('script[src="'.concat(d,'"]'))||(h._howdygo_loading=!0,Object.keys(e.config||{}).length>0&&(h.howdygo_config=e.config),h[y]=h[y]||new Proxy({},{get:function(e,n){return"q"===n?e[n]||[]:"_stub"===n||function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{for(var r=[n],a=0;a<arguments.length;a++)r.push(arguments[a]);r.push({timestamp:Date.now()}),(h[y].q=h[y].q||[]).push(r)}catch(e){console.error("HowdyGo SDK Snippet: Failed to queue method call:",e)}return h[y]}}}),(g=o.createElement(w)).async=!0,g.src=d,g.onload=function(){return h._howdygo_loading=!1},g.onerror=function(){h._howdygo_loading=!1,console.error("HowdyGo SDK: Failed to load",d)},(o0=o.getElementsByTagName(w)[0])&&o0.parentNode?o0.parentNode.insertBefore(g,o0):o.head&&o.head.appendChild(g))}}(window,document,"script","https://app.howdygo.com/sdk/index.js","howdygo");
</script>Once the snippet loads, the global window.howdygo object is available.
What you can do
How it works
The SDK finds HowdyGo iframes on the page and registers them by ID. Methods you call before an iframe registers are held in a queue and sent once it loads. Stored identity is persisted locally so it survives page navigation.
Last updated on