Skip to content

Load the GA script from the hub stream's Google tag - #72

Merged
jsshin2022 merged 1 commit into
mainfrom
hub-ga-tag
Oct 25, 2026
Merged

jsshin2022 merged 1 commit into
mainfrom
hub-ga-tag

Conversation

@jsshin2022

Copy link
Copy Markdown
Member

The hub has not sent anything to GA4 since #63. This fixes it.

What was wrong

  • ga.js loads https://www.googletagmanager.com/gtag/js?id=G-C5V0X2SGD3.
    • Google returns 404 for that URL.
    • So gtag never loaded and no page views or events left the hub.
  • In GA (관리 → 데이터 스트림 → 가짜연구소 인과추론팀 Hub → 태그 안내 보기):
    • the stream's measurement ID is G-C5V0X2SGD3
    • its Google tag is G-BEBVKYH8HL, the same tag the web book uses
    • Google only serves the tag script for the Google tag ID.

The change

  • The script now loads from G-BEBVKYH8HL.
  • Only G-C5V0X2SGD3 is configured, so the hub's page views and hubTrack events go to the hub's property and nowhere else.
  • Nothing else changes.

Checked

I loaded the script this way on the live hub in a real Chrome and sent a test event (ga_check2). It showed up in the hub property's realtime report within a minute.

The same report also shows page views from the web book: the shared Google tag sends web book traffic to this property too. That is unrelated to this change.


Generated by Claude Code

Google returns 404 for gtag/js with the hub's measurement ID, so the
script never loaded and the hub has sent nothing since it moved to its
own property. The stream's Google tag is the web book's tag ID; loading
the script from it and configuring only the hub's ID delivers events to
the hub property, confirmed in its realtime report.
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