Sei sulla pagina 1di 4

Code implementation guide

All codes should be triggered each time the page is loaded regardless of the source and UTM parameters in
the URL address. For example, the homepage_visited code should be triggered even if the user came to the
Home page from Google research result and the products_ordered code should be triggered even if the
transaction was made without clicking on the 360e-com retargeting creative.

Code on the Home Page


The code should be implemented on the Home Page of the website without any additional edition

<div id="ccx_tr_xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy"></div>
<script type="text/javascript">
/* PUT YOUR VARIABLES HERE */
var W2T_vars = ''
+ '/' + 'homepage_visited'
;
/* END OF VARIABLES STRING */
var tr_scr = document.createElement("script");
tr_scr.type = "text/javascript";
tr_scr.src = "//delivery.clickonometrics.pl/tracker=1234/track/shoppers"+W2T_vars+"/track.js";
document.getElementById("ccx_tr_xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy").appendChild(tr_scr);
</script>

Code on the Category Page


The code should be pasted into the Category Page. {CATEGORY} macro should be replaced with category
name. {ID} and {PRICE} macros should be replaced with ids and prices of all loaded products on the Category
Page in the order they are presented on the website. The code should be triggered with each dynamic top-
up of products, returning the new ones

For example, the user was in the "Jackets" category, which contains 6 products

<div id="ccx_tr_ xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy "></div>


<script type="text/javascript">
/* PUT YOUR VARIABLES HERE */
var W2T_vars = ''
+ '/' + 'browsed_category'
+ '/' + '[{"id":"111","10.00":"{PRICE}","in_basket":"1"}, {"id":"222","price":"10.00","in_basket":"1"},
{"id":"333","price":"10.00","in_basket":"1"}, {"id":"444","price":"10.00","in_basket":"1"},
{"id":"555","price":"15.00","in_basket":"1"}, {"id":"666","price":"15.00","in_basket":"1"},]'
+ '/' + 'Jackets'
;
/* END OF VARIABLES STRING */
var tr_scr = document.createElement("script");
tr_scr.type = "text/javascript";
tr_scr.src = "//delivery.clickonometrics.pl/tracker=1234/track/shoppers"+W2T_vars+"/track.js";
document.getElementById("ccx_tr_ xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy ").appendChild(tr_scr);
</script>

1
Code implementation guide
Code on the Product Page
The code should be pasted into the Product Page. {ID} macro should be replaced with the same product ID
as in the product feed, {PRICE} macro should be replaced with product price. {QUANTITY} macro is optional
and should be replaced with number of such products in basket OR -1 in case of lack of information in
„in_basket“ section

<div id="ccx_tr_xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy"></div>
<script type="text/javascript">
/* PUT YOUR VARIABLES HERE */
var W2T_vars = ''
+ '/' + 'browsed_product'
+ '/' + '{"id":"1235","price":"99.00","in_basket":"1"}'
;
/* END OF VARIABLES STRING */
var tr_scr = document.createElement("script");
tr_scr.type = "text/javascript";
tr_scr.src = "//delivery.clickonometrics.pl/tracker=1234/track/shoppers"+W2T_vars+"/track.js";
document.getElementById("ccx_tr_xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy").appendChild(tr_scr);
</script>

Code associated with adding a product to the Basket


The code should be triggered when a product is added to the Basket both from product card and a category
if it is possible. {ID}, {PRICE} and {QUANTITY} macros should be replaced with ID, Price and Quantity of
products which were added to the Basket. For example, when a user adds 2 products with the ID 123, price
99.00 to the Basket, the code will look like this:

<div id="ccx_tr_xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy"></div>
<script type="text/javascript">
/* PUT YOUR VARIABLES HERE */
var W2T_vars = ''
+ '/' + 'product_added'
+ '/' + '{"id":"123","price":"99.00","added":"2"}'
;
/* END OF VARIABLES STRING */
var tr_scr = document.createElement("script");
tr_scr.type = "text/javascript";
tr_scr.src = "//delivery.clickonometrics.pl/tracker=1234/track/shoppers"+W2T_vars+"/track.js";
document.getElementById("ccx_tr_xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy").appendChild(tr_scr);
</script>

