Skip to content

[MKT-824]:fix/missing impact tracking for promo codes#1937

Open
jaaaaavier wants to merge 6 commits intomasterfrom
fix/impact-attribution-coupon-sales
Open

[MKT-824]:fix/missing impact tracking for promo codes#1937
jaaaaavier wants to merge 6 commits intomasterfrom
fix/impact-attribution-coupon-sales

Conversation

@jaaaaavier
Copy link
Copy Markdown
Contributor

@jaaaaavier jaaaaavier commented Apr 23, 2026

Description

This PR aims to fix an issue where coupon-only sales were failing to attribute on Impact.

Changes included:

  • Added a fallback uuidV4 for anonymousId: Ensures that conversions without a prior affiliate tracking cookie (impactAnonymousId) provide a valid tracking identifier to our analytics integration, preventing silent payload drops.

Related Issues

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

Additional Notes

@jaaaaavier jaaaaavier self-assigned this Apr 23, 2026
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 23, 2026

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 10c9b86
Status: ✅  Deploy successful!
Preview URL: https://aa48ca0e.drive-web.pages.dev
Branch Preview URL: https://fix-impact-attribution-coupo.drive-web.pages.dev

View logs

@jaaaaavier jaaaaavier marked this pull request as ready for review April 24, 2026 07:45
@jaaaaavier jaaaaavier requested a review from a team as a code owner April 24, 2026 07:45
expect(axiosSpy).not.toHaveBeenCalled();
});

it('should not send to Impact when source is direct and coupon code is not in whitelist', async () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Use When..., then... to describe tests

@sonarqubecloud
Copy link
Copy Markdown

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