Add an AI agent with Google Tag Manager

Updated November 1, 2026

Create a Custom HTML tag with your AgentGuide script, set the trigger to All Pages, then submit the container to publish.

If your site already loads Google Tag Manager, you can add AgentGuide without touching the site code.

Google Tag Manager Custom HTML tag with the AgentGuide script and the All Pages trigger
A Custom HTML tag on the All Pages trigger.

Steps

  1. In AgentGuide, open your agent → Install agent, pick Google Tag Manager and click Copy code.
The install window with Google Tag Manager selected and the Copy code button
In Install agent: 1 pick Google Tag Manager · 2 Copy code.
  1. In Tag Manager, open your container and click Tags → New.
  2. Choose Tag Configuration → Custom HTML and paste the code.
  3. Under Triggering, choose All Pages.
  4. Name the tag (for example "AgentGuide") and Save.
  5. Click Submit, then Publish.
  6. Open your site. The install window in AgentGuide changes to Running on your address.
<script src="https://agentguide.site/api/embed/script.js?embedId=YOUR_EMBED_ID" async></script>
Get started

Put your first agent on your website today.

Start free. Add your website or documents, pick Sales or Support, and watch it answer your customers.

  • Free plan, no credit card
  • Answers from your own content
  • Sales, Support, or both