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