Installing Pipeback Messenger through Google Tag Manager is quick and straightforward. Follow these simple steps to get your chat widget up and running.
Installation Steps
Log in to your Google Tag Manager account and create a new tag by clicking Tags and then New. Select Custom HTML as your tag type.
Paste the following code into the HTML field:
<script>
(function() {
window.$pipeback = window.$pipeback || [];
window.PIPEBACK_ID = "YOUR_PIPEBACK_ID_HERE";
var el = document.createElement("script");
el.setAttribute("src", "https://widget.pipeback.com/l.js");
el.setAttribute("async", "true");
document.getElementsByTagName("head")[0].appendChild(el);
})();
</script>Replace YOUR_PIPEBACK_ID_HERE with your actual Pipeback ID. You can find your ID at Messenger Settings.
Set the trigger to All Pages or choose specific pages where you want the messenger to appear. Save your tag with a descriptive name like Pipeback Messenger.
Preview your changes to test the installation and then publish your container when everything looks good.
Next Steps
Once installed, you can use all available methods from our SDK. Access our complete Pipeback Messenger SDK Documentation to learn more about programmatically controlling your chat widget.
