Here we add them back to the details we send with the purchase event.
Closes #387
Detailed test instructions:
Setup the extension for tracking
Create some products to add to the cart
Complete a purchase in an incognito window
Check the purchase event and confirm it contains both the correct transaction ID set to order ID and affiliation set to the site name (if shipping / taxes is enabled those totals can be confirmed as well)
Note: The changed E2E test still relies on a fix in #384 so it's a little harder to test.
Additional details:
In the tests I didn't add a check for confirming the shipping totals and tax totals are tracked correctly. In order to do so we would need to set up a default shipping method. I think we can leave this for a follow up issue.
Changes proposed in this Pull Request:
This PR adds the transaction ID (order ID) which is missing from the purchase event. Previously we sent the following details that can be seen here:
Here we add them back to the details we send with the purchase event.
Closes #387
Detailed test instructions:
Note: The changed E2E test still relies on a fix in #384 so it's a little harder to test.
Additional details:
In the tests I didn't add a check for confirming the shipping totals and tax totals are tracked correctly. In order to do so we would need to set up a default shipping method. I think we can leave this for a follow up issue.
Changelog entry