This module actually have 6 independent scripts, each one is using the same configuration process.

You have 3 scripts parts:

  1. Mains script can be displayed on any page. It can be used for global traking scripts, like Google Analytics.
  2. Order script is a kind of sub script of main script, and will replace the {ORDER_SCRIPT} token if present in main script. Order script can be only displayed on checkout/completed page because all of its tokens are binded to the current order.
  3. Order detail script is a kind of sub script of order script, it will replace the {ORDER_DETAIL_SCRIPT} token if present in order script. Order detail script can be only displayed on checkout/completed page because all of its tokens are binded to the current order details.

Avalaible tokens

  1. In main script {SITE}, {CODE}
  2. In order script {ORDERID}, {SITE}, {SUBTOTALEXCLTAX}, {SUBTOTALINCLTAX}, {SUBTOTALDISCOUNTEXCLTAX}, {SUBTOTALDISCOUNTINCLTAX}, {TOTAL}, {TAX}, {SHIPPINGEXCLTAX}, {SHIPPINGINCLTAX}, {CITY}, {STATEPROVINCE}, {COUNTRY}, {ORDER_DETAILS_SCRIPT}
  3. In order detail script {ORDERID}, {PRODUCTSKU}, {PRODUCTNAME}, {CATEGORYNAME}, {UNITPRICEINCLTAX}, {UNITPRICEEXCLTAX}, {QUANTITY}

Conditions to activate scripts

Three different triggers are available to activate the script:

  1. List of product ids and optional codes. Specify here the products you want to add the script.
    If you do not want to add the script for any product, leave the field empty
    If you want to add the script for all products, enter '*'
    If you want to add the script for product with id=55, enter '55'
    If you want to add the script for product with id=55, 56 and 57, enter '55,65,57'
    If you want to add the script for product with id=55, 56 and 57 and include a specific code for there three products, enter '55,65,57:thecodehere'
    If you want to add the script for product with id=55, 56 and 57 and include a specific code for there three products, and product 67 and 68 with another code, enter '55,65,57:thecodehere;67,68:othercode'
  2. List of categories ids and optional codes. Specify here the categories you want to add the script, use product samples. 
  3. List of controllers/actions and codes. Specify here the other pages you want to add the script.
    If you want to add the script on any page (excluding products and categories), enter '*'
    If you want to add the script on the last checkout page, enter 'checkout/completed'
    If you want to add the script on contact page, enter 'contactus'

What is the CODE?

Some scripts needs a specific code to identify conversion page, or specific product, or a group of products, etc. For example, in Google Adwords, each conversion or retargeting script include a variable called label. You would use the CODE token to set this value.

Examples and screenshots

Last edited Oct 15, 2012 at 5:18 PM by nicolasmuniere, version 15

Comments

No comments yet.