Deploy the Social Intents widget using Google Tag Manager (GTM). This method lets you add or remove the chat widget without changing your website's source code.
Setup
Create a New Tag
In your GTM workspace, click Tags > New.
Choose Tag Type
Click Tag Configuration and select Custom HTML.
Paste the Code
Enter the Social Intents embed code:
<script src="https://www.socialintents.com/api/chat/socialintents.1.4.js#YOUR_WIDGET_ID" async="async"></script>
Set the Trigger
Click Triggering and select All Pages (or create a custom trigger for specific pages).
Save and Publish
Name your tag (e.g., "Social Intents Live Chat"), click Save, then Submit and Publish your container.
Page-Specific Targeting
To show the widget only on certain pages, create a GTM trigger with URL conditions instead of using "All Pages". Alternatively, use the widget's built-in URL targeting rules which give you the same control without creating additional GTM triggers.
Pre-Populating Visitor Info via GTM
You can pass visitor information by adding a second Custom HTML tag that runs before the widget tag:
<script>
window.socialintents = window.socialintents || {};
window.socialintents.settings = {
name: "{{User Name}}",
email: "{{User Email}}"
};
</script>
Set this tag's priority higher than the widget tag, or use tag sequencing to ensure it runs first.