﻿=== Google Analytics for WordPress by MonsterInsights ===
Contributors: chriscct7, smub
Donate link: http://www.wpbeginner.com/wpbeginner-needs-your-help/
Tags: analytics, analytics dashboard, google analytics, google analytics dashboard, google analytics widget, universal google analytics, statistics, tracking, stats, google, yoast, google analytics by yoast, ga, monster insights, monsterinsights, universal analytics, web stats, ecommerce, ecommerce tracking
Requires at least: 3.9
Tested up to: 4.7.2
Stable tag: 6.0.4
License: GPL v3

The best Google Analytics plugin for WordPress. See how visitors find and use your website, so you can keep them coming back.

== Description ==

= Google Analytics Plugin for WordPress =

We believe that you shouldn't have to hire a developer to add Google Analytics to your website. That's why we built <a href="https://www.monsterinsights.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend" title="MonsterInsights">MonsterInsights</a>, a complete Google Analytics for WordPress plugin that's EASY and POWERFUL.

MonsterInsights allow you to connect your WordPress website with Google Analytics, so you can see how visitors find and use your website, so you can keep them coming back. Simply put, we show you the stats that matter.

With almost 13 million downloads, MonsterInsights is the most popular Google Analytics plugin for WordPress.

At MonsterInsights, user experience is our #1 priority. That's why we make it extremely easy for you to connect and view your Google Analytics reports from inside your WordPress dashboard. Our tracking settings and workflows make MonsterInsights the most beginner friendly google analytics plugin in the market.

> <strong>MonsterInsights Pro</strong><br />
> This plugin is the lite version of the MonsterInsights Pro plugin that comes with all the analytics features you will ever need including ads tracking, ecommerce tracking, custom dimensions tracking, popular post tracing, events tracking, and tons more. <a href="https://www.monsterinsights.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion" rel="friend" title="MonsterInsights">Click here to purchase the best Google Analytics plugin for WordPress now!</a>

We took the pain out of connecting with Google Analytics and made it easy. Here's why over 1 million smart business owners, designers, and developers love MonsterInsights, and you will too!

https://www.youtube.com/watch?v=nHZBUDceRt0

= Quick & Easy Google Analytics Setup =

Easily setup Google Analytics on your site without touching any code. If you can point-and-click, then you can use MonsterInsights.

Google Analytics for WordPress plugin by MonsterInsights allows you to track your blog visitors easily and always stays up to date with the newest features in Google Analytics.


>It just works. Really easy way to insert Google Analytics tracking code and keep it there when switching themes. No need to copy/paste code anywhere. This is the best way to handle Google Analytics in WordPress.<br>
> Steven Gliebe


= Google Analytics Dashboard + Real Time Stats =

MonsterInsights makes analytics easy. You can see your site’s performance at a glance with our Google Analytics Dashboard right inside your WordPress admin area.

With Google Analytics, there's no need to wait till the next day to find out about traffic spikes or potential problems. You can get real time stats, so you can unlock the maximum potential revenue for each customer.

>Works everytime! This plugin has worked with every version of WordPress I’ve ever used. Very reliable.<br>
>Vineeta

= Universal Tracking + Page Level Analytics = 

MonsterInsights uses universal tracking, so you can track your users across devices and platforms. With demographics and interest reports, you also get a better understanding of your audience.

The page level analytics show you exactly which pages and sections on your website are the most popular. 

You can also see how the users are finding your website, so you can better focus your marketing efforts.

>Analytics for PROs! This plugin brings it all, great features and helpful info to easily see what you are doing.<br>
> Frank van der Sluijs

= eCommerce and Ads Tracking = 

MonsterInsights Ecommerce addon helps you add Google Analytics Ecommerce tracking to your WordPress WooCommerce and Easy Digital Downloads store.

You can add eCommerce tracking with literally 1 click, and start tracking popular products, average order value, ecommerce conversion rate, and more.

With our Ads tracking addon, publishers can easily track the performance of their Google Adsense inside their Google Analytics dashboard.

