Help Center

Explore our knowledge base
article

Implement the conversion tag

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

1. Install the conversion tag

Prerequisite - Positioning the conversion code :

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

Prerequisites - Filling in the variables of conversion tracking :

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

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

<!-- START IADVIZE CONVERSION TRACKING CODE -->
<script type="text/javascript"> window.idzTrans = {"cartAmount":19.90,"tID":"45676456"}; </script>

<!-- END IADVIZE CONVERSION TRACKING CODE -->



 

Note : please replace the values of the variables "cartAmount" and "tID" with their actual values.

 

⚠ If your site and/or purchase tunnel is built with a Single page application (SPA) framework, the conversion 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

  • A sale is saved in iAdvize if the required parameters are filled in the conversion tag (unique transaction ID and transaction amount).
  • A sale is associated to a conversation (and an agent) 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. Check the implementation of the conversion tag

From the browser console :

  1. On your confirmation page, open your browser's console (Under Chrome: Right-click > "Inspect", then select "Console")
  2. Type "idzTrans" (without quotes, with a capital "T") and press "Enter". If your conversion code is correctly inserted, you will find your values :

idztrans.png

In case of errors :

  • If you get an error, or "undefined,"
    => The conversion code does not seem to be inserted on this page, its implementation is to be checked on your side.
  • If the cartAmount / tID values are not correct
    => The filling in of these values is to be checked on your side

4. 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