Skip to content

feat(analytics): Adapting Awin conversion tracking data and add fallback pixel#784

Merged
leomp12 merged 1 commit into
mainfrom
fix/awin-conversion-tracking
Jul 21, 2026
Merged

feat(analytics): Adapting Awin conversion tracking data and add fallback pixel#784
leomp12 merged 1 commit into
mainfrom
fix/awin-conversion-tracking

Conversation

@vitorrgg

Copy link
Copy Markdown
Member
  • send-to-awin.ts: use the store's real currency instead of a hardcoded BRL fallback, fix a bug where product category was never actually sent (wrong field name), validate traffic channel against Awin's accepted values, and sanitize basket fields against forbidden pipe characters
  • Add a client-side fallback conversion pixel, redundant to the existing server-to-server call, per Awin's tracking policy (packages/storefront)
  • Expose the Awin advertiser ID to the storefront client for the pixel

…k pixel

- send-to-awin.ts: use the store's real currency instead of a hardcoded
  BRL fallback, fix a bug where product category was never actually sent
  (wrong field name), validate traffic channel against Awin's accepted
  values, and sanitize basket fields against forbidden pipe characters
- Add a client-side fallback conversion pixel, redundant to the existing
  server-to-server call, per Awin's tracking policy (packages/storefront)
- Expose the Awin advertiser ID to the storefront client for the pixel

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vitorrgg
vitorrgg requested a review from leomp12 July 20, 2026 22:46
@vitorrgg vitorrgg changed the title fix(analytics): Correct Awin conversion tracking data and add fallback pixel feat(analytics): Adapting Awin conversion tracking data and add fallback pixel Jul 21, 2026

@leomp12 leomp12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍🏾

@leomp12
leomp12 merged commit d3b9b11 into main Jul 21, 2026
2 checks passed
@leomp12
leomp12 deleted the fix/awin-conversion-tracking branch July 21, 2026 14:42
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