= Custom Dimensions, Events Tracking, and More =

MonsterInsights allow you to take full advantage of all the powerful Google Analytics features such as custom dimensions, file download tracking, outbound link tracking, events tracking, performance tracking, and more.

>I like how simple it is for client users and how I can turn on the advanced features for myself to get all the details right.<br>
> Skip Shean

= Full MonsterInsights Feature List =

* Quick and Easy Setup - Easily setup Google Analytics for WordPress with just a few clicks (no coding needed)
* Real Time Stats - See real time stats inside your Google Analytics dashboard.
* Universal Tracking - Get better insights with Google Analytics' universal tracking.
* Google Analytics Dashboard - See the stats that matter from right inside your WordPress dashboard.
* Ecommerce Tracking - Add Google Analytics tracking for WooCommerce and Easy Digital Downloads store.
* Ads Tracking - Track your Google Adsense ads with Google Analytics.
* File Download Tracking - Enable file download stats with just a click.
* Link Tracking - Track your outbound link clicks with Google Analytics.
* Events Tracking - Track custom button and banner clicks with Google Analytics.
* Custom Dimensions Tracking - Enable Google analytics custom dimensions tracking for WordPress.
* Author Tracking - See who's the most popular author with Author tracking.
* Popular Post Tracking - See which blog post and section is the most popular.
* Custom Post Type Tracking - Track the performance of your custom post types.
* Referral Tracking - See how visitors are finding your website to better focus your marketing efforts.
* Performance Tracking - Control the performance rate and sample rate for your Google Analytics report.
* Enhanced Link Attribution - Get better analytics with enhanced link attribution.
* Google Analytics Tools - Helpful tools for Google analytics.
* Want us to add something else? Suggest a feature and we'll get it added!

>Simple, yet powerful. Amazing piece of plugin, does exactly what expected and even more.<br>
> Matt Jaworski

= Popular Google Analytics Tutorials = 

* <a href="https://www.monsterinsights.com/how-to-properly-setup-google-analytics-in-wordpress/" rel="friend" title="How to setup Google Analytics with WordPress">How to setup Google Analytics with WordPress</a>
* <a href="https://www.monsterinsights.com/how-to-login-to-google-analytics/" rel="friend" title="How to login to Google Analytics">How to Login to Google Analytics</a>
* <a href="http://www.wpbeginner.com/start-a-wordpress-blog/" rel="friend" title="How to start a blog">How to Start a WordPress Blog (step by step)</a>

= Note for Beginners =

Like all WordPress plugins, Google Analytics by MonsterInsights is only available for self-hosted WordPress sites. This means you will need to <a href="http://www.wpbeginner.com/wp-tutorials/how-to-properly-move-your-blog-from-wordpress-com-to-wordpress-org/" rel="friend" title="How to properly move from WordPress.com to WordPress.org">switch from WordPress.com to WordPress.org</a> if you want to use this plugin on your WordPress site.

For more details, see this infographic on <a href="http://www.wpbeginner.com/beginners-guide/self-hosted-wordpress-org-vs-free-wordpress-com-infograph/" rel="friend" title="Self Hosted WordPress.org vs Free WordPress.com">self hosted WordPress.org vs free WordPress.com</a>

= Credits =

This plugin is created by <a href="https://twitter.com/chriscct7" rel="friend" title="Chris Christoff">Chris Christoff</a> and <a href="https://syedbalkhi.com/" rel="friend" title="Syed Balkhi">Syed Balkhi</a> with sponsorship from <a href="http://www.wpbeginner.com/" rel="friend" title="WPBeginner">WPBeginner</a>.

= What's Next =

If you like this plugin, then consider checking out our other projects:

* <a href="http://optinmonster.com/" rel="friend" title="OptinMonster">OptinMonster</a> - Get More Email Subscribers
* <a href="http://soliloquywp.com/" rel="friend" title="Soliloquy">Soliloquy</a> - Best WordPress Slider Plugin
* <a href="http://enviragallery.com/" rel="friend" title="Envira Gallery">Envira Gallery</a> - Best WordPress Gallery Plugin
* <a href="https://wpforms.com/" rel="friend" title="WPForms">WPForms</a> - Best WordPress Contact Form Plugin

