How do I add the agent with Google Tag Manager?
If you use Tag Manager, add the agent without touching your site's code: add it as a Custom HTML tag on all pages and publish.
Get the code first
- Publish your agent in Agenola. A draft shows as closed on your site.
- In the flow editor, open “Add to website” from the arrow next to “Publish” and choose the layout. The first time you publish an agent, this window opens on its own.
- In the “Allow your websites” step, type your site's address and click “Add”. The agent only opens on the websites you add here.
- Click “Copy code”.
Add it to Tag Manager
- Open your container in Tag Manager.
- Click “Tags” → “New” and name the tag (e.g. Agenola).
- Click “Tag Configuration” and select “Custom HTML”.
- Paste the code into the “HTML” field.
- Click “Triggering”, select “All Pages”, then click “Save”.
- Click “Submit” at the top right, select “Publish and Create Version” and click “Publish”. The code doesn't run on your site until you publish.
Menu names can look different depending on the language and version of your site's panel.
Check that it works
Open your site at its live address and refresh the page. The agent button appears in the corner of the page.
Don't look for the button in the editor's preview: the agent only opens on the addresses you allow.
If the button doesn't appear, check that your site's address is in the list in the “Add to website” window. If your site has another domain, add that too.