the <script>
tag is not allowed on WordPress.com
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 WordPress.com 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 WordPress.org), 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 WordPress.com.
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 wordpress.com runs Google
analytics (urchin) on all of our
blogs.
source: http://en.forums.wordpress.com/topic/google-analytics-on-wordpress-how_
Related Posts:
- Track advertisement earnings per blog post and page in wordpress?
- Does wordpress insert automatic google analytic?
- Can I integrate Google Analytics with my blog, hosted at wordpress.com?
- Installing google analytics code on wordpress blog
- Tracking Published Date as Custom Variable for Google Analytics
- Tracking post type in Google Analytics
- Multiple Google Analytics codes for individual pages
- How to find and remove the tracking codes running in my wordpress site?
- What does /?s=free&cat=plus-5-results mean in Google Analytics?
- Add Google Tracker Tag to Login Page
- Google Analytics always shows at least two page views per visit – What can cause this?
- Multiple Google Analytics for Multiple pagepath
- Cannot locate wp_footer() included scripts [closed]
- Allow authors to use their own Google Analytics code
- Download statistics for WordPress site?
- Google Analytics tracking article based on post date
- Google Analytics Event Tracking not traking
- How to know email address of visitors to my wordpress website [closed]
- Save regarding to GDPR?
- Add google analytics tag manually after wordpress update
- Remove old Google Analytics code on a WordPress install
- Google Analytics appending index.cfm to end of my URLs
- Sharebutton.to showing up as one of my pages
- Google Analytics – Language (not set) & Sharebutton.to
- No matching client found for package name (Google Analytics) – multiple productFlavors & buildTypes
- Uncaught ReferenceError: ga is not defined
- WordPress Login Tracking Google Analytics
- Disable plugin / plugin action via theme
- Add Google Analytics manually, or use a plug-in?
- Math notation on WordPress.com?
- How can I enable Google Analytics on a file download link?
- Formatting Code Snippets on Free WordPress.com Account?
- How to pass on Google Adwords gclid variable to other pages
- How to detect if a Shortcode is being called on a page?
- Moving WordPress.com theme and widget settings to self-hosted site?
- Analytics plugins that allow for inclusion of _trackPageLoadTime()?
- Using WordPress publicize with main account and editor user accounts
- Can I install Analytics before deciding on a theme?
- How can I install a plugin on a WordPress.com hosted blog?
- Who owns the content posted on .wordpress.com blogs? [closed]
- Redirecting traffic from old “.WordPress.com” blog to privately hosted WordPress blog?
- Need a WordPress Plugin for Google Analytics, Favicon, Meta Keywords & Description?
- Is it possible to use wordpress.com with a custom domain without switching nameservers?
- Can I use AdSense on a free wordpress blog? [closed]
- Google Analytics post views in WordPress? [closed]
- Reblog wordpress.com posts on self hosted
- Import and export links from WordPress.com to private site
- How to totally get rid of Category in my blog?
- Simultaneously post in both WordPress.com and self hosted WordPress blog
- Migrating from WordPress.com to self-hosted site and autoforward visitors?
- Creating external apps WordPress / How they work
- How to search and replace text in all posts of a wordpress.com blog (NOT wordpress.org one)?
- What type of Google tracking should I use?
- Ads Restricted on WordPress.com?
- Tracking RSS subscribers in Google Analytics
- Do I need to use a new WordPress.com account for each Jetpack installation
- Implications of changing wordpress.com associated with Jetpack [closed]
- Download all WordPress.com available themes, somewhere?
- Getting Rid of the WordPress.com Toolbar on Other Sites?
- What plugins are in use on wordpress.com [closed]
- API for Post Stats for Self-Hosted WordPress using JetPack [closed]
- wp_nav_menu google analytics event tracking
- Suspicious google tag manager
- Redirect all blog links from WordPress.com site to new domain
- Tracking Disqus comments on Google Analytics
- How to import only certain comments from post[s]
- adding google event tracking to links in posts
- WordPress.com vs WordPress.org
- How can I transfer followers from WordPress.com to a self-hosted WordPress?
- Feature Differences between WordPress.com and Hosting on your Own Server?
- Post-by-mail similar to WordPress.com or Posterous?
- Can a plugin deactivate itself?
- Prevent images on self-hosted WordPress from being served from WordPress.com
- How do I disable trackback notifications on a WordPress.com blog?
- Are there any plugins yet that support Facebook Like, Google +1 and allow Social Interaction tracking on Google Analytics
- Widget code is not working on WordPress.com Hosted Blogs
- wp_add_inline_script not adding when script_loader_tag filtered
- How to make child theme inherit parent custom theme options [closed]
- Add a hook to wp_mail() to track Google Analytics Event
- Is there any way I can put google ads on wordpress.com? [closed]
- Changing $latex $ equation background color globally
- Free Google Analytics plugin that works with WordPress in network mode (WPMU)? [closed]
- google conversion code
- Blog in multiple languages on WordPress.com?
- Adding parent pages to posts
- Detect When User Reads Full Article? [closed]
- How Can I Add OnClick Event To A Specific WordPress Menu Link
- add most viewed post by google analytic in loop [closed]
- Can I move to wordpress.org and continue to be included as a wordpress.com favorite blog?
- how to use the slide show of Skylark in showcase?
- If I backup my wordpress blog, how can I back-up all the external images I’ve embedded?
- Plugin: Google Analytics for Dashboard error – Timestamp is too far from current time
- How to change the language of a wordpress.com blog?
- “Connect” my personal website to wordpress.com
- Google Tag Manger – no-script Code Not Found
- Unknown Posts added to my wordpress website from nowhere [closed]
- Sending click events to Google Analytics in WordPress: the easy way
- Moving media between blogs changes the URL subdirectory [closed]
- Specifying a single file from multi-file GIST (wordpress.com) [closed]
- Authorizing a plugin to call Google Analytics v4 API on wp_cron