Skip to Content
Install WhenceInstall with Google Tag Manager

Install with Google Tag Manager

If your site already loads Google Tag Manager, you can add Whence as a tag instead of editing your site’s code. It takes about 3 minutes.

Step 1: Copy the block

In Whence, open Setup > Install and pick the Google Tag Manager tab (1). Click Copy (2) on Paste this block. It carries your site key and the address Whence listens on.

Step 2: Create a Custom HTML tag

In Tag Manager, open Tags, then New, then Tag Configuration, and pick Custom HTML.

Step 3: Paste the block

Paste the block. Leave Support document.write off.

Step 4: Set the trigger

Under Triggering, pick Initialization - All Pages, name the tag Whence, and save.

Screenshot coming soonA Google Tag Manager Custom HTML tag named Whence with the block pasted and the Initialization - All Pages trigger

Step 5: Publish

Click Submit, then Publish, so the tag goes live. A tag saved but not published does not run on your site.

What Whence receives

  • Visits and replays on every page where your Tag Manager container loads, for visitors who do not block it.
  • Loading through Tag Manager does not add orders. What Whence receives about orders depends on your store platform: see its guide in Install Whence.

Whence reads Google Consent Mode, Cookiebot and OneTrust. With another banner, run whence.consent({ analytics: true, marketing: true }) when the visitor answers. See Which cookie banner to use.

Last updated on