github internxt/drive-web v1.0.769

latest releases: v1.0.771, v1.0.770
4 hours ago

Description

When traffic arrives directly at the checkout page via a DTC affiliate link (e.g. drive.internxt.com/checkout?irclickid=...), Impact tracking was not working*. The impactSource and impactAnonymousId cookies were never set because the website's handleImpact() never ran, so trackPaymentConversion() silently skipped sending the conversion event. As a result, subid1 and shareID were not populating in Impact's dashboard and sales were not attributed to affiliates.

The fix replicates the same tracking logic the website runs on the homepage flow, but now directly in the checkout page:

  • If irclickid is present in the URL on load, handleImpactDTCCheckout sets the impactSource, impactAnonymousId, and impactClickId cookies on internxt.com domain.
  • It also fires a page-view event to the Impact API with the irclickid and anonymousId, which is the step that allows Impact to later link that anonymous ID to the affiliate click when the conversion event arrives.

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

Don't miss a new drive-web release

NewReleases is sending notifications on new releases.