Repository navigation
site: add exabeam.com's Google Tag Manager container - #46
scottcexab wants to merge 1 commit into
Conversation
The GTM loader goes in <head> right after the CookieYes script, so the consent banner is in place before any tag fires. The noscript iframe goes straight after <body>. GTM_ID = "" drops both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
virtualsteve-exa
left a comment
There was a problem hiding this comment.
The code is correct. I checked out 0ad23c0 and build_site.py --check passes on all 12 pages. The curly braces in the inline JS come out right, and every published page gets both snippets. Before merging, two questions need a decision.
1. GTM lets anyone with publish access run their own JavaScript on the install pages. GTM-TGMHXV is www.exabeam.com's marketing container, so anyone who can publish to it can run any script on plugins.exabeam.com. That includes the pages with the claude plugin marketplace add Exabeam-Labs/plugins copy-to-clipboard button. A bad tag could quietly change what visitors copy, and the site has no Content-Security-Policy or other control that limits this. For the distribution site of a security plugin whose docs say it "treats telemetry as hostile", that's a wider trust boundary. Someone should accept it on purpose. Options:
- Accept it and note in
MAINTAINERS.mdwho owns publishing to that container. - Use a separate, locked-down container for this subdomain.
- Load only GA4 directly instead of all of GTM.
2. The consent claim depends on the container setup. Putting CookieYes first means the banner is on the page first, but that alone doesn't hold tags back. Gating depends on the CookieYes account sending Google Consent Mode v2 defaults and on the container's tags respecting consent. It's probably fine since it's www.exabeam.com's existing setup. Could someone confirm in the GTM preview tool that no analytics or ad tags fire on plugins.exabeam.com before someone accepts?
Small points
- The
<noscript>iframe loads GTM for visitors with JavaScript off. They never see the CookieYes banner, so there's no consent check. Low impact, since few tags can fire from it. - This site's traffic will go into www.exabeam.com's analytics property unless the container filters by hostname. Worth confirming that marketing wants that.
head()adds the GTM loader to a variable namedconsent. A neutral name such ashead_scriptswould read better. Cosmetic.
virtualsteve-exa
left a comment
There was a problem hiding this comment.
Approving. @scottcexab, could you make these changes in this PR before merging?
- Consent: confirm in the GTM preview tool that no analytics or ad tags fire on plugins.exabeam.com before someone accepts the CookieYes banner. If that holds, keep the PR description's wording. If not, adjust it.
<noscript>iframe: consider dropping it. It loads GTM for visitors with JavaScript off, and they never see the banner, so there's no consent check.- Naming: in
head(), the GTM loader is added toconsent. Rename it to something neutral, such ashead_scripts.
Please ignore the trust-boundary point in my earlier comment. That's a broader question about the site, not this PR.
Adds exabeam.com's Google Tag Manager container to every generated page on plugins.exabeam.com. The GTM loader goes in <head> right after the CookieYes script, so the consent banner is in place before any tag fires; the noscript iframe is the first element of <body>. The container ID is the GTM_ID constant in scripts/build_site.py; "" removes both snippets. Scott's change from #46, re-applied on current main (the site was regenerated by #45 and #49 since) and rebuilt with build_site.py, so it can land as a signed commit. Co-authored-by: Scott Clinton (Exabeam) <scott.clinton@exabeam.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @scottcexab, and sorry this sat. Superseded by #54, which carries your change as a signed commit with you as co-author. |
@scottcexab's Google Tag Manager change from #46, carried over so it can land: #46 could not merge because main requires signed commits and its generated pages had gone stale behind #45 and #49. This re-applies his build_site.py hunk unchanged on current main, rebuilds the site, and commits signed. Scott is co-author. The loader goes right after the CookieYes script, so the consent banner is in place before any tag can fire, and the noscript iframe is the first element in <body>. GTM_ID = "" drops both snippets. Verified in review against the branch: build_site.py --check current, validate_catalog.py passing, and the ordering on the front page as described -- cookieyes at line 4, the loader at 5-11, </head> at 320, <body> at 321, the noscript iframe at 322-325. Every generated page carries the container, 11 of 11. Diffing build_site.py between #46's head and this branch, the only differences are what landed since (#49's CATALOG_REPO and the antigravity host label), so Scott's GTM hunk is identical. Signed-off-by: Steve Wilson <steve.wilson@exabeam.com> Signed-off-by: Matt W <matt.willems@exabeam.com> Co-authored-by: Scott Clinton (Exabeam) <scott.clinton@exabeam.com>
Adds Google Tag Manager container
GTM-TGMHXVto every generated page on plugins.exabeam.com.<head>: the GTM loader goes right after the CookieYes script, so the consent banner loads before any tag GTM fires.<body>: the GTM noscript iframe is the first element.GTM_IDconstant inscripts/build_site.py. Setting it to""removes both snippets.All 11 pages are regenerated with
python3 scripts/build_site.py, and--checkpasses. The only changes to the HTML are the GTM lines.🤖 Generated with Claude Code