Skip to content

feat(analytics): mark controlled action events - #428

Merged
Ducksss merged 2 commits into
devfrom
analytics/mark-controlled-action-events
Aug 4, 2026
Merged

Ducksss merged 2 commits into
devfrom
analytics/mark-controlled-action-events

Conversation

@tin-computer

@tin-computer tin-computer Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

What changed

  • add verification_run: true only to PostHog install-copy and primary GitHub-click events opened with ?verification_run=1
  • keep ordinary action payloads, GA4, Vercel Analytics, page-view logic, and template events unchanged
  • treat the query as an operational marker for Tin-controlled checks, never as a trusted demand or fraud signal
  • add focused browser coverage for both marked actions and the unchanged GA4 payloads

Scope

This intentionally excludes the page-view, privacy, contributing-guide, and broad analytics-contract work already delivered by #406.

Verification

  • focused ESLint: passed
  • formatting and diff check: passed
  • source build: passed
  • TypeScript: passed
  • analytics contract: 2 passed
  • production build: passed (459 static pages)
  • focused production Playwright: 3 passed

Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com>
@tin-computer
tin-computer Bot requested a review from Ducksss as a code owner August 2, 2026 22:52
@vercel

vercel Bot commented Aug 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
payload-components Ready Ready Preview Aug 4, 2026 7:31pm
payload-components-97bf Ready Ready Preview Aug 4, 2026 7:31pm

The flag is a marker for this project's own controlled checks; naming a
specific vendor in source comments and test names ties repo code to an
outside party. Same meaning, no vendor.

Also spells out why the flag is untrustworthy rather than just asserting it:
`?verification_run=1` is caller-controlled, so any visitor can set it.

Co-Authored-By: Claude Opus 5 <[email protected]>

This branch was successfully deployed

2 active deployments
Preview – payload-components — e9bce8eb Deployed Aug 4, 2026 by vercel[bot]
Preview – payload-components-97bf — e9bce8eb Deployed Aug 4, 2026 by vercel[bot]
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