This plugin would not be possible without the help and support of <a href="http://www.wpbeginner.com/" rel="friend" title="WPBeginner">WPBeginner</a>, the largest WordPress resource site. You can learn from our <a href="http://www.wpbeginner.com/category/wp-tutorials/" rel="friend" title="WordPress Tutorials">free WordPress Tutorials</a> like <a href="http://www.wpbeginner.com/how-to-install-wordpress/" rel="friend" title="How to Install WordPress - Step by Step">how to install WordPress</a>, <a href="http://www.wpbeginner.com/wordpress-hosting/" rel="friend" title="How to choose the best WordPress hosting">choose the best WordPress hosting</a>, <a href="http://www.wpbeginner.com/glossary/" rel="friend" title="WordPress Glossary Terms for Beginners">WordPress glossary</a>, and more.

You can also learn about other <a href="http://www.wpbeginner.com/category/plugins/" rel="friend" title="Best WordPress Plugins">best WordPress plugins</a>.


== Installation ==

1. Install Google Analytics for WordPress by MonsterInsights either via the WordPress.org plugin repository or by uploading the files to your server. (See instructions on <a href="http://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" rel="friend">how to install a WordPress plugin</a>)
2. Activate Google Analytics for WordPress by MonsterInsights.
3. Navigate to the Insights tab in your WordPress admin menu and configure the plugin.
4. Want more features? <a href="https://www.monsterinsights.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion">Purchase MonsterInsights Pro</a>!

== Changelog ==

= 6.0.4, February 20, 2017 =
* Tweak: monsterinsights_delete_options now checks to ensure an array is passed in
* Tweak: The reporting class now has many more object property checks.
* Fixed: In install if WP version not supported or if MI Pro was active, the plugin attempted to call a property of the plugin object which didn't exist.
* Fixed: In the deactivate/uninstall routines, MI attempted to use a method of a class object which might not exist, as it might not be the active instance. Better instance handling has been added as well as many more exists checks have been added througought the plugin.
* Fixed: Conflicting loads when both MI Pro and Lite are installed. Note, you should only have Pro installed if you want to use it. That being said, we've done extensive testing to ensure we've handled all of the edge cases surrounding this. This could also lead to issues where it would be impossible to remove Lite and/or Pro from a site if both were installed.
* Fixed: Conflicts with the Pinnacle theme, which loads it's CSS file (with overrides to literally all select2 inputs not just the ones it adds) across the entire admin. This lead to an issue where in the Google Auth, a user might not have been able to see (or could appear with wacky styling) the dropdown of profiles to select. If you cannot see this dropdown after authenticating, let us know as its most likely a simple plugin or theme conflict on CSS styling.
* Fixed: The notices to deactivate/uninstall MI Lite/Pro when the other one were installed had an errant extra quotation mark, and they're now more specific about the action to take.
* Fixed: For some users, the setting for user role exclusion was not working. This has been corrected.
* Fixed: A redirect issue that was looping for some users. The code that does this, while working for most, doesn't for some. We've removed it until a full investigation can be completed.

= 6.0.3, February 20, 2017 =
* Fixed: Path for fontawesome font files was incorrect
* Fixed: Notice in the install routine for the $version variable not being set.

= 6.0.2, February 19, 2017 =
* Fixed: Upgrade routine could drop manual UA codes in certain cases. If you upgraded to 6.0.0 or 6.0.1 and it lost the manual UA code, installing this update will automatically restore the UA code entered as long as you haven't used the oAuth or re-entered the manual UA code.

= 6.0.1, February 19, 2017 =
* Fixed: Typo that caused an issue with PHP 7 installs.