2
Code implementation guide
Code associated with product removing from Basket
The code should be triggered when a product is removed from the Basket. {ID}, {PRICE} and {QUANTITY}
macros should be replaced with ID, Price and Quantity of products which were removed from the Basket.
For example, when a user removes from the basket 1 item of the product with the ID 123, price 99.0, the
code will look like this (this code is optional):

<div id="ccx_tr_ xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy "></div>


<script type="text/javascript">
/* PUT YOUR VARIABLES HERE */
var W2T_vars = ''
+ '/' + 'product_removed'
+ '/' + '{"id":"123","price":"99.0","removed":"1"}'
;
/* END OF VARIABLES STRING */
var tr_scr = document.createElement("script");
tr_scr.type = "text/javascript";
tr_scr.src = "//delivery.clickonometrics.pl/tracker=1234/track/shoppers"+W2T_vars+"/track.js";
document.getElementById("ccx_tr_ xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy ").appendChild(tr_scr);
</script>

Code on the Basket Page


The code should be placed on the basket summary page. {ID}, {PRICE} and {QUANTITY} macros should be
replaced with ID, Price and Quantity of products in basket. For example, the user is on the Basket Page with
3 products inside:

ID 123, PRICE 10.00 USD, QUANTITY 1


ID 456, PRICE 15.00 USD, QUANTITY 2
ID 789, PRICE 20.00 USD, QUANTITY 3

<div id="ccx_tr_xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy"></div>
<script type="text/javascript">
/* PUT YOUR VARIABLES HERE */
var W2T_vars = ''
+ '/' + 'cart'
+ '/' + '[{"id":"123","price":"10.00","in_basket":"1"}, {"id":"456","price":"15.00","in_basket":"2"},
{"id":"789","price":"20.00","in_basket":"3"}]'
;
/* END OF VARIABLES STRING */
var tr_scr = document.createElement("script");
tr_scr.type = "text/javascript";
tr_scr.src = "//delivery.clickonometrics.pl/tracker=1234/track/shoppers"+W2T_vars+"/track.js";
document.getElementById("ccx_tr_xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy").appendChild(tr_scr);
</script>

3
Code implementation guide
Code associated with order processing
This code should be implemented into the page which begins order processing. This is typically the contact
details form or any other page displayed after clicking the “Go to checkout” or similar button.

<div id="ccx_tr_ xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy "></div>


<script type="text/javascript">
/* PUT YOUR VARIABLES HERE */
var W2T_vars = ''
+ '/' + 'order_started'
;
/* END OF VARIABLES STRING */
var tr_scr = document.createElement("script");
tr_scr.type = "text/javascript";
tr_scr.src = "//delivery.clickonometrics.pl/tracker=1234/track/shoppers"+W2T_vars+"/track.js";
document.getElementById("ccx_tr_ xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy ").appendChild(tr_scr);
</script>

Code on the Thank You Page


The code should be implemented on the Thank You Page. {ID}, {PRICE} and {QUANTITY} macros should be
replaced with ID, Price and Quantity of products which were bought from the website. For example, a user
has bought 3 products with a total value of 100 USD under order number 123xxxyyy456

ID 123, PRICE 10.00 USD, QUANTITY 1


ID 456, PRICE 15.00 USD, QUANTITY 2
ID 789, PRICE 20.00 USD, QUANTITY 3
<div id="ccx_tr_ xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy "></div>
<script type="text/javascript">
/* PUT YOUR VARIABLES HERE */
var W2T_vars = ''
+ '/' + 'products_ordered'
+ '/' + '100.00'
+ '/' + ‘123xxxyyy456’
+ '/' + '[{"id":"123","price":"10.00","in_basket":"1"}, {"id":"456","price":"15.00","in_basket":"2"},
{"id":"789","price":"20.00","in_basket":"3"}]'
;
/* END OF VARIABLES STRING */
var tr_scr = document.createElement("script");
tr_scr.type = "text/javascript";
tr_scr.src = "//delivery.clickonometrics.pl/tracker=1234/track/shoppers"+W2T_vars+"/track.js";
document.getElementById("ccx_tr_ xxxxyyyyxxxxyyyyxxxxyyyyxxxxyyyy ").appendChild(tr_scr);
</script>

Potrebbero piacerti anche