Skip to content

Add QR card redirect for AI Engineer World Fair event#15

Merged
willwashburn merged 1 commit into
mainfrom
claude/qr-card-redirect-utm-yopapj
Jul 2, 2026
Merged

Add QR card redirect for AI Engineer World Fair event#15
willwashburn merged 1 commit into
mainfrom
claude/qr-card-redirect-utm-yopapj

Conversation

@willwashburn

@willwashburn willwashburn commented Jul 2, 2026

Copy link
Copy Markdown
Member

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

  • Added /qr-card redirect route that points to the Agent Relay GitHub repository
  • Configured with UTM parameters (utm_source=ai-engineer-worldfair, utm_medium=qr-card, utm_campaign=ai-engineer-worldfair-2026) to track event attribution
  • Set as a temporary redirect (permanent: false) to allow for future changes
  • Follows the same pattern as the existing /banner redirect for consistency

Implementation Details

  • The redirect is non-permanent, allowing flexibility for post-event modifications
  • UTM tracking enables analytics to measure engagement from physical QR cards distributed at the event
  • Positioned alongside other event-related redirects in the Next.js configuration

https://claude.ai/code/session_01AiShfbucaomgPyNizccASr


Summary by cubic

Adds a /qr-card redirect 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.

  • New Features
    • /qr-cardhttps://github.com/agentworkforce/relay with utm_source=ai-engineer-worldfair, utm_medium=qr-card, utm_campaign=ai-engineer-worldfair-2026
    • Temporary redirect (permanent: false)
    • Mirrors the existing /banner redirect pattern

Written for commit dd51cde. Summary will update on new commits.

Review in cubic

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
@willwashburn willwashburn merged commit 5960443 into main Jul 2, 2026
2 of 3 checks passed
@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 550b1cb1-8378-4d22-acc7-f27e138e4c20

📥 Commits

Reviewing files that changed from the base of the PR and between 952b369 and dd51cde.

📒 Files selected for processing (1)
  • web/next.config.mjs

📝 Walkthrough

Walkthrough

A single temporary redirect rule was added to the Next.js configuration, routing requests from /qr-card to the agentworkforce/relay GitHub repository URL with UTM tracking parameters for attribution.

Changes

QR Card Redirect

Layer / File(s) Summary
Add /qr-card redirect rule
web/next.config.mjs
A new non-permanent redirect entry forwards /qr-card requests to the relay GitHub repo URL with UTM tracking parameters, accompanied by explanatory comments.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Poem

A hop, a skip, a QR scan,
Redirecting straight to relay's clan! 🐇
UTM tags trail behind like carrots strewn,
Temporary magic under this rabbit moon.
Nine little lines, hop-hop, all done!

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/qr-card-redirect-utm-yopapj

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread web/next.config.mjs
Comment on lines +66 to +74
// 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,
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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:

  1. Next.js Config Redirects are Server-Side: Redirects defined in next.config.mjs are executed at the server/edge level (returning a 307 Temporary Redirect response 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-card path.
  2. 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, or utm_campaign.

Suggested Alternatives:

  • Option A (Client-Side Redirect Page): Create a lightweight page at app/qr-card/page.tsx (or pages/qr-card.tsx) that triggers a client-side analytics event (e.g., track('QR Card Scan')) and then redirects the user to GitHub using window.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.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Preview deployed!

Environment URL
Web https://09650aa7-agentrelay-web.agent-workforce.workers.dev

This is a Cloudflare Workers preview version of this PR's build.

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.

2 participants