To integrate Salespeak widget with Google Tag Manager go to Salespeak > Widget > Website Deployment and click Copy Embedded Code button to copy the script.
After that, go to Google Tag Manager > New Tag > in the pop-out with an untitled tag choose Custom HTML Tag.
In the empty HTML box paste the script you copied from Salespeak:
Below there's an example of how the script would look like. Notice data-org-id and data-campaign-id values are dynamic:
<script>
(function() {
var script = document.createElement('script');
script.src = "https://app.salespeak.ai/widget.js"
script.setAttribute('data-org-id', '<your org id>');
script.setAttribute('data-campaign-id', '<your campaign id>');
script.setAttribute('data-launcher', 'sticky-input');
var bodyElement = document.querySelector('body');
bodyElement.appendChild(script);
})();
</script>
Below there's an example of how the script would look like. Notice data-org-id and data-campaign-id values are dynamic:
Tags
- Make sure you name your Tag
- Choose a trigger
- Choose to fire it on “All pages” unless you’d like to do something else specific to Tags and Data Layers you've created within Google Tag Manager
- Save the tag
- Preview the changes
- Submit your changes permanently
- Describe your version and publish it
To read more information about how to integrate the different launchers or how to do a website deployment you can also check:
-
- Webflow Integration documentation.
- Wordpress Integration documentation.