๐ฆ Installation Guide
Complete guide to installing TagOps monitoring on your website.
Installation Methods
Choose the best method for your platform:
- Direct HTML โญ Recommended
- WordPress
- Shopify
- Webflow
- Wix
- Google Tag Manager
- Custom Integration
Direct HTML
Step 1: Get Your Tracking Code
From your TagOps dashboard, copy your unique tracking code:
<script async src="https://tagops.io/rum.js?site_id=tagops_YOUR_UNIQUE_ID"></script>
With Server-Side GTM:
<script async
src="https://tagops.io/rum.js?site_id=tagops_YOUR_UNIQUE_ID"
data-sgtm-hosts="sst.yourclient.com"
></script>
Step 2: Add to <head>
Paste the code inside your <head> tag, ideally near the end:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Your Website</title>
<!-- Your other tags -->
<link rel="stylesheet" href="/styles.css">
<!-- TagOps Monitoring (add this line) -->
<script src="https://tagops.io/rum.js" data-tracking-id="tagops_YOUR_ID" async></script>
</head>
<body>
<!-- Your content -->
</body>
</html>
Step 3: Verify
- Visit your website
- Open DevTools (F12) โ Console
- Look for:
[TagOps] Initialized with tracking ID: tagops_xxx
โ Done!
WordPress
Method A: Plugin (Easiest)
- Install "Insert Headers and Footers" plugin
- Go to Settings โ Insert Headers and Footers
- Paste code in "Scripts in Header" section
- Click Save
Method B: Theme (Advanced)
- Go to Appearance โ Theme File Editor
- Open
header.php - Find
</head> - Paste code before
</head> - Click Update File
โ ๏ธ Warning: Changes may be lost on theme updates. Use a child theme or plugin instead.
Method C: functions.php
Add this to your theme's functions.php:
function tagops_tracking_code() {
?>
<script src="https://tagops.io/rum.js" data-tracking-id="tagops_YOUR_ID" async></script>
<?php
}
add_action('wp_head', 'tagops_tracking_code');
Shopify
Step 1: Access Theme Code
- Go to Online Store โ Themes
- Click Actions โ Edit code
Step 2: Edit theme.liquid
- Find
theme.liquidin the left sidebar - Locate the
</head>closing tag - Paste tracking code before
</head>
<!-- TagOps Monitoring -->
<script src="https://tagops.io/rum.js" data-tracking-id="tagops_YOUR_ID" async></script>
</head>
Step 3: Save
Click Save and you're done!
Webflow
Step 1: Project Settings
- Open your project
- Click Project Settings (gear icon)
- Go to Custom Code tab
Step 2: Add to Head Code
Paste your tracking code in the Head Code section:
<script src="https://tagops.io/rum.js" data-tracking-id="tagops_YOUR_ID" async></script>
Step 3: Publish
Click Publish to push changes live.
Wix
Step 1: Tracking Tools
- Go to Settings โ Advanced โ Custom Code
- Click + Add Custom Code
Step 2: Configure
- Name: TagOps Monitoring
- Code snippet: Paste tracking code
- Place in: Head
- Load on: All pages
Step 3: Apply
Click Apply and you're done!
Google Tag Manager
โ ๏ธ Note: Installing via GTM is supported, but not recommended. If GTM fails to load, TagOps can't detect it. We recommend direct HTML installation when possible.
Step 1: Create Tag
- Go to Tags โ New
- Tag type: Custom HTML
- Paste tracking code:
<script src="https://tagops.io/rum.js" data-tracking-id="tagops_YOUR_ID" async></script>
Step 2: Set Trigger
- Trigger: All Pages
- Firing: Page View - DOM Ready (or earlier)
Step 3: Publish
- Click Save
- Submit container
- Publish live
Custom Integration
Single Page Apps (React, Vue, Angular)
React Example:
// Add to App.jsx or index.html
useEffect(() => {
const script = document.createElement('script');
script.src = 'https://tagops.io/rum.js';
script.async = true;
script.setAttribute('data-tracking-id', 'tagops_YOUR_ID');
document.head.appendChild(script);
}, []);
Vue Example:
// Add to main.js or App.vue
mounted() {
const script = document.createElement('script');
script.src = 'https://tagops.io/rum.js';
script.async = true;
script.setAttribute('data-tracking-id', 'tagops_YOUR_ID');
document.head.appendChild(script);
}
Angular Example:
// Add to index.html (preferred)
// or app.component.ts
ngOnInit() {
const script = document.createElement('script');
script.src = 'https://tagops.io/rum.js';
script.async = true;
script.setAttribute('data-tracking-id', 'tagops_YOUR_ID');
document.head.appendChild(script);
}
Next.js
Add to pages/_document.js:
import { Html, Head, Main, NextScript } from 'next/document'
export default function Document() {
return (
<Html>
<Head>
<script
src="https://tagops.io/rum.js"
data-tracking-id="tagops_YOUR_ID"
async
/>
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
Verification
1. Browser Console Check
- Open your website
- Press F12 (open DevTools)
- Go to Console tab
- Look for:
[TagOps] Initialized with tracking ID: tagops_xxx [TagOps] GTM container detected: GTM-XXXXXX [TagOps] Beacon sent successfully
โ If you see these messages, installation is working!
2. Network Tab Check
- DevTools โ Network tab
- Reload page
- Filter:
rum.js - Status should be
200 OK - Check for
beaconrequests
3. Dashboard Check
Visit your website (in incognito/private mode)
Go to TagOps dashboard
Check Installation Status:
- โ Verified = Working!
- โณ Pending = Wait 30 seconds, reload
- โ Not Installed = Check steps above
View Recent Events tab:
- Should show "Beacon received" within 60 seconds
Troubleshooting
Issue: "Installation Not Verified"
Causes:
- Code not in
<head>tag - Wrong tracking ID
- Ad blocker blocking script
- Cache not cleared
Fixes:
- Verify code is inside
<head>, not<body> - Check tracking ID matches dashboard
- Disable ad blockers (for testing)
- Hard refresh:
Ctrl+Shift+R(Windows) orCmd+Shift+R(Mac) - Clear browser cache
- Check browser console for errors
Issue: "Script Not Loading (404)"
Causes:
- Typo in script URL
- CDN temporarily down
- Network blocked
Fixes:
- Verify URL is exactly:
https://tagops.io/rum.js - Check Network tab for error details
- Try from different network
- Contact support if persists
Issue: "No Beacons Received"
Causes:
- Script loads but doesn't execute
- JavaScript error on page
- GTM container not detected
Fixes:
- Check Console for errors
- Verify no JavaScript conflicts
- Try on a clean test page
- Check
data-tracking-idattribute is set - Ensure GTM is installed and published
Issue: "Works Locally, Not in Production"
Causes:
- Cache not invalidated
- Different code in production
- CSP (Content Security Policy) blocking
Fixes:
- Invalidate CDN cache
- Check source code of production page
- Add to CSP:
script-src 'self' https://tagops.io; - Clear CloudFlare / CDN cache
Advanced Configuration
Custom Beacon Endpoint
<script
src="https://tagops.io/rum.js"
data-tracking-id="tagops_YOUR_ID"
data-endpoint="https://custom.endpoint.com/beacon"
async
></script>
Debug Mode
<script
src="https://tagops.io/rum.js"
data-tracking-id="tagops_YOUR_ID"
data-debug="true"
async
></script>
Enables verbose console logging.
Custom Sampling Rate
<script
src="https://tagops.io/rum.js"
data-tracking-id="tagops_YOUR_ID"
data-sample-rate="0.5"
async
></script>
Sample 50% of pageviews (useful for high-traffic sites).
Performance Impact
Script Size
- Uncompressed: 8.2 KB
- Gzipped: 2.1 KB
- Brotli: 1.8 KB
Load Time Impact
- Average: <5ms
- P95: <15ms
- P99: <30ms
Network Requests
- rum.js: 1 request (cached for 24h)
- Beacons: 1 request per pageview (~200 bytes)
Rendering Impact
- Async loading: Non-blocking
- DOM: No impact on CLS, LCP, or FID
- TTI: No measurable impact
Security
Content Security Policy (CSP)
Add these directives to your CSP:
Content-Security-Policy:
script-src 'self' https://tagops.io;
connect-src 'self' https://tagops.io;
Subresource Integrity (SRI)
Coming soon. For now, we recommend loading via HTTPS (default).
Multiple Sites / Environments
Staging vs Production
Use different tracking IDs:
Staging:
<script src="https://tagops.io/rum.js" data-tracking-id="tagops_STAGING_ID" async></script>
Production:
<script src="https://tagops.io/rum.js" data-tracking-id="tagops_PRODUCTION_ID" async></script>
Or use environment variables:
<script
src="https://tagops.io/rum.js"
data-tracking-id={process.env.TAGOPS_TRACKING_ID}
async
></script>
Best Practices
โ DO:
- Install in
<head>for earliest loading - Use
asyncattribute - Test on staging first
- Keep tracking ID secret (treat like API key)
- Monitor dashboard for first beacon
โ DON'T:
- Don't install in
<body>(may miss early tags) - Don't load synchronously (blocks rendering)
- Don't use same tracking ID for multiple sites
- Don't commit tracking ID to public repos
- Don't install via GTM if you can avoid it
Support
Having trouble? We're here to help:
- ๐ง Email: support@tagops.io
- ๐ฌ Live Chat: tagops.io (bottom-right)
- ๐ Docs: tagops.io/docs
- ๐ Bug Reports: github.com/tagops/issues
Response times:
- Starter: 24h
- Professional: 4h
- Agency: 1h (dedicated support)