Integrating the transaction tag is essential to track sales generated via the iAdvize platform. This script allows you to capture key information, such as the unique transaction identifier and its amount, ensuring accurate tracking of conversions after conversation.
This guide explains how to manually install the transaction tag on your site to ensure correct and effective integration.
1. Integrate the transaction tag
In your administration
Go to the Settings tab > Integration > iAdvize tags then click on Go to the setup guide
Select the option "Add the tracking code manually"
If you wish to send your developer or agency all the necessary documentation, click on Send an invitation. They will receive an email with the instructions, without needing to access the iAdvize administration.
- The main iAdvize tag must be present, otherwise transactions will not be recorded.
- Insert the following JavaScript code just before the closing tag
</body>on all order confirmation pages to ensure proper transaction tracking. - Do not insert this script on pages other than those dedicated to payments.
- Do not modify the structure of the code provided by iAdvize to avoid any errors.
- Test on different browsers and devices to verify compatibility and proper functioning of the script.
<script>
window.iAdvizeInterface = window.iAdvizeInterface || [];
window.iAdvizeInterface.push(function(iAdvize) {
iAdvize.recordTransaction({
amount: 123.45, // Replace this value with the actual transaction amount
id: 'unique-identifier-6789' // Unique transaction identifier
});
});
</script>
💡 Replace 123.45 with the actual transaction amount (using a period as the decimal separator).
💡 Replace unique-identifier-XXXX with the unique transaction identifier generated by your system.
2. Verify the transaction tag installation
Once your tags are implemented, you can test whether their integration is correct.
- Conduct an iAdvize conversation on your site
- Complete a transaction on your site
- Verify that the transaction appears in iAdvize reports.
If you notice transaction discrepancies between iAdvize and your analytics tools, consult the documentation on technical constraints related to transactions to adapt the integration.