Add campaign pageview tracking and /github redirect - #78
Merged
Conversation
Record raw marketing_page_views for repeat campaign visits (including UTM 404s), keep first-touch sessions intact, and ship a client /github redirect so GA and first-party tracking fire before leaving the site. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
marketing_page_viewsfirst-party tracking so repeat campaign visits (including UTM 404 paths like/reddit?utm_source=reddit) are counted even when a first-touch cookie already exists./githuband any public path with UTM/opprefquery params; provider captures session first, then pageview with the returned session id./githubredirect page tohttps://github.com/Ontos-AI/knowhereso GA and first-party tracking can fire before leave, and point the landing header GitHub link at/github.Test plan
/githuband confirm brief redirect page, GA pageview, and amarketing_page_viewsrow for/github/reddit?utm_source=redditand confirm 404 UI plus session + pageview rowskh_acquisition_sessioncookie and confirm pageviews still increment without overwriting first-touch session/,/claw,/comparison/*,/versus/*still capture first-touch as beforepnpm db:migrate(or apply0009_mushy_ezekiel) and acquisition attribution unit testsMade with Cursor