Brand Conversion Integration
The Rokt brand conversion integration involves integrating the Rokt snippet in order to attribute conversions back to Rokt campaigns.
We recommend passing raw or hashed (SHA256) email and transactional attributes to ensure there is a high degree of accuracy.
See Attributes for more details on Rokt attributes.
(function(r,o,k,t,n,e,w,a,_){r._ROKT_=n;r[n]=r[n]||{id:t,h:w,lc:[],it:new Date(),onLoaded:function(c){r[n].lc.push(c)}};a=o.createElement('script');a.type='text/javascript';a.async=!0;a.src=k;if(e){a.integrity=e;a.crossOrigin='anonymous'}_=o.getElementsByTagName('script')[0];_.parentNode.insertBefore(a,_)})(window,document,'https://apps.rokt.com/wsdk/integrations/snippet.js','roktTagid', 'rokt');
rokt.onLoaded(function(rokt) {
rokt.setAttributes({
// Recommended
email: '',
emailsha256: '',
Conversiontype: '',
rokttrackingid '',
// Transaction
amount: '',
currency: '',
quantity: '',
paymenttype: '',
ccbin: '',
margin: '',
confirmationref: ''
});
});
See Rokt.setAttributes for more details on setting attributes.