The integration of the main iAdvize tag allows you to display the chat on your website, ensure conversation continuity between pages, and activate the Shopping Assistant to detect products viewed by your visitors.
This guide explains how to add the tag manually to ensure a smooth and optimized conversational experience.
1. Integrate the main tag
The main iAdvize tag has been designed to integrate easily and preserve your site's performance.
In your administration
Go to the Settings > Integration > iAdvize tags tab, then click on Go to setup guide
Select the "Add the tracking code manually" option
If you want to send all the necessary documentation to your developer or agency, click on Send an invitation. They will receive an email with the instructions, without needing access to the iAdvize administration.
- Place the following script just before the closing tag
</body>on all pages of your site to ensure conversation continuity between page changes. - Only include the custom data
product_idon product pages. This field must contain the unique product identifier (for example, replacesku_123with your actual product identifier). - Do not modify the structure of the code provided by iAdvize to avoid any malfunction.
- Remember to test on mobile to verify compatibility and widget display on different devices.
- Make sure JavaScript is enabled in your site settings and that the script is not blocked by a firewall or strict security policy (CSP).
<script>
window.iAdvizeInterface = window.iAdvizeInterface || [];
window.iAdvizeInterface.config = {
sid: XXXXX // To replace with your SID
};
window.iAdvizeInterface.push(function(iAdvize) {
iAdvize.set("customData", {
product_id: 'sku_123' // Unique product identifier, only on product pages
});
});
</script>
<script async src="//halc.iadvize.com/iadvize.js"></script>
2. Test if your tag is detected
It is possible to perform a quick test to verify if the main tag is detected on at least one product page of your website.
If your tag is not detected on your site, this will be displayed:
After performing the integration, if the tag is detected, this will be displayed:
3. What's next?
You can now proceed to integrate the transaction tag to allow iAdvize to track sales that occurred during or after an iAdvize conversation.
Integrate the transaction tag manually