github internxt/drive-web v1.0.491

latest releases: v1.0.524, v1.0.523, v1.0.522...
one month ago

Description

This PR introduces a new way to track sales. It is related to a new partner called AddShoppers. The idea is that a specific script should run only when the code used is WELCOME. This tracking should take place upon the completion of a purchase. We have integrated tests and added the function where it needs to be executed.

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

Used the vitest test and the in the nav console typed

sendAddShoppersConversion({
orderId: 'DEMO123',
value: 99.99,
currency: 'eur',
offerCode: 'WELCOME',
});

Then checked the script was added to the head labbel

Additional Notes

Don't miss a new drive-web release

NewReleases is sending notifications on new releases.