Connects Google Analytics to WordPress
Supports Universal Analytics / analytics.js
Supports Global Site Tag / gtag.js
This plugin enables Google Analytics for your entire WordPress site. Lightweight and fast with plenty of great features.
- Blazing fast performance
- Does one thing and does it well
- Drop-dead simple and easy to use
- Regularly updated and “future proof”
- Stays current with the latest tracking code
- Includes tracking code in header or footer
- Includes tracking code on all WordPress web pages
- Includes option to add your own custom markup
- Sleek plugin Settings page with toggling panels
- Option to disable tracking of admin-level users
- Option to enable page tracking in the Admin Area
- Works with or without Gutenberg Block Editor
- Easy to customize the tracking code
- More features available in the Pro version
This is a lightweight plugin that inserts the required GA tracking code. To view your site statistics, visit your Google Analytics account.
GA Tracking Options
GA Feature Support
- Supports Display Advertising
- Supports Enhanced Link Attribution
- Supports IP Anonymization
- Supports Force SSL
- Supports Tracker Objects
- Supports Google Optimize
- Supports User Opt-Out
Also supports tracking links and conversions via the Custom Code setting. Learn more about Google Analytics!
GA Google Analytics Pro includes the same features as the free version, PLUS the following:
- Visitor Opt-Out Box (frontend UI)
- Configure multiple tracking codes
- Live Preview of all tracking codes
- Choose location of multiple tracking codes
- Supports Custom Code in header or footer
- Disable tracking of all logged-in users
- Disable Tracking for any Post IDs, User Roles, Post Types
- Disable Tracking for Search Results and Post Archives
- Display Opt-Out Box automatically or via shortcode
- Complete Inline Help/Documentation
- Priority plugin help and support
Learn more and get GA Pro »
User Data: This plugin does not collect any user data. Even so, the tracking code added by this plugin is used by Google to collect all sorts of user data. You can learn more about Google Privacy here.
Cookies: This plugin uses simple cookies for the visitor Opt-Out Box to remember user preference for opt-in or out of Google Analytics.
Services: This plugin does not connect to any third-party locations or services, but it does enable Google to collect all sorts of data.
Support development of this plugin
I develop and maintain this free plugin with love for the WordPress community. To show support, you can make a donation or purchase one of my books:
And/or purchase one of my premium WordPress plugins:
- BBQ Pro – Super fast WordPress firewall
- Blackhole Pro – Automatically block bad bots
- Banhammer Pro – Monitor traffic and ban the bad guys
- GA Google Analytics Pro – Connect your WordPress to Google Analytics
- USP Pro – Unlimited front-end forms
Links, tweets and likes also appreciated. Thanks! 🙂
- Upload the plugin to your blog and activate
- Visit the settings to configure your options
After configuring your settings, you can verify that GA tracking code is included by viewing the source code of your web pages.
Note: this plugin adds the required GA code to your web pages. In order for the code to do anything, it must correspond to an active, properly configured Google Analytics account. Learn more at the Google Analytics Help Center.
To enable Google Analytics tracking on your site, follow these steps:
- Visit the “Plugin Settings” panel
- Enter your GA Tracking ID
- Choose either Universal Analytics or Global Site Tag
- Configure any other plugin settings as desired (optional)
Save changes and done. After 24-48 hours, you can log into your Google Analytics account to view your stats.
Note that it can take 24-48 hours after adding the tracking code before any analytical data appears in your Google Analytics account. To check that the GA tacking code is included, look at the source code of your web page(s). Learn more at the Google Analytics Help Center.
Google Analytics tracking methods change over time. First there was
ga.js, and now
analytics.js, soon to be replaced officially by
gtag.js. If you are using an older version and want to upgrade, check out these Google docs:
To upgrade GA Google Analytics, remove the old version and replace with the new version. Or just click “Update” from the Plugins screen and let WordPress do it for you automatically.
Note: uninstalling the plugin from the WP Plugins screen results in the removal of all settings from the WP database.
For more information, visit the GA Plugin Homepage.
Restore Default Options
To restore default plugin options, either uninstall/reinstall the plugin, or visit the plugin settings > Restore Default Options.
GA Google Analytics cleans up after itself. All plugin settings will be removed from your database when the plugin is uninstalled via the Plugins screen. Your collected GA data will remain in your Google account.
Want more control over your GA Tracking codes? With awesome features like Opt-Out Box and Code Previews? Check out GA Pro »
Like the plugin?
If you like GA Google Analytics, please take a moment to give a 5-star rating. It helps to keep development and support going strong. Thank you!