Google Tag Manager
Google Tag Manager supports Custom HTML tags that can include HTML and JavaScript. For Tori, create a Custom HTML tag and paste in the popup snippet.
Custom HTML tag
Create a new Custom HTML tag with this code:
<script type="module" src="https://asktori.ai/cdn/tori-latest.js"></script> <tori-popup app-id="APP_ID" agent-id="AGENT_ID" ></tori-popup>
Trigger
Use the "All Pages" trigger when Tori should be available everywhere.
Use a page-view trigger with URL rules when Tori should only appear on some pages, such as:
/docs/*/help/*/pricing/contact