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?
- 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
- Uncaught ReferenceError: ga is not defined
- WordPress Login Tracking Google Analytics
- Math notation on WordPress.com?
- Formatting Code Snippets on Free WordPress.com Account?
- 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
- How can I install a plugin on a WordPress.com hosted blog?
- Redirecting traffic from old “.WordPress.com” blog to privately hosted WordPress blog?
- Can I use AdSense on a free wordpress blog? [closed]
- Google Analytics post views in WordPress? [closed]
- How to totally get rid of Category in my blog?
- How to search and replace text in all posts of a wordpress.com blog (NOT wordpress.org one)?
- Ads Restricted on WordPress.com?
- Tracking RSS subscribers in Google Analytics
- 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
- 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?
- 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
- wp_add_inline_script not adding when script_loader_tag filtered
- How to make child theme inherit parent custom theme options [closed]
- Free Google Analytics plugin that works with WordPress in network mode (WPMU)? [closed]
- If I backup my wordpress blog, how can I back-up all the external images I’ve embedded?
- “Connect” my personal website to wordpress.com
- Google Tag Manger – no-script Code Not Found
- Moving media between blogs changes the URL subdirectory [closed]
- Specifying a single file from multi-file GIST (wordpress.com) [closed]
- Google Analytics tracking code on just one page?
- wordpress.com website url structure [closed]
- Images showing in editor but not in post [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?
- Self-hosted blog Admin Panel Forwarding to WP.com
- 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?
- How to track analytics with a WordPress site under the same domain as my main site?
- WordPress gtag.js with User ID tracking
- 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
- Will “Google XML Sitemaps” plugin work without “wp_head();”
- Your own Bookmarklet in a blog
- Difference between WordPress and Tumblr?
- 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
- When add analytics script, wordpress user login not working
- Different Google Analytics code based on Users Device
- Having a different landing page for returning users
- Tracking sales/conversions in Woocommerce using Google Analytics
- Migrate comments and likes wordpress.com to selfhosted site
- adding google analytics via echo or between tags
- Google analytic issue in wordpress
- Popular posts – based on pageviews
- Source code get entity escaped after migrating
- Tracking multiple tags or categories
- 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?
- 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]
- How to display different styles on index posts in wordpress pages? [closed]
- How to make that all permalinks would open in a new window?
- Plugins menu not on dashboard
- wordpress site name by url query string
- Prevent primary navigational menu from expanding during page load (WordPress / Astra Theme)