Tracking via Google Tag Manager (GTM)
The Ours Privacy GTM template offers a way for you to install and track without the need to install the Web SDK.
Tracking with Google Tag Manager
We strongly recommend using the Ours Privacy Tag Manager
The Ours Privacy Tag Manager is purpose-built for HIPAA-compliant analytics, and offers tighter integration with the Ours platform. Get started with Ours Privacy Tag Manager →
This page details installation via Google Tag Manager for users who have an existing GTM setup. For other installation methods, see our main Installation Guide.
Quick Setup
-
Download the GTM Template
Ours GTM Template → Upload the template in GTM under Templates → Tag Templates → New -
Create an "Install" Tag
Create a new Tag in GTM with the following specifications:- Tag Type: Ours Privacy (from template)
- Action:
Install - Token: paste the Project Token from Ours Privacy
- Trigger:
Initialization - All Pages
-
Create Tracking or Identify Tags
- Action:
TrackorIdentify - Event Name: your custom name (e.g.
Appointment Booked) - Trigger: based on user interaction (e.g. Form Submission)
- Action:
-
Allowlist Events in the Ours platform
After you preview your site and verify tag firing, log into the Ours platform Go to Recent Events → Destinations → Allowed Events List Add the exact event names that you configured in GTM.
How It Works
- GTM loads the Ours template
- Each event fires securely to Ours servers
- Ours captures UTM/referrer/Click ID (e.g.
gclid) automatically with each event - Events are forwarded to your configured destinations
Advanced Configuration
Proxying for Enhanced Privacy
For enhanced privacy, consider using the Ours Privacy Tag Manager which proxies all tracking through Ours infrastructure by default—no additional configuration needed. See Custom Domains for more details on proxying.
Overriding Default Properties
If you store data like gclid, UTM parameters, or user IDs in GTM variables, you can override what Ours auto-detects by passing them as overrides.
This ensures the values you provide take priority.
Identifying Users Without Events
You can use the Identify action alone to attach properties (like user ID or plan) without tracking an event.
Manual Event Tracking
You can still use the SDK function in parallel with GTM:
ours('track', 'Custom Event Name');Final Steps
- Use GTM Preview Mode to verify your tags
- Check the Recent Events tab in the Ours app
- Add required event names to Allowed Events
- Publish your GTM container
Need Help?
Contact support@oursprivacy.com for assistance, or consider migrating to the Ours Privacy Tag Manager for a more integrated experience.
How is this guide?