Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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.
<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>
For example, the user was in the "Jackets" category, which contains 6 products
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>
<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 = ''
+ '/' + '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.