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β
- Sign in to Google Tag Manager.
- Open your container.
- Click Tags β New.
- Name the tag something obvious like One Privacy Consent Banner.
- Click Tag Configuration and choose Custom HTML.
- Paste the One Privacy snippet into the HTML field.
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.
A note on Consent Modeβ
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.