Title: Google Analytics Opt-Out
Author: wp-buddy
Published: <strong>miz Du 11, 2013</strong>
Last modified: Mezheven 30, 2023

---

Search plugins

![](https://ps.w.org/google-analytics-opt-out/assets/banner-772x250.jpg?rev=2520244)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/google-analytics-opt-out/assets/icon-256x256.jpg?rev=1048020)

# Google Analytics Opt-Out

 By [wp-buddy](https://profiles.wordpress.org/wp-buddy/)

[Download](https://downloads.wordpress.org/plugin/google-analytics-opt-out.2.3.6.zip)

 * [Details](https://bre.wordpress.org/plugins/google-analytics-opt-out/#description)
 * [Reviews](https://bre.wordpress.org/plugins/google-analytics-opt-out/#reviews)
 *  [Installation](https://bre.wordpress.org/plugins/google-analytics-opt-out/#installation)
 * [Development](https://bre.wordpress.org/plugins/google-analytics-opt-out/#developers)

 [Support](https://wordpress.org/support/plugin/google-analytics-opt-out/)

## Description

This plugin provides opt-out functionality for Google Analytics by setting a cookie
that prevents analytics.js or gtag.js from collecting data. The new GDPR rules require
an opt-out.

Works perfectly with the [Google Analytics by MonsterInsights Plugin] (https://wordpress.
org/plugins/google-analytics-for-wordpress/ “Google Analytics by MonsterInsights
Plugin”). However, the plugin is not required to configure the opt-out feature. 
Just enter your UA or GA code manually. And that’s it!

The free and pro versions have now been merged. So now you can also activate a banner!
Have fun with it!

## Screenshots

 * [[
 * The Opt-Out link can be added with the Opt-Out block in WordPress new block editor(
   that came with version 5.0).
 * [[
 * If you’re using the classic editor, click this little button to add the shortcode.
 * [[
 * This is how the code looks like
 * [[
 * This is the settings page

## Blocks

This plugin provides 1 block.

 *   Analytics Opt Out

## Installation

 * Install and activate the plugin via your WordPress Administration panel
 * Go the “Settings” -> “Analytics Opt Out” and enter your UA- or GA-code (you don’t
   need this step if MonsterInsights plugin is active).
 * [Read the FAQ for more information.](https://wp-buddy.com/documentation/plugins/google-analytics-opt/faq/)

## FAQ

[You can find the FAQ on this page here.](https://wp-buddy.com/documentation/plugins/google-analytics-opt/faq/)

## Reviews

![](https://secure.gravatar.com/avatar/6ccfcdac487e5d612372fbac47aa50bd67cdc798ed927075768b21c614073e07?
s=60&d=retro&r=g)

### 󠀁[Godsend](https://wordpress.org/support/topic/godsend-7/)󠁿

 [lisasmith77](https://profiles.wordpress.org/lisasmith77/) Meurzh 13, 2023

Simple and useful! Thank you for saving me time 🙂

![](https://secure.gravatar.com/avatar/7120e0a81aa2daea1a93a7d8cdd1595c5a5903e488b4c77ce592a38665970615?
s=60&d=retro&r=g)

### 󠀁[a good plugin, so happy](https://wordpress.org/support/topic/a-good-plugin-so-happy-2/)󠁿

 [saffronviet](https://profiles.wordpress.org/saffronviet/) Genver 7, 2021

really useful Thanks

![](https://secure.gravatar.com/avatar/076e32e394f0b64aa1d4f5f1acb0e84b21bc47da0930a1bd41b6bb607a2e5ac4?
s=60&d=retro&r=g)

### 󠀁[Geiles Zeug](https://wordpress.org/support/topic/geiles-zeug/)󠁿

 [halaarbrown](https://profiles.wordpress.org/halaarbrown/) Gouere 31, 2020 1 reply

kann ich nur empfehlen

![](https://secure.gravatar.com/avatar/30b11be7143d23936fe2578e9cd71c9f6675380a9adcea48cf7a8b2c249597f5?
s=60&d=retro&r=g)

### 󠀁[Easy and great](https://wordpress.org/support/topic/easy-and-great-24/)󠁿

 [salilou](https://profiles.wordpress.org/hkr/) Gouere 30, 2018

Easy and great

![](https://secure.gravatar.com/avatar/8548531d74c19e708c5b27e0dbf148387125dd45f4d273800acaa03f86b1f568?
s=60&d=retro&r=g)

### 󠀁[Probably not GDPR compliant](https://wordpress.org/support/topic/unfortunately-not-gdpr-compliant/)󠁿

 [Tachi](https://profiles.wordpress.org/aytacbalci/) Mae 25, 2018 3 replies

How do I block Google Analytics beforehand with this plugin? The first time you 
visit Google Analytics has already tracked your visit. So I believe this plugin 
is not GDPR compliant! Because I am not sure if my assumptions above are correct
I have changed the number of stars from 1 to 3. The plugin is great because of its
simplicity.

![](https://secure.gravatar.com/avatar/1393f19993f434e52c4e6e5c25d45ea1f14733500363d09b078ea194f026adc3?
s=60&d=retro&r=g)

### 󠀁[Good plugin, but be careful about PHP version](https://wordpress.org/support/topic/version-2-1-2-broke-down-my-site/)󠁿

 [Melanger.cz](https://profiles.wordpress.org/melangercz/) Mae 24, 2018 4 replies

Great and helpful plugin! Only after installing version 2.1.2, all pages, front 
end and back end, show a warning that a higher PHP version is required (my site 
runs on an older PHP version), so I could not even uninstall this plugin, had to
delete it through FTP (and downgrade to an older version from backup).

 [ Read all 15 reviews ](https://wordpress.org/support/plugin/google-analytics-opt-out/reviews/)

## Contributors & Developers

“Google Analytics Opt-Out” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ wp-buddy ](https://profiles.wordpress.org/wp-buddy/)
 *   [ Florian Simeth ](https://profiles.wordpress.org/floriansimeth/)

“Google Analytics Opt-Out” has been translated into 5 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/google-analytics-opt-out/contributors)
for their contributions.

[Translate “Google Analytics Opt-Out” into your language.](https://translate.wordpress.org/projects/wp-plugins/google-analytics-opt-out)

### Interested in development?

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

## Changelog

#### 2.3.6

 * Compatibility with latest MonsterInsights version

#### 2.3.5

 * Fixed a security issue that could lead to a XSS attack. Thanks to patchstack 
   for reporting this issue.

#### 2.3.4

 * Fixed: Banner did not stay closed if someone clicked on the info icon and/or 
   the shortcode link.
 * Fixed: Browser warnings because of missing SameSite Cookie attributes.
 * Fixed: MonsterInsights showed a warning because of multiple occurrences of the
   UA-Code number.

#### 2.3.3

 * Fixed: [google_analytics_optout_close] shortcode did not close the popup

#### 2.3.2

 * Fixed: Make sure the JavaScript file is loaded correctly using the `wp_enqueue_scripts`
   filter.

#### 2.3.1

 * Fixed: removed checkbox in the end of the page

#### 2.3.0

 * Using SVG icons instead of images.
 * Added new filters: `gaoop_info_icon_html` and `gaoop_close_icon_html`.
 * Removed dependency from jQuery.
 * Removed deferred loading of JS file because it makes no sense when script is 
   in the footer.

#### 2.2.6

 * Bring back the sub-menu under “Insights” if MonsterInsights is installed.

#### 2.2.5

 * Corrected text domain for JS translations
 * State that plugin works with gtag.js, too.

#### 2.2.4

 * Gutenberg block content was not translated correctly in WordPress 5.0

#### 2.2.3

 * Fixed PHP warning: filemtime(): stat failed in line xyz

#### 2.2.2

 * New Opt-Out Gutenberg block did not work (due to missing JavaScript file).

#### 2.2.1

 * Fixed a PHP fatal error when Gutenberg plugin is active and WordPress < 5.0 is
   installed.

#### 2.2.0

 * Added a block for WordPress’ 5.0 new block editor.

#### 2.1.4

 * Added missing return statement to no longer the plugin on older PHP versions

#### 2.1.3

 * Fixed issue with old PHP warning that could block site access
 * Updated headline on the settings page
 * Inserted a paragraph that describes the indention of the plugin and shows the
   shortcode that can be copy and pasted.

#### 2.1.2

 * Fixed an issue where the opt-out code may not be on top of the sourcecode of 
   some websites.
 * Opt-Out settings field has been moved up on the settings page.

#### 2.1.1

 * Fixed an issue with Monster Insights 7: Submenu item was not visible

#### 2.1.0

 * Allow to disable the editor button as some users reported issues with loading
   the editor properly

#### 2.0.2

 * Make plugin compatible with the latest version of MonsterInsights.
 * Remove/deprecate all functions that have been used when the old Yoast Analytics
   plugin was active.
 * Remove the ‘gaoop_stop_head’ filter as it’s no longer needed.
 * Display the options submenu under “Insights” menu.

#### 2.0.1

 * Plugin can now be translated via [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/google-analytics-opt-out)

#### 2.0.0

 * The pro version is now free (this is it!)
 * New: allow the complete deactivation of the banner.

#### 0.1.5

 * Added Spanish translation

#### 0.1.4

 * Solves the issue that the opt-out link does not appear when the UA-Code was entered
   manually.
 * Also fixes an issue that the tracking code could not be found due to some code
   changes of the Yoast Google Analytics for WordPress Plugin (Yoast_GA_Frontend
   class no longer extends Yoast_GA_Options)

#### 0.1.3

 * Made the plugin compatible with the latest version of the Google Analytics plugin
   by Yoast

#### 0.1.2

 * Works again with the Google Analytics plugin by Yoast

#### 0.1.1

 * Fixed the issue that error message still shows shows up
 * Added/replaced some translations
 * Fixed an issue that Yoasts Analytics for WordPress plugin has changed the option
   name

#### 0.1

 * The first version

## Meta

 *  Version **2.3.6**
 *  Last updated **3 years ago**
 *  Active installations **5,000+**
 *  WordPress version ** 4.8.0 or higher **
 *  Tested up to **6.2.9**
 *  PHP version ** 5.6.0 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/google-analytics-opt-out/), [German](https://de.wordpress.org/plugins/google-analytics-opt-out/),
   [Italian](https://it.wordpress.org/plugins/google-analytics-opt-out/), [Spanish (Chile)](https://cl.wordpress.org/plugins/google-analytics-opt-out/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/google-analytics-opt-out/),
   and [Swedish](https://sv.wordpress.org/plugins/google-analytics-opt-out/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/google-analytics-opt-out)
 * Tags
 * [dsgvo](https://bre.wordpress.org/plugins/tags/dsgvo/)[GDPR](https://bre.wordpress.org/plugins/tags/gdpr/)
 *  [Advanced View](https://bre.wordpress.org/plugins/google-analytics-opt-out/advanced/)

## Ratings

 4.5 out of 5 stars.

 *  [  11 5-star reviews     ](https://wordpress.org/support/plugin/google-analytics-opt-out/reviews/?filter=5)
 *  [  2 4-star reviews     ](https://wordpress.org/support/plugin/google-analytics-opt-out/reviews/?filter=4)
 *  [  3 3-star reviews     ](https://wordpress.org/support/plugin/google-analytics-opt-out/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/google-analytics-opt-out/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/google-analytics-opt-out/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/google-analytics-opt-out/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/google-analytics-opt-out/reviews/)

## Contributors

 *   [ wp-buddy ](https://profiles.wordpress.org/wp-buddy/)
 *   [ Florian Simeth ](https://profiles.wordpress.org/floriansimeth/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/google-analytics-opt-out/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://wp-buddy.com/products/plugins/google-analytics-opt-out/)