silendreamer
Active member
I input my google analytics code in the text box in Statistics and Metrics.
When I login to google.com/analytics and try to verify my website, it gives me error
It is asking me to put in the following code
When I check my page source the following code is present
The code that google analytics is asking me to put is not the same as the one that Xenforo is putting in my webpages.
Is this a bug? Any suggestions on what I should do? I am going to modify my footer template and add the code in there.
When I login to google.com/analytics and try to verify my website, it gives me error
Code:
Tracking Not Installed (Last checked: Oct 24, 2010 7:05:09 AM )
The Google Analytics tracking code has not been detected on your website's home page. For Analytics to function, you or your web administrator must add the code to each page of your website.
It is asking me to put in the following code
Code:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-4196716-16']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
When I check my page source the following code is present
Code:
<script type="text/javascript">
<!--
var _gaq = [['_setAccount', 'UA-4196716-16'], ['_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>
The code that google analytics is asking me to put is not the same as the one that Xenforo is putting in my webpages.
Is this a bug? Any suggestions on what I should do? I am going to modify my footer template and add the code in there.