Installing the Tag Manager

Learn how to install the Ours Privacy Tag Manager with a simple copy-paste script tag, verify it's working, and start tracking page views automatically.

Installing the Tag Manager

Installing the Ours Privacy Tag Manager is straightforward—just copy a snippet from the Ours Privacy app and paste it into your website's <head> section. Once installed, the Ours Web SDK automatically handles page view tracking and provides the foundation for all your tags to run.


Step 1: Get Your Install Tag

  1. Log into the Ours Privacy app
  2. Navigate to the Tag Manager section
  3. Find your Install Tag code snippet
  4. Click Copy to copy the code to your clipboard

The install tag is a simple script that looks like this:

<script src="https://cdn.oursprivacy.com/tag-manager-init?token=YOUR_TOKEN"></script>

Step 2: Add the Tag to Your Website

Paste the install tag into the <head> section of your HTML, preferably just before the closing </head> tag:

<html>
  <head>
    <title>Your Website</title>
    <!-- Other head elements -->
    
    <!-- Ours Privacy Tag Manager Install Tag -->
    <script src="https://cdn.oursprivacy.com/tag-manager-init?token=YOUR_TOKEN"></script>
  </head>
  <body>
    <!-- Your page content -->
  </body>
</html>

Important: Add this script to every page where you want tracking to work. For most websites, this means adding it to your main layout or template file.


How It Works: Automatic Page View Tracking

Once the install tag loads, the Ours Web SDK automatically takes over:

  • Automatic Page Views: Page view events are tracked automatically on every page load
  • /ingest Endpoint: Events are sent to the Ours Privacy /ingest endpoint for processing
  • No Additional Code: You don't need to write any extra code for basic page view tracking
  • Ready for Tags: The foundation is set for creating and managing tags through the Tag Manager UI

The Web SDK handles all the heavy lifting—you just need to install the tag once.


Verifying Your Installation

There are two ways to confirm your Tag Manager is installed and working correctly:

The Recent Events dashboard in the Ours Privacy app provides real-time visibility into your events:

  1. Navigate to Recent Events in the Ours Privacy app
  2. Filter by your URL pattern:
    • Use your domain name (e.g., yoursite.com)
    • For local testing, filter by localhost
  3. You should see page_view events appearing in real-time

For more details on using the Recent Events dashboard for debugging, see the Real-Time Debugging guide.

Method 2: Network Tab (Technical Verification)

  1. Open your website in a browser
  2. Open Developer Tools (F12 or right-click → Inspect)
  3. Go to the Network tab
  4. Reload the page
  5. Look for:
    • The tag manager script loading from cdn.oursprivacy.com/tag-manager-init
    • Requests to the /ingest endpoint

If you see these requests, your installation is working!


Next Steps

Now that your Tag Manager is installed, you're ready to start creating tags:


Troubleshooting

Tag Manager Not Loading

  • Check the script URL: Ensure the token in your install tag is correct
  • Check for errors: Look in the browser console for any loading errors
  • Check ad blockers: Some ad blockers may interfere with tracking scripts

Page Views Not Appearing

  • Wait a few seconds: Events may take a moment to process
  • Check filters: Make sure your Recent Events filters aren't too restrictive
  • Verify the URL: Ensure the page URL matches your filter patterns
  • Make sure you published: Your Tag Manager changes must be published to take effect
  • Check for init command: Ensure you have an Ours Privacy init command running on install

Still Having Issues?

Reach out to support@oursprivacy.com for assistance with installation.

How is this guide?

On this page

Installing the Tag Manager - Ours Privacy