How to add google analytics code to my website?
-
Hello,
I have problem with manually adding google analytic code to my website. I successfully generate HTML code as per below, but I do not have option edit under Header so can not paste it. Can somebody help me?
<script>
(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);ga(‘create’, ‘UA-46801476-1’, ‘wordpress.com’);
ga(‘send’, ‘pageview’);</script>
The blog I need help with is: (visible only to logged in users)
-
Hi there,
WordPress.com does not currently support Google Analytics tracking. However, we do offer built-in statistics showing you most of the same types of information as Google Analytics would display.
You can view your site’s stats by clicking the stats link in the grey admin bar at the top of your site. To find out more about how stats are measured and reported, see the following help page: Stats
You can also install Google Webmaster Tools, which contains some of the same functions as Google Analytics: Webmaster Tools
Please let me know if I can provide any further help with this. :)
-
Judging from some of your headers
You might also review the TOS before you get too far along:
http://en.wordpress.com/tos/
http://wordpress.com/types-of-blogs/
http://en.support.wordpress.com/advertising/
http://en.support.wordpress.com/suspended-blogs/
http://en.support.wordpress.com/affiliate-links/
- The topic ‘How to add google analytics code to my website?’ is closed to new replies.