Skip to content

Conversation

@TechWithTy
Copy link
Owner

No description provided.

Codex CLI added 6 commits November 28, 2025 16:59
…l Helper detection

- Add base Meta Pixel initialization script to HTML head section
- Update FacebookPixelScript to use native fbq function (initialized in head)
- Add support for DEAL_SCALE_FB_Pixel_ID environment variable
- Maintain consent-based tracking (pixel initializes but only tracks after user consent)
- Fixes Meta Pixel Helper detection issue on www.dealscale.io
- Remove unused googleAnalyticsId and googleTagManagerId variables
- Add biome-ignore comments for required Meta Pixel code (dangerouslySetInnerHTML and noscript img)
- Fix import organization in DeferredThirdParties component
- Add Facebook Pixel 'Lead' event tracking for redirects via /api/redirect and middleware
- Extract Facebook Pixel fields (enabled, source, intent) from Notion database
- Implement client-side tracking page (/redirect) with 600ms delay for pixel events
- Preserve UTM parameters and query strings through redirect chain
- Add comprehensive tests for API route, middleware, and mapper
- Update Notion database schema documentation

Tests: 36 passing (API route, middleware, mapper)
- Add unit tests (Vitest) for redirect page component
- Add E2E browser tests (Playwright) for real browser validation
- Create mock fbq utility for testing pixel calls
- Test pixel event firing, timing validation, and UTM preservation
- Verify redirect waits >=500ms before navigation
- Add comprehensive test documentation

Unit tests: 10 passing
Coverage: Event firing, timing, routing, error handling
@vercel
Copy link

vercel bot commented Nov 29, 2025

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

Project Deployment Preview Comments Updated (UTC)
deal-scale Ready Ready Preview Comment Nov 29, 2025 4:23am

@TechWithTy TechWithTy merged commit ff30edd into main Nov 29, 2025
2 of 3 checks passed
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +501 to +505
if (key !== "to" && key !== "fbSource" && key !== "fbIntent") {
trackingUrl.searchParams.set(key, value);
}
}
return NextResponse.redirect(trackingUrl);

Choose a reason for hiding this comment

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

P1 Badge Restore Notion counter for pixel-tracked redirects

When the middleware sees facebookPixelEnabled, it returns the client-side tracking redirect immediately (/redirect), so the Redirects (Calls) increment block just below (lines 508+) never runs. Any slug that has Facebook Pixel turned on will redirect correctly but will no longer update its Notion call counter, silently dropping metrics for those pages while non-pixel redirects still increment. Consider moving the counter increment before this return or invoking it for the pixel path as well.

Useful? React with 👍 / 👎.

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