Title: WE &#8211; Google Analytics
Author: wordpresteem
Published: <strong>November 12, 2018</strong>
Last modified: March 3, 2025

---

Search plugins

![](https://s.w.org/plugins/geopattern-icon/ga-google-analytics-by-esteem-host.svg)

# WE – Google Analytics

 By [wordpresteem](https://profiles.wordpress.org/wordpresteem/)

[Download](https://downloads.wordpress.org/plugin/ga-google-analytics-by-esteem-host.zip)

 * [Details](https://wordpress.org/plugins/ga-google-analytics-by-esteem-host/#description)
 * [Reviews](https://wordpress.org/plugins/ga-google-analytics-by-esteem-host/#reviews)
 *  [Installation](https://wordpress.org/plugins/ga-google-analytics-by-esteem-host/#installation)
 * [Development](https://wordpress.org/plugins/ga-google-analytics-by-esteem-host/#developers)

 [Support](https://wordpress.org/support/plugin/ga-google-analytics-by-esteem-host/)

## Description

> Supports Global Site Tag / gtag.js
>  GDPR compliant: does not collect any user 
> data

This plugin enables Google Analytics for your entire WordPress site. Lightweight
and fast with plenty of great features.

**Features**

 * Blazing fast performance
 * Does one thing and does it well
 * Drop-dead simple and easy to use
 * Includes tracking code in header or footer
 * Includes tracking code on all WordPress web pages
 * Sleek plugin Settings page with toggling panels
 * Option to enable page tracking in the Admin Area
 * Easy to customize the tracking code

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**

 * [Universal Analytics](https://developers.google.com/analytics/devguides/collection/analyticsjs/)/
   analytics.js
 * [Global Site Tag](https://developers.google.com/analytics/devguides/collection/gtagjs/)/
   gtag.js
 * [Legacy](https://developers.google.com/analytics/devguides/collection/gajs/) /
   ga.js

**GA Feature Support**

 * Supports [Display Advertising](https://support.google.com/analytics/answer/2444872)
 * Supports [Enhanced Link Attribution](https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-link-attribution)
 * Supports [IP Anonymization](https://developers.google.com/analytics/devguides/collection/analyticsjs/ip-anonymization)
 * Supports [Force SSL](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#forceSSL)
 * Supports [Tracker Objects](https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers)
 * Supports [Google Optimize](https://support.google.com/360suite/optimize/)

Learn more about [Google Analytics](http://www.google.com/analytics/)!

**GDPR**

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. So this plugin 
does _not_ do anything to make your site _less_ compliant with GDPR. I have done
my best to ensure that this plugin is 100% GDPR compliant, but I’m not a lawyer 
so can’t guarantee anything. To ensure that your site is compliant with GDPR, please
consult an attorney, and also check with Google and/or configure your Google account
settings and/or tracking code as required by GDPR.

> Works perfectly with or without Gutenberg

## Installation

**Installation**

 1. Upload the plugin to your blog and activate
 2. 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](https://support.google.com/analytics/?hl=en#topic=3544906).

[More info on installing WP plugins](https://codex.wordpress.org/Managing_Plugins#Installing_Plugins)

**Usage**

To enable Google Analytics tracking on your site, follow these steps:

 1. Visit the “Plugin Settings” panel
 2. Enter your GA Tracking ID
 3. Choose either [Universal Analytics](https://developers.google.com/analytics/devguides/collection/analyticsjs/)
    or [Global Site Tag](https://developers.google.com/analytics/devguides/collection/gtagjs/)
 4. 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](https://developers.google.com/analytics/).
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](https://support.google.com/analytics/?hl=en#topic=3544906).

**Upgrading Analytics**

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:

 * [Universal Analytics Upgrade Center](https://developers.google.com/analytics/devguides/collection/upgrade/)
 * [Migrate from analytics.js to gtag.js](https://developers.google.com/analytics/devguides/collection/gtagjs/migration)

**Plugin Upgrades**

To upgrade WE – 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](https://profiles.wordpress.org/ga-google-analytics-by-esteemhost/).

**Restore Default Options**

To restore default plugin options, either uninstall/reinstall the plugin, or visit
the plugin settings > Restore Default Options.

**Uninstalling**

WE – 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.

## FAQ

### Tracking code is not displayed in source code?

If you check the source code of your pages and don’t see the GA tracking code, check
the following:

 * Check that your theme includes the hooks, `wp_head` and `wp_footer`
 * If you are using a caching plugin, try clearing the cache

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](https://problogger.com/how-to-troubleshoot-wordpress/).

### Google Analytic says tracking code is not detected?

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](https://support.google.com/analytics/?hl=en#topic=3544906).

### Can I filter the output of the “Custom GA Code” setting?

Yes, you can use the `gap_custom_code` filter hook.

### How to implement Google Optimize?

Here are the steps:

 1. Enable Universal Analytics in the plugin settings
 2. Add the Optimize plugin (e.g., `ga('require', 'GTM-XXXXXX');`) to the setting, “
    Custom GA Code”
 3. Add the Page Hiding (flicker) snippet to the setting, “Custom <head> Code”
 4. Enable the setting, “Custom <head> Location”

Done! You can view the source code of your web pages to verify the results.

### Got a question?

To ask a question, suggest a feature, or provide feedback, [contact me directly](https://wordpress.org/plugins/ga-google-analytics-by-esteem-host/wordpresteem@gmail.com?output_format=md).
Learn more about [Google Analytics](http://www.google.com/analytics/).

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“WE – Google Analytics” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ wordpresteem ](https://profiles.wordpress.org/wordpresteem/)

[Translate “WE – Google Analytics” into your language.](https://translate.wordpress.org/projects/wp-plugins/ga-google-analytics-by-esteem-host)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ga-google-analytics-by-esteem-host/),
check out the [SVN repository](https://plugins.svn.wordpress.org/ga-google-analytics-by-esteem-host/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/ga-google-analytics-by-esteem-host/)
by [RSS](https://plugins.trac.wordpress.org/log/ga-google-analytics-by-esteem-host/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.4

 * Compatible with php 8.2
 * Compatible with latest wordpress version

_Thank you to everyone who shares feedback for WE – GA Google Analytics!_

**1.1**

 * Further tests on WP versions 4.9 and 5.0 (alpha)
 * Updates plugin screenshots for WordPress Plugin Directory
 * Initial release.

## Meta

 *  Version **1.5**
 *  Last updated **1 year ago**
 *  Active installations **10+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **7.2.2**
 *  PHP version ** 5.6.3 or higher **
 * Tags
 * [analytics](https://wordpress.org/plugins/tags/analytics/)[ga](https://wordpress.org/plugins/tags/ga/)
   [google](https://wordpress.org/plugins/tags/google/)[google analytics](https://wordpress.org/plugins/tags/google-analytics/)
   [tracking](https://wordpress.org/plugins/tags/tracking/)
 *  [Advanced View](https://wordpress.org/plugins/ga-google-analytics-by-esteem-host/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/ga-google-analytics-by-esteem-host/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ga-google-analytics-by-esteem-host/reviews/)

## Contributors

 *   [ wordpresteem ](https://profiles.wordpress.org/wordpresteem/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/ga-google-analytics-by-esteem-host/)