Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to add google analytics to my free blog. I have the html tracking code but I can't figure out how to add it to my blog from the dashboard.

share|improve this question

migrated from Jun 25 '11 at 16:23

This question came from our site for power users of web applications.

2 Answers 2

I just found out that it is not supported:

However, I would still like to know how to add some html script to my hosted site.

share|improve this answer

the <script> tag is not allowed on

Since the Google Analytics script uses that tag, it's not possible to add it. This has been asked and dealt countless of times on the forums of but they do not wish to compromise the security of their site by allowing scripts (Javascript/VBScript).

If you find a place to host your site and decide to use the Wordpress app (found at, then you'll be able to modify it and add scripts as much as you want! That's what I ended up doing with my blog that I had originally created on

Just as an extra, I found this interesting exerpt on their forums:

Google's rule is that only one Google analytics script (Urchin) can be run on any blog; they do not allow two. And runs Google analytics (urchin) on all of our blogs.


share|improve this answer
Thanks Faust, do you know how to add non-js tracking tools to blogs? The wordpress site tracking doesn't identify users with their inferred ip/geo-location. I just want to be able to do this. I heard there are some non-js tracking tools, which should work for blogs, but I do not know where I can edit the HTML in to add any code. – highBandWidth Jan 19 '11 at 17:19
see… – Faust Jan 19 '11 at 23:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.