Skip to main content

How 1st party cookie tracker code

With Google's decision to phase out 3rd party cookies, Adinton has adapted to work seamlessly with 1st party cookies.

The setup is identical to that of 3rd party cookies, but you'll need to configure your DNS to treat Adinton's cookies as 1st party cookies.

Implement the Common tracker on every page of your website:

window.adintonSettings = {
app_ns: 'demo-account',
email : ""
var _adn=_adn||[]; adnv = decodeURIComponent((new RegExp('[?|&]_adnv=([^&;]+?)(&|#|;|$)').exec(||[,""])[1].replace(/\+/g, '%20'))||"";
cName = ""; acc = ""; if (adnv=="") { cookArr = document.cookie.split('; '); for (bb = 0; bb < cookArr.length; bb++) { if (cookArr[bb].split('=')[0] == 'adsmkt_ns') acc = unescape(cookArr[bb].split('=')[1]).replace(/ +$/, '');} }
_adn.push(['_setDomain',document.domain],['_setAdnv', adnv],['_setNamespace', window.adintonSettings.app_ns],['_setAccount', acc]);
(function(){function oCallback(){adnL=true;adnConv();} var adn=document.createElement('script');adn.type='text/javascript';adn.async=1;adn.onload=oCallback;adn.src=''+_adn[0][1]+'&adnv='+_adn[1][1]+'&ns='+_adn[2][1]+'&acc='+_adn[3][1];'adn'; document.getElementsByTagName('head')[0].appendChild(adn,oCallback);})();

There's a significant difference between this pixel and the 3rd party cookies pixel. This pixel calls to:

instead to

  1. Add Events Tracker:
_adn.push(['_cparams', {"conversion_type":"purchase","email":"","amount":"1.01","transaction_id":"0000000001"}]);
adn_mconv=true; adn_cfimg=0; function adnConversionFunction() { if (typeof adnConv=='function') adnConv();
else{ var re=new RegExp("adsmkt_"+_adn[4][1]+"=([^;]+)"); var value=re.exec(document.cookie);}} adnConversionFunction();

Event trackers function identically to 3rd party cookie event trackers.

  1. Add a TXT Record in your DNS Manager.

Please email us at to request the value for the TXT Record. This TXT Record will direct your Adinton subdomain (e.g., mwu0m in this instance) to an IP address that we'll provide.