Support Center

Tracking with Ovisto

Follow

 

 

Ovisto tracking can be embedded in your Shopgate mobile shop using the tracking codes function. 

 

Read Setting up tracking codes for your mobile shop to learn more about the Shopgate tracking codes.

 

To set up Ovisto tracking, follow the steps below:

  1. Log in to your Shopgate Admin page.

  2. Click on Settings from the menu bar, then select Tracking Tools.


  3. Locate the Tracking codes section, select All platforms and Checkout success page, then click +Add.


  4. An empty script editor will open. Paste the following tracking code.
    var partnerID = 'XXXXXXXX';
    var coupon = ' ';
    var date = new Date();
    var anrede = 'Herr/Frau';

    var address = sgData.order.invoiceAddress.street.split(" ");
    housenumber = address.pop();
    address = address.join(" ");
    if(sgData.order.coupons[0]){coupon = sgData.order.coupons[0].code; }
    date = date.getFullYear() + '-' + date.getDate() + '-' + date.getMonth() + ' ' + date.getUTCHours()+':'+date.getUTCMinutes()+':'+date.getUTCSeconds();
    if(sgData.order.user.gender){
    if(sgData.order.user.gender=='m') anrede = 'Herr';
    if(sgData.order.user.gender=='f') anrede = 'Frau';
    }

    window._ovtp = window._ovtp || [];
    window._ovtp.push(['ovt_partner_id', partnerID]);
    window._ovtp.push(['cust_salutation', anrede]);
    window._ovtp.push(['cust_firstname', sgData.order.shippingAddress.firstName]);
    window._ovtp.push(['cust_lastname', sgData.order.shippingAddress.surname]);
    window._ovtp.push(['cust_city', sgData.order.invoiceAddress.city]);
    window._ovtp.push(['cust_zip', sgData.order.invoiceAddress.zipcode]);
    window._ovtp.push(['street', address]);
    window._ovtp.push(['house_no', housenumber]);
    window._ovtp.push(['country', sgData.order.invoiceAddress.country]);
    window._ovtp.push(['cust_email', sgData.order.user.email]);
    window._ovtp.push(['order_datetime', date]);
    window._ovtp.push(['order_id', sgData.order.number]);
    window._ovtp.push(['order_amount', sgData.order.amount.gross]);
    window._ovtp.push(['order_curr', sgData.order.amount.currency]);
    window._ovtp.push(['order_coupon', coupon]);
    window._ovtp.push(['payment_method', sgData.order.payment.name]);
    window._ovtp.push(['birthday', sgData.order.user.birthday]);
    window._ovtp.push(['phone_number', sgData.order.user.phone]);

    (function() {
    var ovt = document.createElement('script'); ovt.type = 'text/javascript'; ovt.async = true;
    ovt.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'gutschein-netzwerk.ovisto.de/js/client.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ovt, s);
    })();


  5. Replace XXXXXXXX (line 1) with your Ovisto Partner ID. Contact Ovisto if you have any question regarding your partner ID.

That's it! You have successfully set up your tracking codes.

 

For a better understanding on the tracking codes function and all its options, please read Setting up tracking codes for your mobile shop.

Comments