lfischer

Philips Shop - Example

Oct 10th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ###Homepage###
  2. <script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
  3. <script type="text/javascript">
  4. window.criteo_q = window.criteo_q || [];
  5. window.criteo_q.push(
  6.         { event: "setAccount", account: (accountid) },
  7.         { event: "setSiteType", type: "d" },
  8.         { event: "viewHome", site: "shop" }
  9. );
  10. </script>
  11.  
  12. ###Listing###
  13. <script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
  14. <script type="text/javascript">
  15. window.criteo_q = window.criteo_q || [];
  16. window.criteo_q.push(
  17.         { event: "setAccount", account: (accountid) },
  18.         { event: "setSiteType", type: "d" },
  19.         { event: "viewList", item: ["#First item id#", "#Second item id#", "#Third item id#"], site: "shop" }
  20. );
  21. </script>
  22.  
  23. ###Product###
  24. <script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
  25. <script type="text/javascript">
  26. window.criteo_q = window.criteo_q || [];
  27. window.criteo_q.push(  
  28.         { event: "setAccount", account: (accountid) },
  29.         { event: "setSiteType", type: "d" },
  30.         { event: "viewItem", item: "#Your item id#", site: "shop" }
  31. );
  32. </script>
  33.  
  34. ###Basket###
  35. <script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
  36. <script type="text/javascript">
  37. window.criteo_q = window.criteo_q || [];
  38. window.criteo_q.push(  
  39.         { event: "setAccount", account: (accountid) },
  40.         { event: "setSiteType", type: "d" },
  41.         { event: "viewBasket", site: "shop", item: [
  42.               { id: "#First item id#", price: #First item unit price#, quantity: #First item quantity# },
  43.               { id: "#Second item id#", price: #Second item unit price#, quantity: #Second item quantity# }
  44.               /* #add a line for each item in the user's cart# */
  45. ]});
  46. </script>
  47.  
  48. ###Transaction###
  49. <script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
  50. <script type="text/javascript">
  51. window.criteo_q = window.criteo_q || [];
  52. window.criteo_q.push(
  53.         { event: "setAccount", account: (accountid) },
  54.         { event: "setSiteType", type: "d" },
  55.         { event: "trackTransaction" , id: "#Transaction Id#", site: "shop", item: [
  56.               { id: "#First item id#", price: #First item unit price#, quantity: #First item quantity# },
  57.               { id: "#Second item id#", price: #Second item unit price#, quantity: #Second item quantity# }
  58.               /* #add a line for each item in the user's cart# */
  59. ]});
  60. </script>
Advertisement
Add Comment
Please, Sign In to add comment