google analytics – how do i insert script in each page?
-
i’d like to track my wordpress site with google analytics. this requires me to insert a script at each page. can you tell me how to do this? can’t seem to find a place that doesn’t change/modify the code.
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-47795393-1’, ‘wordpress.com’);
ga(‘send’, ‘pageview’);</script>
-
Hello,
Sorry but that is not possible.Additional Info
Can I use Google Analytics?
No, Google Analytics cannot be used on WordPress.com blogs at this time. http://en.support.wordpress.com/stats/#additional-infoThere is no FTP access and no blogger installed plugin capability on any free hosted WordPress.com blogs.
http://en.support.wordpress.com/ftp-access/
http://en.support.wordpress.com/plugins/See here for a full comparison WordPress.com vs. WordPress.org
http://support.wordpress.com/com-vs-org/There is no upgrade you can purchase here that provides FTP access and the ability to install plugins and or any third party themes.
If you want FTP access and to install plugins or third party themes into a site then you will have to hire a web host http://wordpress.org/hosting/ and set up your own WordPress.org install.
- The topic ‘google analytics – how do i insert script in each page?’ is closed to new replies.