Repository navigation
Connect the web book to the hub and add reading progress - #91
Merged
Merged
Conversation
Add a back link at the top of the sidebar, a hub entry in the footer, a hub > shelf breadcrumb on the landing page, and a short section on where the book sits on the hub's line map. The README gets the same link.
The hub moved from a line map to an L0-L4 curriculum, so the landing breadcrumb and intro section now use its terms and open the book's own entry with a #station= link. Each chapter ends with one hub resource to read next, picked by chapter: the online experiment materials after chapter 2, the CausalML study after the ML chapters, and the industry case templates elsewhere.
- Track finished chapters in the browser: a check mark in the sidebar, a progress line at the end of each chapter, and a continue-reading button on the landing page. - Show reading time, position in the book and a notebook link under each chapter title, plus a thin reading progress bar. - Ask whether the chapter helped and send the answer as a GA4 event. - Replace the sidebar pill with a hub card, add a hub button to the mobile top bar and a hub banner on the landing page. - Load GA4 from our own snippet so incoming utm_* are recorded and then removed from the address bar; links to team sites on this domain open in the same tab and send hub_click with where they were clicked. - Send search terms from the search dialog as GA4 search events.
- Store reading data under cil-book-* so it does not clash with other team sites on the domain, and keep the last chapter's label and the chapter count for the hub to show. - Re-read stored progress and votes before writing so a second tab does not overwrite them. - After the first finished chapter, point to the web book reader stamp in the hub passport. - Load GA4 only on causalinferencelab.github.io and turn off Google signals and ad personalisation, matching the hub. - Treat the hub's own pages (game, lab, Builders, posts) as the hub when tracking clicks.
jsshin2019
approved these changes
Oct 25, 2026
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
웹북에서 Causal Inference Hub가 잘 보이고 서로 넘어가기 쉽게 연결했습니다. 읽는 사람이 진도를 보고 반응을 남길 수 있게 읽기 화면도 다듬었습니다. 허브 쪽 연동(
#station=링크, 허브 GAG-C5V0X2SGD3·교차 추적, 웹북 진도·여권 스탬프)은 모두 허브 main에 들어가 있습니다. 허브 연재 '번역 노트: Brave & True 한국어판'은 CausalInferenceLab/CausalInferenceLab.github.io#68입니다.허브로 가는 길 (모든 페이지)
Causal Inference Hub카드(← 아이콘, '인과추론팀 커리큘럼과 오픈소스')허브버튼(늘 보임). 긴 장 제목은 말줄임으로 줄여 버튼이 밀려나지 않게 함인과추론 허브인과추론 허브 › 커리큘럼 L1,인과추론 허브버튼, 들어가며의 허브 배너와 '인과추론 허브에서 이어 가기' 절link-external-filter)읽기 화면
약 N분 · 30편 중 N번째 · 노트북 보기(+ 읽은 장이면✓ 읽은 장)이어 읽기 · 5장 선형회귀의 터무니없는 효과로 바뀌고, 아래에 진도와1장부터 읽기도움이 됐어요/어려웠어요. '어려웠어요'를 누르면 의견 나누기로 안내원서 보기는 부제의 원서 제목 링크로 옮김GA4 (웹북
G-BEBVKYH8HL)book/analytics.html로 직접 넣음: 허브에서 온utm_*를page_location으로 기록한 뒤 주소창에서 지움utm_source=webbook&utm_content=<누른 곳>을 붙이고hub_click(placement: sidebar, topbar, footer, hero, intro_banner, chapter_end, content) 전송chapter_complete(장, 몇 번째, 읽은 장 수),chapter_feedback(helpful / hard),continue_reading,search(검색어, 결과 수)placement,chapter,value를 이벤트 범위 맞춤 측정기준으로 등록해 주세요허브와 기록 공유
cil-book-read(읽은 장),cil-book-last(마지막 장, 장 이름, 전체 편수),cil-book-vote(평가)에 둡니다/#passport) 안내허브 연재와 연결
머지 순서
허브 #68 → 이 PR. 순서가 바뀌어도 깨지는 곳은 없지만, #68 전에는 연재 링크가 '글을 찾을 수 없습니다'로 열립니다.
확인한 것
https://claude.ai/code/session_01WELSFHaGT1Gh5sSRyUvAMx
Generated by Claude Code