If your site already runs Google Tag Manager, you can deploy Social Intents without touching site code at all - the chat snippet becomes a GTM tag you can publish, version, target, and roll back like any other. This is the standard route for marketing teams without direct code access and for organizations with change-control processes.
Install as a Custom HTML Tag
Copy Your Snippet
In Social Intents, go to Chat Widgets → your widget → Deploy and copy the JavaScript snippet.
Create the Tag
In GTM, go to Tags → New, name it "Social Intents Live Chat", choose Custom HTML as the tag type, and paste the snippet into the HTML box.
Set the Trigger
Add the All Pages (Page View) trigger for site-wide chat. For selected sections only, create a Page View trigger with a path condition - e.g., Page Path contains /support.
Preview, Then Publish
Use GTM's Preview mode to load your site and confirm the tag fires and the chat bubble appears. Then Submit → Publish. Run the chat test checklist on the live site.
Targeting Patterns
| Goal | GTM trigger setup |
|---|---|
| Chat everywhere | All Pages |
| Support section only | Page View where Page Path contains /support |
| Exclude checkout | All Pages + an exception trigger where Page Path contains /checkout |
| Different widgets per section | Two Custom HTML tags (one per widget snippet) with mutually exclusive path triggers - see multiple widgets |
Tip: you can also install site-wide and use the widget's own Page targeting rules (Settings tab) instead of GTM triggers - keep the logic in one place, whichever your team maintains more comfortably.
Consent Mode and Privacy
If you gate tags behind a consent management platform, classify the chat tag according to your policy - most teams treat live chat as a functional/essential tag since it only activates when a visitor chooses to chat. For GDPR specifics, see GDPR Compliance and Visitor Privacy and Consent.
Chat Events in Google Analytics
Want chat starts and leads as GA4 events for conversion reporting? That is a separate, complementary setup - see Google Analytics Event Tracking. GTM installing the widget and GA4 receiving chat events work independently.
Troubleshooting
Tag fires in Preview but no widget appears
Check the browser console for content-security-policy (CSP) errors - sites with strict CSP must allow the Social Intents script domain. Also confirm document.write is off for the tag (the snippet does not need it).
Widget appears twice
The snippet is installed both directly in site code and via GTM. Remove one - GTM is usually the keeper.
Tag blocked for some visitors
If chat is gated behind analytics/marketing consent, visitors who decline consent get no chat. Reclassify as functional if that matches your privacy policy.
Frequently Asked Questions
Is GTM installation slower than direct installation?
Marginally - GTM adds one hop before the snippet loads. In practice the difference is tens of milliseconds and invisible; the widget itself loads asynchronously either way.
Can I use a server-side GTM container?
The chat widget is a browser-side UI, so it belongs in your web container. Server-side containers can still receive chat webhook data separately - see Webhooks.
Do widget setting changes require republishing GTM?
No. The snippet never changes for a given widget - colors, text, AI, and team changes apply instantly without touching GTM.