To install our 1st party tracking v2 you need to implement our entry point script first. You can find the information on how to set it up here:
Implementing the checkout script
The checkout script has to be implemented in the Shopify administration backend:
Go to Settings –> Checkout –> Order processing –> Additional content & scripts
Lead Script
<script>
(function() {
var el = document.createElement('script');
el.setAttribute('src', '//cdn.trackmytarget.com/tracking/s/checkout.min.js');
el.setAttribute('data-type', 'lead');
el.setAttribute('data-offer-sid', 'OFFER_SID');
el.setAttribute('data-event-sid', 'EVENT_SID');
el.setAttribute('data-id', '#{{ order_number }}');
</script>
<noscript>
<img src="https://p.trackmytarget.com/?type=lead&offer_sid=OFFER_SID&event_sid=EVENT_SID&id=#{{order_number}}" alt="" width="1" height="1" border="0" />
</noscript>
Sale Script
<script>
(function() {
var el = document.createElement('script');
el.setAttribute('src', '//cdn.trackmytarget.com/tracking/s/checkout.min.js');
el.setAttribute('data-type', 'sale');
el.setAttribute('data-offer-sid', 'OFFER_SID');
el.setAttribute('data-event-sid', 'EVENT_SID');
el.setAttribute('data-id', '#{{ order_number }}');
el.setAttribute('data-amount', '#{{ subtotal_price | money_without_currency }}');
el.setAttribute('data-currency', '#{{ currency }}');
el.setAttribute('data-code', "{% for discount_application in discount_applications %}#{{ discount_application.title | append: ", " }}{% endfor %}");
document.body.appendChild(el);
})();
</script>
<noscript>
<img src="https://p.trackmytarget.com/?type=sale&offer_sid=OFFER_SID&event_sid=EVENT_SID&id=#{{order_number}}&amount=#{{money_without_currency}}¤cy=#{{currency}}&code="{% for discount_application in discount_applications %}#{{ discount_application.title | append: ", " }}{% endfor %}");" alt="" width="1" height="1" border="0" />
</noscript>
Parameters
-
OFFER_SID required
Replace with 6 character sID of the Offer. You can find this value in the Offer list of the marketplace or ask your account manager. -
EVENT_SID required
Replace with the 6 character sID of the product group. You can find this value in the tracking tab when creating or editing an Offer or you can ask your account manager.