Installation
To install the Ours Privacy tracking script, you should consider using Google Tag Manager.
Installation
To start tracking with Ours Privacy, you can either:
- Use Google Tag Manager (recommended for most users)
- Use the Ours Privacy JavaScript SDK (recommended for engineering teams)
Option 1: Install with Google Tag Manager (Recommended)
You should consider installing Ours Privacy via Google Tag Manager (GTM). It is fast, requires no code, and integrates with your existing GTM setup.
Benefits of GTM Install
- No code required
- Works across your entire site
- Quick setup
When installed, Ours will automatically:
- Capture Advertising Click IDs (e.g.,
gclid
,fbclid
) - Collect UTM parameters, referrers, and user agent info
- Attempt identity stitching across domains (Learn more)
Option 2: Install with JavaScript SDK
If you have experience editing code, you can install the Ours Privacy SDK directly into your site.
Steps
- Go to the Install Page in the Ours app.
- Click Copy Install Code Directly.
- Paste the code snippet into the
<head>
tag of every page on your site.
It is recommended to place it just before the closing </head>
tag.
Note: For React/Vue/Next.js applications, you can also install via NPM: npm install ours-web-sdk
. See our Web SDK Documentation for details.
Tracking Events
After installation, you can track events like this:
ours('track', 'Appointment Booked');
You can use any event name you prefer.
Need Help?
You can reach out to [email protected] if you experience any trouble with installation.
Updated 4 days ago