Skip to content

feat(tracking): support installing the tracking tag via Google Tag Manager - #124

Merged
carhartlewis merged 1 commit into
mainfrom
tracking-gtm-support
Aug 11, 2026
Merged

feat(tracking): support installing the tracking tag via Google Tag Manager#124
carhartlewis merged 1 commit into
mainfrom
tracking-gtm-support

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Opened automatically when tracking-gtm-support was pushed.

The title is written from the diff and rewritten as you push, because this is squashed onto main and the title becomes the commit subject and the changelog line. Retitle it yourself and it is yours — the automation stops touching it.


Summary by cubic

Add support for installing the tracking tag via Google Tag Manager. The loader can read the site id from ?site=, the app shows a GTM-safe snippet, and verification inspects GTM containers.

  • New Features

    • Added GTM-safe snippet gtmSnippet that carries the site id in the URL; UI now shows a Copy button for it.
    • Updated loader to read the site id from data-site or ?site= (prefers data-site) and inject the tracker once.
    • Verification now checks HTML and GTM containers (gtmContainers, gtmContainerUrl) and warns when a container uses the attribute-only form; raised MAX_VERIFY_BYTES to 2 MB for large pages.
  • Migration

    • If using GTM, replace your tag with the new snippet that includes ?site=<id>.
    • No change needed for direct HTML installs; data-site remains supported and preferred.

Written for commit 70b6d5b. Summary will update on new commits.

Review in cubic

- Added functionality to read GTM containers and verify tag presence in HTML.
- Introduced new interfaces and methods for handling GTM snippets and container URLs.
- Updated the tracking script to include a copyable GTM snippet.
- Enhanced verification process to check for tags in both HTML and GTM containers.
- Increased maximum bytes for verification to accommodate larger marketing pages.
@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
crm-agent Ready Ready Preview Aug 11, 2026 6:34pm
crm-api Ready Ready Preview Aug 11, 2026 6:34pm
crm-app Ready Ready Preview Aug 11, 2026 6:34pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant