Ticimax

Setup guides.

Overview

This guide explains the Criteo integration for the Ticimax platform.

[[disclaimer-nonplugin]]

Criteo Product Feed

  1. In the Ticimax platform, the product feed is automatically generated at the following address: {{homepageurl}}/Xml/AdwordsUrunFeed.ashx
  2. In the Criteo Integrate platform's Feed module, choose the Google Shopping feed option and use this URL

Criteo OneTag Setup

  1. Login to the Ticimax admin panel

  2. Go to Modüller > Script Yönetimi (Modules > Script Management) menu option Script management menu

  3. On this page, you will find the following scripts: Scripts

  4. Backup all the scripts

  5. Choose each of the options below, and copy the related JavaScript codes and save:

Tüm sayfalar (All pages)

<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
<script type="text/javascript">
$(function() {
    var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";

    if($(".ProductListContent").length > 0 && ($(".ProductListContent")[0].baseURI != window.location.origin + "/" && !$(".ProductListContent")[0].baseURI.startsWith(window.location.origin + "/?utm"))) {
      var t = filterModel;

      $.ajax({
          dataType: "json",
          data: {
              FilterJson: JSON.stringify(t.filter),
              PagingJson: JSON.stringify(t.paging)},
          contentType: "application/json",
          url: "/api/product/GetProductList",
          method: "GET"
      }).success(function(n) {
        var productList = new Array();
        for(var i=0; i<3 && i<n.products.length; i++)
          productList.push(n.products[i].productId);

        window.criteo_q = window.criteo_q || [];
        window.criteo_q.push(
            { event: "setAccount", account: {{accountid}}},
            { event: "setEmail", email: getMail()},
            { event: "setSiteType", type: deviceType},
            { event: "viewList", ecpplugin: "ticimax", item: productList});
      })

    }
});
</script>

Anasayfa (Homepage)

<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
<script type="text/javascript">
  var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
  window.criteo_q = window.criteo_q || [];
  window.criteo_q.push(
      { event: "setAccount", account: {{accountid}}},
      { event: "setEmail", email: getMail()},
      { event: "setSiteType", type: deviceType},
      { event: "viewHome", ecpplugin: "ticimax"});
</script>

Kategori (Category)

<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
<script type="text/javascript">
  var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
  var products = "{URUNIDLERI}".split(",").slice(0, 3);

  window.criteo_q = window.criteo_q || [];
  window.criteo_q.push(
      { event: "setAccount", account: {{accountid}}},
      { event: "setEmail", email: getMail()},
      { event: "setSiteType", type: deviceType},
      { event: "viewList", ecpplugin: "ticimax", item: products});
</script>

Ürün Detay (Product Detail)

<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
<script type="text/javascript">
  var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
  var productId = "{ID}";

  window.criteo_q = window.criteo_q || [];
  window.criteo_q.push(
      { event: "setAccount", account: {{accountid}}},
      { event: "setEmail", email: getMail()},
      { event: "setSiteType", type: deviceType},
      { event: "viewItem", ecpplugin: "ticimax", item: productId});
</script>

Sipariş Tamamlandı (Order Completed)

<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
<script type="text/javascript">
  var products = "{URUNIDLERI}".split(",");
  var prices = "{TIRNAKLIURUNFIYATLARI}".replace(/'/g, "").split(",").map(function(el){ return +el;});
  var transactionId = "{SIPARISID}";
  var userEmail = "{EMAIL}";


  var criteoBasket = []
  for(var i=0; i<products.length; i++) {
      criteoBasket.push({id: products[i], price: prices[i], quantity: 1});
  }

  window.criteo_q = window.criteo_q || [];
  var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
  window.criteo_q.push(
      { event: "setAccount", account: {{accountid}}},
      { event: "setEmail", email: userEmail},
      { event: "setSiteType", type: deviceType},
      { event: "trackTransaction", ecpplugin: "ticimax", id: transactionId, item: criteoBasket});
</script>

Sepet (Basket)

<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
<script type="text/javascript">
  var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";

  var products = "{URUNIDLERI}".split(",");
  var prices = "{URUNFIYATLARIKDVDAHIL}".split(",").map(function(el){ return +el;});;
  var quantities = "{URUNADETLERI}".split(",").map(function(el){ return +el;});;

  var criteoBasket = []
  for(var i=0; i<products.length; i++) {
      criteoBasket.push({id: products[i], price: prices[i], quantity: quantities[i]});
  }

  window.criteo_q = window.criteo_q || [];
  window.criteo_q.push(
      { event: "setAccount", account: {{accountid}}},
      { event: "setEmail", email: getMail()},
      { event: "setSiteType", type: deviceType},
      { event: "viewBasket", ecpplugin: "ticimax", item: criteoBasket});
</script>

Verification

[[accurate]]