Install guides / Google Tag Manager
Install Embent with Google Tag Manager
Already run your site through Google Tag Manager? Add Embent as a Custom HTML tag — no direct code access to your site required.
Before you start
- A Google Tag Manager container already installed on your site, with publish access to it.
- If your site uses a consent banner wired into GTM's consent settings, the tag can be delayed or blocked until the visitor responds — see the FAQ.
Steps
Copy your embed snippet
In your Embent dashboard, open your bot's Overview and copy the embed snippet. It looks like this:
<script src="https://api.embent.com/widget.js" data-bot="YOUR_BOT_ID" async></script>Create a Custom HTML tag
In Tag Manager, go to Tags → New, and under Tag Configuration choose Custom HTML. Paste the snippet into the HTML field.
Fire it on all pages and publish
Under Triggering, choose a Page View trigger scoped to all pages (most containers already have an "All Pages" trigger you can select) so the tag fires on every page load. Save the tag, then click Submit → Publish to push it live.
Check it worked
Use Preview mode to check the tag fires, then publish and reload your live site: the chat bubble appears in the corner. Ask it a question about your own pages and it should answer with a citation.
If it doesn't work
Tried it and the widget isn't showing? These fix nearly every case.
Common questions
The chat bubble in the corner is Embent itself, running on this page — ask it anything about us.