Prerequisites
- Access to the Web Tracking settings for your account
- The ability to edit the
<head>of the pages you want to track, or access to Google Tag Manager for that site - Your site’s origin (domain) added to your allowed origins list — see Set up Web Edge Sessions for your site if you haven’t done this yet
How the tag decides what to send
The tag has two independent switches, both in the What the tag does section of the Web Tracking page. Send events to allGood is the master switch. Turn it off and the tag sends nothing at all — no page views, and no customidentify() or track() calls from your own code either.
Automatic page views controls only the page-view events the tag generates on its own — on page load, and on route changes in single-page apps. Turn it off and the tag stops sending those. Your own identify() and track() calls still go through, and forms still submit normally.
Toggling either switch shows a status chip — Publishing…, then Live at the edge — while the change reaches allGood’s network. The previous setting still applies until it turns green.
Your Web Tracking settings only take effect on origins in your allowed origins list. A page that loads the tag from an unlisted origin has its events silently skipped. The browser console shows why, so check there first if events from a specific site go missing.
Get and install your tag

The Web Tracking settings page, showing the generated tag, the account's tracking key, and the two switches that control what the tag sends.
1
Open Web Tracking
Open Web Tracking in your account settings.
2
Copy your tag
In the Your tag section, click Copy to copy your script tag.
3
Paste the tag into your site
Paste the tag into the
<head> of every page you want tracked, before the closing </head> tag, and keep the async attribute. Managing the site through Google Tag Manager instead? Click Install with Google Tag Manager and follow the prompts there, rather than editing pages directly. If the tag ends up on a page twice, that’s harmless — the second copy detects the first and does nothing.4
Confirm the origin is allowed
Confirm the site’s origin is on your allowed origins list, under Web Edge Sessions. See Set up Web Edge Sessions for your site if you need to add it.
Confirm it’s working
Load one of your tracked pages and open your browser’s developer tools.- Console — type
window.allgood.version. A version string back confirms the script loaded. - Network — filter requests on
_ag. You should see/_ag/rcreturn200, and, once consent allows it,/_ag/ereturn202.
Manage your tracking key
Your tracking key travels with the tag in your page source and is also sent as theX-AG-Site-Key header. It’s shown in full, and as a short ID, in the Tracking key section of the Web Tracking page.
The key isn’t a secret. It sits in the source of every page carrying your tag, so anyone who views that source can see it. Rotate it if you think someone else is using it — not because it was visible.
Click Rotate to generate a new key. Your old key keeps working until the new one reaches allGood’s edge network. Rotating never creates a window where neither key is valid, so you won’t lose traffic during the switch.
Track custom events
identify() and track() calls let your own code send custom events beyond automatic page views. Setting these up means adding JavaScript to your site, so it’s a task for a developer on your team. Share this article with them, along with the developer documentation for custom event tracking, so they have both the account context and the implementation details.
If page views are still not working after installation, see the Web Edge FAQ.