CDPGuidesSupport

Installing the Tag Manager

Install the Ours Privacy Tag Manager by adding one snippet to your site, then confirm page views are arriving.

Use this page to install the Tag Manager on your site. The install tag loads the Web SDK and tracks page views on its own, so this is the only code change you need.


Add the install tag

  1. In the Ours Privacy dashboard, open Tag Manager and then Install.
  2. Copy the install tag.
  3. Paste it into the <head> of every page, usually in your layout or template file.
<script src="https://cdn.oursprivacy.com/main.js"></script>
<script src="https://cdn.oursprivacy.com/tag-manager-init?token=YOUR_TOKEN"></script>
The Install Tag Manager page with the two-script installation snippet and its Copy button, followed by the data layer array name and example data layer snippets.

If your organization has a custom domain set up, the install tag in the app loads from that domain instead of cdn.oursprivacy.com.

Platform-specific instructions are in the website platform guides.


Confirm it works

Open Recent Events, filter by your domain (or localhost when testing locally), and look for page_view events. See Tracking and debugging events for more on that screen.

If nothing arrives:

  • Check the token in the install tag matches the one in the app.
  • Check the browser console for errors and disable ad blockers while testing.
  • Make sure your container has at least one published version. Changes take effect only after you publish.

Next steps

  • Tags: send your first custom event.
  • Preview mode: watch tags fire in Chrome DevTools.
  • Recipes: copyable setups for common goals.

How is this guide?

On this page