When you view a web page for which you have Google Analytics access, you’ll see: Google Analytics metrics: Pageviews, Unique Pageviews, Avg time on page, Bounce Rate, and%Exit Number of active visitors, in real time In-page click analysis: (where users click) You can use the Google Analytics date comparison and segmentation tools directly in. Set up Google Tag Manager. Google Tag Manager is a free tag management system from. Nick Mihailovski, Google Analytics API Team – August 2012. This tutorial describes how to access the Management and Core Reporting APIs inside Google Sheets using Apps Script. You can use the Google Analytics API and Google Apps Script to access your Google Analytics data from Google Sheets. This is powerful because it allows. If you want to opt-out, download and install the add-on for your web browser. The Google Analytics opt-out add-on is designed to be compatible with Chrome, Internet Explorer 11, Safari, Firefox and Opera. In order to function, the opt-out add-on must be able to load and execute properly on your browser. Share Google Analytics Reports in Other File Formats. We’ve already shown you how MonsterInsights helps you download your Analytics reports as PDF. But what if you need it in another format to perform more analysis? In Google Analytics, you can export a report as Google Sheets, Excel file, or CSV format.
Connects Google Analytics to WordPress
Supports Universal Analytics / analytics.js
Supports Global Site Tag / gtag.js
Supports Google Analytics 4
This plugin enables Google Analytics for your entire WordPress site. Lightweight and fast with plenty of great features.
To enable Google Analytics 4:
Save changes and done. Wait 24-48 hours before viewing collected data in your GA account.
Also supports tracking links and conversions via the Custom Code setting. Learn more about Google Analytics!
This is a lightweight plugin that inserts the required GA tracking code. To view your site statistics, visit your Google Analytics account.
GA Google Analytics Pro includes the same features as the free version, PLUS the following:
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.
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:
Links, tweets and likes also appreciated. Thanks! 🙂
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:
Save changes and done. After 24-48 hours, you can log into your Google Analytics account to view your stats.
Notes:
Global Site Tag is required for Google Analytics 4. For steps on setting up GA 4, check out the plugin homepage (under “GA Tracking Options”).
Also 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 urchin.js
, then 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.
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 »
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!
To enable Google Analytics 4:
Save changes and done. Wait 24-48 hours before viewing collected data in your GA account.
If you check the source code of your pages and don’t see the GA tracking code, check the following:
wp_head
and wp_footer
If the GA tracking code still is not displayed, most likely there is interference from another plugin or theme. In this case, the best way to resolve the issue is to do some basic WordPress troubleshooting.
You need to wait awhile for Google to collect some data, like at least a day or whatever. Standard stuff for Google Analytics. For more information, check out the Google Analytics Help Center.
Yes, you can use the gap_custom_code
filter hook.
Here are the steps:
ga('require', 'GTM-XXXXXX');
) to the setting, “Custom GA Code”Done! You can view the source code of your web pages to verify the results.
More info about Google Optimize.
Here are the steps:
<script>window['ga-disable-UA-XXXXX-Y'] = true;</script>
Done! You can view the source code of your web pages to verify the results.
More info about user opt-out.
By default the plugin includes the auto
parameter in the tracking code:
However some tracking techniques (such as Site Speed Sample Rate) require replacing the auto
parameter. To do it:
First disable the auto
parameter by adding the following code to WordPress functions or custom plugin:
Now that auto
is disabled, you can replace it with your own parameter(s). For example, to implement Universal Analytics Site Speed Sample Rate, enter the following code in the plugin setting “Custom Tracker Objects”:
Save changes and done. The resulting tracking code will now look like this:
So can adjust things as needed to add any parameters that are required.
To ask a question, suggest a feature, or provide feedback, contact me directly. Learn more about Google Analytics and GA tracking methods.