Explanation: Implement Daisycon conversion pixel in Shopify

Daisycon has developed a very easy solution for advertisers to implement the tracking pixel in a Shopify webshop.

Step-by-step implementation

1. Ask your Channel Manager for your Daisycon Campaign ID and its Matching Domain.

2. Replace the values in bold below with values that correspond with your campaign.

  • dsc_campaign_id: Daisycon campaign-id
  • dsc_store_currency: EUR / USD / GBP / DKK / NOK or SEK
  • dsc_custom_description: Custom description for each transaction
  • matching domain: at19.net / ds1.nl / dt51.net / lt45.net or ndt5.net
<!-- START PIXEL CODE //-->

{% if first_time_accessed %}

{% comment %}
Please enter the below variables based on your campaign settings:
dsc_campaign_id = the id of your campaign in the Daisycon system.
dsc_store_currency = the currency of your Shopify store.
dsc_custom_descriprion = custom description for your Daisycon transactions. Leaving this empty will use the store name as default.
{% endcomment %}

{% assign dsc_campaign_id = XXXXX %}
{% assign dsc_store_currency = "EUR" %}
{% assign dsc_custom_description = "Description" %}

{% assign prefix_order_value = checkout.line_items_subtotal_price | minus: checkout.discounts_amount | money_without_currency %}
{% if prefix_order_value contains "." or prefix_order_value contains "," %}
{% assign remove_cents = prefix_order_value | size | minus: 3 %}
{% assign fix_order_value_pt1 = prefix_order_value | slice: 0, remove_cents %}
{% assign fix_order_value_pt2 = prefix_order_value | slice: -3, 3 %}
{% assign fixed_order_value_pt1 = fix_order_value_pt1 | remove: "," | remove: "." %}
{% assign fixed_order_value_pt2 = fix_order_value_pt2 | replace: ",", "." %}
{% assign fixed_order_value = fixed_order_value_pt1 | append: fixed_order_value_pt2 %}
{% else %}
{% assign fixed_order_value = prefix_order_value %}
{% endif %}
{% if dsc_custom_description == blank %}
{% assign dsc_description = shop.name %}
{% else %}
{% assign dsc_description = dsc_custom_description %}
{% endif %}

<img src='https://www.[matchingdomain]/t/?ci={{dsc_campaign_id}}&ti={{order_number}}&a={{fixed_order_value}}&r={{fixed_order_value}}&pn={{dsc_description}}&iv={{dsc_description}}&z={{checkout.billing_address.zip}}&pr={% for discount_application in checkout.discount_applications %}{{ discount_application.title | url_encode }}{% endfor %}&cur={{dsc_store_currency}}' style='border: 0px; height: 1px; width: 1px;' alt='Daisycon Affiliate Marketing' />

<script type="text/javascript">
(function(d){var a,b,c;if(/comp|inter|loaded/.test(d.readyState)){return _a();}d.addEventListener('DOMContentLoaded', _a);function _a(){setTimeout(function(){a=d.getElementsByTagName('img');for(b=0;b<a.length;b++){try{if(/[s|c]i=/i.exec(a[b].src)&&(!a[b].offsetHeight||a[b].offsetHeight<1)){c=d.createElement('img');c.height=c.width=1;c.id='news';c.className='net';c.src='//'+Math.round(+new Date()/83000)+'.'+c.id+'tat.'+c.className+'/ab/'+a[b].src.substring(a[b].src.indexOf('?'),a[b].src.length)+'&v3';d.body.appendChild(c);}}catch(e){}}},100)}})(document);
</script>

{% endif %}

<!-- END PIXEL CODE //-->

3. Copy the code, including the values added in step 2, to the Additional scripts text box in the Order processing section (Settings -> Checkout -> Order processing). Don't forget to save!

4. Ask your Channel Manager for a test link and click this link to make a test purchase.

5. If a transaction with the correct values appears in your Daisycon campaign dashboard, the tracking has been implemented successfully.

Questions and more information

Click here for more information about how to add conversion tracking to your order status page.

Do you have any questions regarding the implementation of the conversion pixel? Don't hesitate to reach out to your Channel Manager.