Implement the conversion tag

In order to track the sales generated after contact, you need to install our transaction tag on your order confirmation page (or the other element you need to track).

1. Install the transaction tag

Prerequisite - Positioning the transaction code :

  • The code must be inserted BEFORE the "classic" iAdvize code.
  • In order to track the sales generated through iAdvize, you must install our transaction tag on the payment confirmation page of your site (for all payment methods offered). 

Prerequisites - Filling in the variables of conversion tracking :

  • Amount: order amount (mandatory - must contain an amount, greater than 0.00 - the decimal delimiter must be a period).
  • ID: identifier of the order (mandatory - must be unique for each transaction)

Here is the content of this code (This is an example) :

window.iAdvizeInterface = window.iAdvizeInterface || [];
window.iAdvizeInterface.push(function(iAdvize) {
    amount: 19.90,
    id: "XXXXXXXX"
  • Please replace the XX values in the "amount" and "ID" variables with their actual values:
    • Replace "amount" with the transaction amount.
    • Replace "ID" with the unique identifier of the transaction, as seen in your systems.


NoteThis script only needs to be declared on the payment confirmation page. It should not be defined on the other pages of your website.


⚠ If your site and/or purchase tunnel is built with a single page application (SPA) framework, the transaction tag will not be compatible.

To use a compatible tag, please refer to point 3/Technical constraints related to your website/SPA of the article: Sales / Monitoring transactions - technical constraints

2. How transactions are taken into account

  • The tag must be present on the payment confirmation page (sales are recorded in the statistics)
  • The visitor must go to the payment confirmation page and stay long enough for the Javascript tag to be called
  • A sale is saved in iAdvize if the required parameters are filled in the transaction tag (unique transaction ID and transaction amount).
  • A sale is associated with a conversation (and an agent : he must have sent at least one message in the conversation) if it has been made during the last conversation, or up to 48 hours after a conversation (this timeframe can be changed upon request).
  • The conversation and the sale must be carried out from the same browser.

3. Technical constraints

If you find discrepancies with your Analytics tool and the results in the iAdvize administration, you can consult the article Sales / Monitoring transactions - technicals constraints