Help
Install with Google Tag Manager
If your site loads its scripts through Google Tag Manager, add the chat widget there too. It needs the Tag Manager version of the code, not the one-line code.
Last updated
1. Copy the Tag Manager code in Retily
- In the app, go to Settings › Widget.
- Next to your chat widget, click Install.
- Under Add it to every page of your site, choose Google Tag Manager.
- Click Copy Tag Manager code.
It is a few lines, with your own workspace name:
<script>
(function () {
var s = document.createElement("script");
s.src = "https://app.retily.com/v1/widget.js";
s.setAttribute("data-org", "your-workspace");
document.head.appendChild(s);
})();
</script>Why not the one-line code?
Tag Manager rewrites a pasted script tag and drops its data-org, so the widget would not know which workspace it belongs to and would show nothing.
2. Make the tag
- In your Tag Manager container, go to Tags and click New.
- Click Tag Configuration and choose Custom HTML. Paste the code.
- Under Triggering, choose a trigger that fires on every page. Every web container has Initialization - All Pages.
- Click Save.
3. Publish
- Click Submit, at the top right.
- Keep Publish and Create Version selected, then click Publish.
4. Check it
Tag Manager adds the widget after the page opens, so the check can’t see it in your page’s HTML. Open your site once in a browser, then run the check:
- Back in Retily’s install dialog, under Check your site, type your site’s address.
- Click Check installation. Once the widget has loaded on your site, it says Installed.
- A second chat widget has its own Tag Manager code, with a data-widget line too. Copy it from that widget’s Install.
- Still no chat? Look at the widget’s Allowed Domains, as Install the chat widget explains.
Related
Still stuck?
Write to support@retily.com with your support email address and what you tried. Or see all help pages.