Can't Verify Webmaster Tools?


Well-known member
I have a google analytics account linked to my xenforo... as you can see if you view source:

    <script type="text/javascript">
    var _gaq = [['_setAccount', 'UA-20191905-1'], ['_trackPageview']];
    !function(d, t)
        var g = d.createElement(t),
            s = d.getElementsByTagName(t)[0];
        g.async = true;
        g.src = ('https:' == d.location.protocol ? 'https://ssl' : 'http://www') + '';
        s.parentNode.insertBefore(g, s);
    (document, 'script');
I am now trying to verify webmaster tools through the linked google analytics account. Using this method, it would trawl my site looking for the async code. Unfortunately, it seems that google webmaster tools can't verify with the code above. Comparing the XenForo supplied code, with the code supplied by Google, you can see that the code has been slightly altered (looks like XenForo's version uses jQuery?).

Anyone else have this issue?

Jeremy P

Well-known member
I recall getting this, didn't look too much into it at the time and just uploaded an html file to verify instead.