Skip to content

Send hub analytics to the hub's own GA tag - #108

Merged
jsshin2022 merged 1 commit into
mainfrom
hub-own-ga-tag
Nov 8, 2026
Merged

jsshin2022 merged 1 commit into
mainfrom
hub-own-ga-tag

Conversation

@jsshin2022

Copy link
Copy Markdown
Member

The hub and the web book shared one Google tag (G-BEBVKYH8HL). It sent every hub page to the web book's property too. The hub's stream (G-C5V0X2SGD3) had no tag of its own, so it could not be split off.

  • A new web stream in the hub's GA4 property (560570083) has its own tag, G-CS9K0E86LR. gtag/js?id=G-CS9K0E86LR is served and points only to that ID.
  • ga.js loads only that tag. The fallback to the shared tag is gone.
  • The old stream stays in the same property, so earlier data and the registered custom dimensions are unchanged.

After merge, hub pages stop counting in the web book's property. The web book keeps sending to the old hub stream until its container drops that tag, which is a separate change in Tag Manager.


Generated by Claude Code

The hub loaded the web book's Google tag, which sent every hub page to the web
book's property as well as the hub's. The hub property now has its own web
stream with a standalone tag (G-CS9K0E86LR), and ga.js loads only that one.
The old hub stream (G-C5V0X2SGD3) stays in the property for its history.
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