= 6.0.0, February 18, 2017 =
* New: Completely overhauled design, from top to bottom. The plugin has been completely rewritten.
* New: **no more advertisements** in the settings pages. We hated them too.
* New: Javascript based event tracking
* New: ga.js is now officially deprecated. New users cannot use it anymore, and existing users can only switch to analytics.js (but not back). Please note, all new features will be developed exclusively for analytics.js. Google has deprecated it, and now we're deprecating our support for it.
* New: License key system now uses the MonsterInsights License management system
* New: Ability to pick which roles can access the dashboard/reports & settings/addons/tools page using our UI. There's also a new custom capability for this (a meta capability)
* New: Support for Google Analytics Master accounts. When you oAuth into MonsterInsights now, the UA view is now locked to what you picked using the brand new oAuth procedure.
* New: Revamped dashboard
* New: Completely new settings system, with a completely new settings page, and a completely new settings API. Also some new hooks and tabs in preparation for the many addons we'll be releasing over the next few months.
* New: No more conflicts between the base plugins
* New: Completely overhauled translation experience. The lite version translations are now fully managed through translations.wordpress.org.
* New: Opt-in to anonymous data so we can better improve MonsterInsights
* New: Significantly better addons page
* New: Single license key to manage all MonsterInsights extensions.
* New: Automatic detection of blocked asset files (from things like un-whitelisted uBlock Origin) with step by step directions on how to easily correct.
* Tweak: Completely overhauled the ga.js and analytics.js outputs to fix outstanding bugs.
* Tweak: Better debugging + disabled + preview tracking modes, that more clearly indicate what's going on 
* Tweak: Completely overhauled PHP regex tracking to solve nearly a dozen outstanding bugs including issues where non-link elements starting with the letter "a" such as <area> tags would get parsed as links causing issues. Also solves issues related to single versus double quote usage for existing onclick handles, non-semicolon terminating onclick handles and various other parsing issues.
* Tweak: Many previously untranslatable strings are now translatable.
* Tweak: Minified in-plugin images.
* Tweak: Minified admin css and js
* Tweak: Uses latest version of Google PHP API now.
* Tweak: The system for creating reports and getting Google Analytics reports have changed. If you've hardcoded into Yoast functions previously not designed for frontend output this could cause problems. We'll introduce an API intended for this type of use after we update to use the v4 reporting API.
* Fix: Fixed an issue with HostEurope and other hosts modifying the default PHP arg seperator.
* Fix: Prevents an issue where users with a plugin like Airplane Mode active will get a better error message than "code invalid" on the GA token auth screen (and also fixes how that detection is done in other parts of the plugin). 
* Removed: unused track_full_url setting

= 5.5.3, October 3rd, 2016 =
* New: Announces MI 6.0 beta.
* Fix: Compatibility with PHP compatibility scanner's bug

= 5.5.2, July 7, 2016 =
* Tweak: Updates license manager to have more reliable update information including better compatibility with Yoast SEO products.
* Fix: Compatibility with upcoming Shiny Updates v2 in WP core

= 5.5.0, May 1, 2016 =
* New: Added new System Info tab for faster support.
* Fix: Issue with changelog missing some deployed versions.

= 5.4.9, April 15, 2016 =
* New: Font based dashboard icon
* Tweak: The "MonsterInsights" menu item name has been renamed to just "Insights"
* Fix: Issue with eCommerce addon (also requires user to update eCommerce addon)
* Fix: Issue with 2 dashboard links
* Fix: A bug in pre-existing code caused the menu of the plugin to skyrocket unintentionally. This has been corrected.

= 5.4.8, April 14, 2016 =
* New: Google Analytics by Yoast is now MonsterInsights.
* Fix: Compatibility issue with WordPress 4.5

== Upgrade Notice ==

= 6.0.0 = 

This is a major release. Please back up your site before upgrading.

== Frequently Asked Questions ==

For all frequently asked questions, and their answers, check the [MonsterInsights Knowledge base](https://www.monsterinsights.com/docs/).

== Screenshots ==

1. Reporting area
2. Google Authentication wizard
3. Settings page
4. Custom Dimensions (a Pro feature)
5. eCommerce Tracking (a Pro feature)