jazzwitherspoon
Member
I have Xenforo 1.1 installed on my forum at www.memeideas.com, and I also have Xenporta installed as the portal page.
I have my Google Analytics ID added to the Xenforo setup options, and that seems to work, as my Analytics page is reporting traffic to my site. However, when I try to verify that I am the owner of my site by telling the Webmaster Tools to verify my site by using the asynchronous snippet from Analytics, it keeps telling me that verification has failed.
The google analytics template for my page reads as follows:
Can anyone tell me what the problem is? I have seen from another thread that this code does not match the code provided by Google for Analytics setup, but it seems to be working on my Analytics page, and as you can see above, it appears that the asynchronous snippet is turned on.
One thing I am wondering is if Xenporta being installed as the home page of my site is having something to do with it, but like I said previously, it seems like Analytics itself is working fine.
Thanks.
I have my Google Analytics ID added to the Xenforo setup options, and that seems to work, as my Analytics page is reporting traffic to my site. However, when I try to verify that I am the owner of my site by telling the Webmaster Tools to verify my site by using the asynchronous snippet from Analytics, it keeps telling me that verification has failed.
The google analytics template for my page reads as follows:
<xen:if is="{$xenOptions.googleAnalyticsWebPropertyId}"><script>
var _gaq = [['_setAccount', '{$xenOptions.googleAnalyticsWebPropertyId}'], ['_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') + '.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
}
(document, 'script');
</script><xen:comment><!--Adapted from http://mathiasbynens.be/notes/async-analytics-snippet--></xen:comment></xen:if>
Can anyone tell me what the problem is? I have seen from another thread that this code does not match the code provided by Google for Analytics setup, but it seems to be working on my Analytics page, and as you can see above, it appears that the asynchronous snippet is turned on.
One thing I am wondering is if Xenporta being installed as the home page of my site is having something to do with it, but like I said previously, it seems like Analytics itself is working fine.
Thanks.