Repository navigation
Use the hub's own GA4 property and track visits across team sites - #62
Closed
jsshin2022 wants to merge 1 commit into
Closed
jsshin2022 wants to merge 1 commit into
jsshin2022 wants to merge 1 commit into
Conversation
The pages now load G-C5V0X2SGD3. Links to the team's other sites on this domain open in the same tab, carry utm_source=hub with the spot they were clicked from, and send webbook_click or team_site_click. Incoming utm_* are read through page_location and then dropped from the address bar. Opening an entry sends station_open.
Member
Author
|
Superseded by #63: same change rebuilt on current Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status
Review Required
Description
허브 전용 GA4 속성(
G-C5V0X2SGD3)으로 바꾸고, 허브와 웹북 사이를 오가는 흐름을 양쪽 GA에서 볼 수 있게 했습니다. 웹북 쪽 짝은 CausalInferenceLab/Causal-Inference-with-Python#91입니다.GA4
G-BEBVKYH8HL)에서 허브 ID(G-C5V0X2SGD3)로 교체assets/js/track.js추가(세 페이지 모두 로드)허브 → 팀 사이트(웹북, causal-studio 등)
utm_source=hub&utm_medium=referral&utm_campaign=crosslink&utm_content=<누른 곳>을 붙여 이동 → 웹북 GA에서 '허브에서 온 방문'과 어느 자리에서 눌렀는지(featured, station, partner, curriculum, article, footer)가 보입니다webbook_click, 그 밖의 팀 사이트면team_site_click(site,placement)웹북 → 허브
utm_*는page_location으로 GA에 넘긴 뒤 주소창에서 지움(공유되는 주소는 깔끔하게)station_open(repo,level, 링크로 열었는지from_link)머지 후 GA 관리 화면에서 할 일 (두 속성 모두)
placement,site,repo등록(보고서에서 자리별로 보려면 필요)#station=링크로 열기 → 웹북 버튼 클릭 → 같은 탭에서 utm이 붙은 웹북 주소로 이동하는 흐름을 로컬에서 확인했고 콘솔 오류 없습니다.Generated by Claude Code