Add QR card redirect for AI Engineer World Fair event#15
Conversation
Mirrors the /banner redirect: temporary redirect tagged with utm_source/utm_campaign for AI Engineer World's Fair, with utm_medium=qr-card, pointing at the agentworkforce/relay GitHub repo. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AiShfbucaomgPyNizccASr
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA single temporary redirect rule was added to the Next.js configuration, routing requests from ChangesQR Card Redirect
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request adds a temporary redirect from /qr-card to the project's GitHub repository with UTM tracking parameters. The reviewer points out that this tracking setup will not work as intended because server-side redirects bypass client-side analytics on the source domain, and GitHub's traffic analytics do not track UTM parameters. They suggest using a client-side redirect page or edge middleware to properly capture the tracking events.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| // In-person event QR card → the relay GitHub repo, tagged like /banner | ||
| // above so card scans are attributable to the current event. Temporary | ||
| // for the same repointing reason. | ||
| { | ||
| source: '/qr-card', | ||
| destination: | ||
| 'https://github.com/agentworkforce/relay?utm_source=ai-engineer-worldfair&utm_medium=qr-card&utm_campaign=ai-engineer-worldfair-2026', | ||
| permanent: false, | ||
| }, |
There was a problem hiding this comment.
While adding UTM parameters to the destination URL is a common practice, there are two technical limitations in this setup that will prevent you from tracking engagement as intended:
- Next.js Config Redirects are Server-Side: Redirects defined in
next.config.mjsare executed at the server/edge level (returning a307 Temporary Redirectresponse directly). Because of this, the browser never loads or executes any client-side analytics scripts (e.g., Google Analytics, Plausible, Fathom) on your domain (agentrelay.com) for the/qr-cardpath. - GitHub Does Not Track UTM Parameters: GitHub's built-in repository traffic analytics only track referring domains and popular paths. They do not parse, store, or display query parameters like
utm_source,utm_medium, orutm_campaign.
Suggested Alternatives:
- Option A (Client-Side Redirect Page): Create a lightweight page at
app/qr-card/page.tsx(orpages/qr-card.tsx) that triggers a client-side analytics event (e.g.,track('QR Card Scan')) and then redirects the user to GitHub usingwindow.location.replace('https://github.com/agentworkforce/relay'). - Option B (Edge Middleware): If you are using Next.js Middleware (
middleware.ts), you can intercept requests to/qr-card, send a server-side tracking event to your analytics provider's HTTP API (e.g., Plausible Events API or GA4 Measurement Protocol), and then return the redirect response.
|
Preview deployed!
This is a Cloudflare Workers preview version of this PR's build. |
Summary
Added a new redirect route for QR code cards distributed at the AI Engineer World Fair in-person event, pointing to the Agent Relay GitHub repository with event-specific UTM tracking parameters.
Changes
/qr-cardredirect route that points to the Agent Relay GitHub repositoryutm_source=ai-engineer-worldfair,utm_medium=qr-card,utm_campaign=ai-engineer-worldfair-2026) to track event attributionpermanent: false) to allow for future changes/bannerredirect for consistencyImplementation Details
https://claude.ai/code/session_01AiShfbucaomgPyNizccASr
Summary by cubic
Adds a
/qr-cardredirect for AI Engineer World Fair QR cards to the Agent Relay GitHub repo with event UTM tags. Enables tracking for in-person scans and keeps the redirect temporary for easy updates./qr-card→https://github.com/agentworkforce/relaywithutm_source=ai-engineer-worldfair,utm_medium=qr-card,utm_campaign=ai-engineer-worldfair-2026permanent: false)/bannerredirect patternWritten for commit dd51cde. Summary will update on new commits.