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
- Sharebutton.to showing up as one of my pages
- WordPress Login Tracking Google Analytics
- How to detect if a Shortcode is being called on a page?
- 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?
- Who owns the content posted on .wordpress.com blogs? [closed]
- Need a WordPress Plugin for Google Analytics, Favicon, Meta Keywords & Description?
- Can I use AdSense on a free wordpress blog? [closed]
- Google Analytics post views in WordPress? [closed]
- Import and export links from WordPress.com to private site
- How to totally get rid of Category in my blog?
- Creating external apps WordPress / How they work
- Tracking RSS subscribers in Google Analytics
- Do I need to use a new WordPress.com account for each Jetpack installation
- API for Post Stats for Self-Hosted WordPress using JetPack [closed]
- wp_nav_menu google analytics event tracking
- 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
- Widget code is not working on WordPress.com Hosted Blogs
- 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
- add most viewed post by google analytic in loop [closed]
- 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
- Google Tag Manger – no-script Code Not Found
- Sending click events to Google Analytics in WordPress: the easy way
- Moving media between blogs changes the URL subdirectory [closed]
- Differences between developing custom themes for wordpress.com and wordpress.org?
- Google Analytics tracking code on just one page?
- How to get an event to fire using Google Tag Manager for the wordpress audio player?
- Animated GIF on WordPress posts? [closed]
- Why does a published post only displays the title and not the content in the site? [closed]
- How do I add GoogleAnalytics header snippet in WordPress?
- Is a *.wordpress.com blog easy to migrate?
- Self-hosted blog Admin Panel Forwarding to WP.com
- How much effort to migrate from .com to .org
- Removing the WordPress.com ribbon
- How can I add a UTM tag with PHP code to pick up the post slug dynamically in the UTM?
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- Rest API in self-hosted page doesn’t work [closed]
- How to add onclick event to widget image
- Is it possible to add a custom page to a free WordPress site? [closed]
- WordPress VIP realpath Alternative?
- Theme seems to have different options on wordpress.com and own-server install
- syntax Highlighting on wordpress.com blog
- Problem with customize page cached in WordPress.com [closed]
- Show posts from a single category by default using wordpress.com
- How do I fix wp-admin error when exporting reusable blocks?
- Woocommerce + Google Analytics (Conversion Rate Not Working)
- How to set Google Analytics tracking code on WordPress plugin directory page?
- Google Tag Manager only load when connected to Admin
- Google Analytics gtag code messes up woocommerce cart & login
- Having a different landing page for returning users
- Migrate comments and likes wordpress.com to selfhosted site
- Google analytic issue in wordpress
- Popular posts – based on pageviews
- Source code get entity escaped after migrating
- Tracking multiple tags or categories
- Plugin redirects URL structure using 301 redirect. Time to disable the plugin?
- Hiding Google Analytics code based on theme options
- Reply form used in wordpress.com
- WordPress.com blog migration to self hosted WordPress website [closed]
- Where is the htaccess in wordpress.com hosting?
- Google analytics not working on WordPress
- In what file I should include my code if I want content to come up on top of everything?
- Create service similar to wordpress.com [closed]
- Plugins menu not on dashboard
- How to migrate new web design to an existing website?
- Subdirectory Folder access with with Specific URL (post /subPage or sub.domain.com/)
- How do I allow ipv6 traffic for my WordPress website?
- wordpress site name by url query string
- WordPress site server getting blocked due to resource abuse
- Append slug of each blog post with a hash based on a custom field
- Can you tell me how can i replace posts from blog in below screenshort
- How to move WordPress Studio from SQLite to MySQL?