Tagged: javascript, js
Hey gents,
I have opted for Qualaroo to improve conversions on my site, and Qualaroo suggests me to implement the following code after the opening <body> tag:
<!– Paste this code right after the <body> tag on every page of your site. –>
<script type=”text/javascript”>
var _kiq = _kiq || [];
(function(){
setTimeout(function(){
var d = document, f = d.getElementsByTagName(‘script’)[0], s = d.createElement(‘script’); s.type = ‘text/javascript’;
s.async = true; s.src = ‘//s3.amazonaws.com/ki.js/XXXX/bxZ.js’; f.parentNode.insertBefore(s, f);
}, 1);
})();
</script>
i’ve looked in a few places to insert the code. Finally I have opted for implementing the code before the </head> tag in header.php, just to have it installed somewhere (and I guess it doesn’t really do any harm, does it?). But it doesn’t seem to be working. Now, that might be because I am using a CDN to speed up the site (but even after refreshing multiple times in the browser and purging the CDN, nothing happens.
Any recommendations?
Many thanks!
Regards,
Arnoud
Hey Arnoud!
You need to put it after the body tag, around line 62 in header.php.
Best regards,
Josue