Embeding Google Analytics tracking ID and script in my WordPress.com blog
-
I want to add it to my WordPress.com blog to my Google Analytics account but cannot figure out where to imbed the tracking ID and the script.
The blog I need help with is: (visible only to logged in users)
-
<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-42058349-1', 'wordpress.com'); ga('send', 'pageview'); </script> -
Thanks for your response! I tried Site Meter but had the same problem as with WordPress: I can’t find access to my template’s code. So my issue is more basic than your response assumes. Can you help at that level?
-
Site Meter works – I use it on my site – you need the plain html version of code – put the code in a Text Widget
-
-
- The topic ‘Embeding Google Analytics tracking ID and script in my WordPress.com blog’ is closed to new replies.