Feat/vercel analytics split testing#220
Open
Olisachukwuma1 wants to merge 4 commits into
Open
Conversation
- lighthouserc.json: raise all thresholds to 0.9, add per-audit assertions (LCP <2.5s, TBT <300ms, CLS <0.1, FCP <1.8s) - .github/workflows/ci.yml: add lighthouse job after build, fails CI if any score <90 - next.config.mjs: enable image optimization (avif/webp), add security headers (X-Frame-Options, CSP, Referrer-Policy) - app/layout.tsx: enable font preloading for LCP, fix generator tag, add robots + OpenGraph metadata
- lighthouserc.json: remove startServerCommand (conflicts with workflow server start), fix assertion syntax (maxLength -> minScore for boolean audits) - ci.yml: consolidate server start + lhci autorun into single step to avoid race conditions, capture PID for clean shutdown
- Requirements for typed conversion tracking across onramp, offramp, wallet connect, and bill payments flows - A/B split testing infrastructure: Edge Middleware cookie assignment, SSR-safe useExperiment hook - Two live experiments: onramp CTA copy and offramp CTA copy - Dev-only useConversionMetrics hook with per-flow conversion rate computation
|
@PaveGroupeDev2 is attempting to deploy a commit to the kelly musk's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Adds structured conversion tracking and split testing infrastructure to measure and improve funnel performance.
What's included:
Typed track() events for every step of the onramp, offramp, wallet connect, and bill payments funnels (start, progress, complete, abandon, fail)
useConversionTracking hook — typed wrappers so components never call track() with raw strings
A/B split testing via Edge Middleware cookie assignment — SSR-safe, no hydration mismatch, defaults to control on server
useExperiment hook — reads variant cookie, fires experiment_viewed once per page load
Two live experiments: onramp CTA copy and offramp CTA copy, injected via ctaLabel prop (decoupled from UI)
Dev-only useConversionMetrics hook — aggregates localStorage event counts, computes per-flow conversion rates
Acceptance: Conversion metrics visible in Vercel Analytics dashboard per flow.
closes #166