I have bing ads uet tag and i pasted it in between the tags, as suggested, the code should trigger only once, on every page load, but I have lots of other scripts (i’m using wordpress and jquery), and the tag is triggered twice.
I even tried using it like this, in hope the script will load after everything else is fully loaded, but still no luck:
jQuery(document).ready(function ($) {
$(window).bind("load", function () {
(function(w,d,t,r,u)
{
var f,n,i;
w[u]=w[u]||[],f=function()
{
var o={ti:"123456789"};
o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")
},
n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function()
{
var s=this.readyState;
s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)
},
i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)
})
(window,document,"script","//something.something.com/something.js","uetq");
});
});
is there any way to force this script to load after everything else, maybe to put a timer, or something, would that be a good idea?