Skip to main content

Installing with Google Tag Manager

Google Tag Manager (GTM) is the easiest way to add One Privacy to your website if your team already uses it. The whole setup takes a few minutes.

Get your script​

In One Privacy, open Scripts and copy the Production snippet (or the Test snippet if you're verifying on a staging site first).

The snippet looks like:

<script data-oneprivacy-widget="true" src="https://.../live/<projectId>/sdk.js"></script>

Create a Custom HTML tag in GTM​

  1. Sign in to Google Tag Manager.
  2. Open your container.
  3. Click Tags β†’ New.
  4. Name the tag something obvious like One Privacy Consent Banner.
  5. Click Tag Configuration and choose Custom HTML.
  6. Paste the One Privacy snippet into the HTML field.
GTM Custom HTML tagThe Tag Configuration screen in GTM with the One Privacy snippet pasted as a Custom HTML tag.install-gtm-tag.png

Set the trigger​

Click Triggering and choose All Pages (or Initialization - All Pages for the earliest possible load).

This makes sure the banner loads on every page of your website.

Tag firing priority​

For best results, set a high firing priority so the banner loads before your other tags.

In Advanced Settings β†’ Tag firing priority, enter a high number like 1000. This tells GTM to fire the banner tag before lower-priority tags.

Save and publish​

Click Save to save the tag. Click Submit in the top right of GTM, give the version a name (for example "Add One Privacy banner"), and click Publish.

Verify it works​

Open your website in a fresh browser session. The banner should appear within a couple of seconds.

See Verifying the banner is live for the full checklist.

If you also use GTM to manage Google Analytics or Google Ads, One Privacy's banner sets the right Consent Mode signals automatically. Make sure your GA and Ads tags are configured to honor consent signals. See Google Consent Mode.

What's next​

Verifying the banner is live.

Google Consent Mode.

Troubleshooting installation.