Skip to content

Add poster QR tracking links (/go/<slug>) - #7

Merged
i-kumar merged 1 commit into
mainfrom
add-poster-tracking-links
Nov 9, 2026
Merged

i-kumar merged 1 commit into
mainfrom
add-poster-tracking-links

Conversation

@i-kumar

@i-kumar i-kumar commented Nov 9, 2026

Copy link
Copy Markdown
Member

Each poster gets a QR code pointing at api.maizebus.com/go/. The route appends a JSON line to a click log and 302-redirects to www.maizebus.com/?src=. GET /go/stats?key=STATS_KEY returns per-slug counts.

Slugs are numbers counting from 0 (tracked in POSTERS.md) since the same location will get different designs over time.

The deploy workflow sets CLICK_LOG_PATH outside the current/ deploy directory so the log survives redeploys, and passes STATS_KEY from GitHub secrets.

Each poster gets a QR code pointing at api.maizebus.com/go/<n>. The
route appends a JSON line to a click log and 302-redirects to
www.maizebus.com/?src=<n>. GET /go/stats?key=STATS_KEY returns
per-slug counts.

Slugs are numbers counting from 0 (tracked in POSTERS.md) since the
same location will get different designs over time.

The deploy workflow sets CLICK_LOG_PATH outside the current/ deploy
directory so the log survives redeploys, and passes STATS_KEY from
GitHub secrets.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@i-kumar
i-kumar merged commit 3254638 into main Nov 9, 2026
1 check passed
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