Comment on page
Install In Google Tag Manager (GTM)
VERY IMPORTANT: In order to get your Engagement Widget™ to work when installed with Google Tag Manager, you must use the installation script template below. You will need to replace the WIDGET ID in the Javascript.
Engagement Widget Installation Script for GTM
1
<script>
2
(function () {
3
var script = document.createElement('script');
4
script.async = true;
5
script.crossOrigin = 'anonymous';
6
script.type = 'module';
7
script.id = 'engagementWidget';
8
script.src = 'https://cdn.chatwidgets.net/widget/livechat/bundle.js';
9
script.setAttribute('data-env', 'portal-api');
10
script.setAttribute('data-instance', 'WIDGET_ID_GOES_HERE');
11
script.setAttribute('data-container', '#engagement-widget-container');
12
document.body.appendChild(script);
13
}());
14
</script>
Last modified 30d ago