Install with the one-line script
Install AutoConverse Agent directly on your site with a single line of code. No tag manager required.
Install steps
Add the following script just before your closing
</body>tag.One-line install<script src="https://app.agent.autoconverse.ai/dist/js/launcher.min.js" data-uc-allowed="true" async onload="AgentLauncher.init()"></script>The script automatically loads the AutoConverse Agent launcher and initializes it when ready.
This snippet only loads the AutoConverse Agent launcher. It is not a Google Analytics / GA4 measurement script and does not include a Measurement ID.If you don’t see the widget appear immediately, try a hard refresh (Ctrl + F5 on Windows or Cmd + Shift + R on Mac).
For assistance or custom installation options, contact supportautoconverse.co.uk.
Open the Agent from your own button
If you want to launch AutoConverse from your own button or link, load the script as normal, call AgentLauncher.init(), then call AgentLauncher.open() from your click handler.
<button type="button" id="openAgentBtn">Chat with us</button>
<script src="https://app.agent.autoconverse.ai/dist/js/launcher.min.js"
data-uc-allowed="true"
async
onload="AgentLauncher.init()"></script>
<script>
document.getElementById("openAgentBtn").addEventListener("click", function () {
if (window.AgentLauncher) {
AgentLauncher.open();
}
});
</script>data-uc-allowed="true", exactly as in the one-line snippet above. Leave it in place so the Agent is permitted to load on your site.Analytics (Google Analytics / GTM)
AutoConverse does not add its own Google Analytics tag to your page. The launcher only reports activity into the analytics you already have.
When Enable Google analytics is turned on for your site in the AutoConverse CMS, the launcher sends events into your page’s existing dataLayer (GTM) or gtag. Events are named autoconverse_*.
If your analytics runs through GTM, follow GA4 events to forward those events to GA4.
Remove or disable the script
Simply remove the script line from your site’s HTML or comment it out. The Agent button and assistant stop loading immediately.