Explanation: Implement Daisycon conversion pixel in DanDomain

Daisycon has developed a very easy solution for Danish advertisers to implement our tracking pixel in a DanDomain 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.

<!-- START PIXEL CODE //-->
<script type="text/javascript">
window.onload = function() {

var cid = '000000'; // Enter your campaign ID here!
var domain = 'ndt5.net'; // Enter your matching domain here!

var str = '[[SubTotalExclShippingAndPaymentFeesExclVAT]]';
var amt = str.replace(/\./g, '').replace(/,/g, '.').replace(/^\D+|\D+$/g, '');
var pn = encodeURI('[[Shop Name]]');
document.getElementById('dscpxl').src = 'https://www.' + domain + '/t/?ci='+ cid + '&ti=[[OrderID]]&a=' + amt + '&r=' + amt + '&pn=' + pn;
};
</script>

<img id='dscpxl' src='' 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>
<!-- END PIXEL CODE //-->

3. Copy the code, including the values added in step 2, to the code field on the order confirmation page: Design –> Tekster/Knapper –> Bestil step 4 –> kodefelt
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

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