Skip to content

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

Merged
jaaaaavier merged 10 commits into
masterfrom
fix/impact-attribution-coupon-sales
May 11, 2026
Merged

[MKT-824]:fix/missing impact tracking for promo codes#1937
jaaaaavier merged 10 commits into
masterfrom
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: 5bdcd5f
Status: ✅  Deploy successful!
Preview URL: https://3cba8a38.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

@jaaaaavier jaaaaavier requested a review from xabg2 May 11, 2026 10:38
@sonarqubecloud
Copy link
Copy Markdown

@jaaaaavier jaaaaavier merged commit 74eec3c into master May 11, 2026
11 checks passed
@jaaaaavier jaaaaavier deleted the fix/impact-attribution-coupon-sales branch May 11, 2026 12:17
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