Awin Access Technical Integration lightspeed

From Wiki

Jump to: navigation, search

Deutsch . Dutch . Español . Français . Italiano . Polski . Português



Stuck? Click the banner below to watch the Lightspeed Integration video tutorial!

Step 1

To implement the pixel in Lightspeed you need to login into your Lightspeed account. Please go into the account of the webshop and then you need to go to “Settings - Web Extras”

Step 2

The journey tag need to fire on every page and on the checkout/thank you page.
Journey Tag

<script defer="defer" src="" type="text/javascript"></script>

Step 3

Please copy the lightspeed script that is mentioned below:
Lightspeed Tag

<script defer="defer" src="" type="text/javascript"></script>
{% if template == 'pages/thankyou.rain' %}
<form style="display: none;" name="aw_basket_form">
<textarea wrap="physical" id="aw_basket">
  {% set advertiserId = xxxx %}
  {% for product in order.products %}
                AW:P|{{ advertiserId }}|{{ order.information.number }}|{{ product.variant_id }}|{{ product.title }}|{{ product.price_excl }}|{{ product.quantity }}|{{ product.sku }}|default
  {% endfor %}
<script type="text/javascript">
/*** Do not change ***/ 
var AWIN = {}; 
AWIN.Tracking = {}; 
AWIN.Tracking.Sale = {}; 
/** Set your transaction parameters ***/ 
AWIN.Tracking.Sale.amount = "{{ order.information.price_incl }}"; = "aw"; 
AWIN.Tracking.Sale.orderRef = "{{ order.information.number }}"; = "DEFAULT: {{ order.information.price_incl | round(2) }}"; 
<script defer="defer" src="" type="text/javascript"></script>
<img border="0" height="0" src="{{ order.information.price_incl }}&ch=aw&parts=DEFAULT:{{ order.information.price_incl | round(2) }}&ref={{ order.information.number }}" style="display: none;" width="0">
{% for product in order.products %}
                pageTracker._addItem("{{ details.number }}","{{ product.sku }}","{{ product.title|escape }}","","{{ product.price_excl }}","{{ product.quantity }}"); 
{% endfor %}
{% endif %}
{# END Awin tag #} 

Ensure the XXXXX has been changed to reflect your Advertiser ID, you can find this by logging onto your Awin account and clicking on Account > Overview, where the MID will be shown underneath your account name.

In the screenshot you can see where you need to add the Journey Tag and the Lightspeed script. When the Lightspeed script is added please do not forget to save it!.

Last Step - Tracking Tests

After integrating the Awin tracking you will need to create a test transaction via the Awin User Interface to check the tracking is working correctly.

Complete the steps to conduct a test transaction via our Test Transaction Guide

Return to tracking guide home page here


Due to new European legislation regarding how websites store information about you, AWIN is updating its privacy policy. You can see the new version of our policy here. If you would like to see the information we capture on this website, please click here for further details. In order to accept cookies on this site please click the 'I ACCEPT' button