Eloqua tracking script implementation
Hello Community,
I am looking for some guidance on how to effectively add an Eloqua tracking script to our site using Adobe DTM. After reading the help files and articles, I feel like I am close, but am missing something important.
Here is the tracking script code (actual site and cookie data removed), that is to be implemented.
Where in Adobe DTM should I add this to fire properly?
<script type="text/javascript">
var _elqQ = _elqQ || [];
_elqQ.push(['elqSetSiteId', '0000']);
_elqQ.push(['elqUseFirstPartyCookie', 'cookietracking.com']);
_elqQ.push(['elqTrackPageView']);
(function() {
function async_load() {
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = '//img.en25.com/i/elqCfg.min.js';
var x = document.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s, x);
}
if(window.addEventListener) window.addEventListener
('DOMContentLoaded', async_load, false);
else if (window.attachEvent) window.attachEvent('onload', async_load);
})();
</script>
Thank you!
James