Option 1 — Custom HTML tag (fastest)
1
New tag → Custom HTML
In GTM, create a tag of type Custom HTML and paste your embed snippet (from
the Rivvi Install tab). It looks like:
2
Trigger: All Pages
Add the built-in All Pages trigger so the widget loads site-wide.
3
Support document.write off
Leave Support document.write unchecked — the widget uses standard DOM APIs.
4
Submit + publish
Publish the container. The launcher appears on the next page view.
Option 2 — Rivvi template with variables
For a guided tag where the org id and API host are fields (instead of a pasted<script>), import the Rivvi GTM template:
- In GTM, go to Templates → Tag Templates → New → Import.
- Import
extensions/gtm-rivvi-webchat/template.tplfrom the Rivvi repo (or the copy your Rivvi contact provides). - Create a tag from the template, fill in Organization ID and API host, and set the All Pages trigger.