by Schweizer Solutions GmbH
4.3 (6 reviews)
Opt-Out for Google Analytics (DSGVO / GDPR)
Allows the user to opt-out of Google Analytics tracking. DSGVO / GDPR.
Tested up to WP 6.8.3 (Current: 6.9)
v2.4
Current Version v2.4
Updated 7 months ago
Last Update on 07 Jun, 2025
Synced 6 hours ago
Last Synced on
Rank
#3,667
—
No change
Active Installs
4K+
-10.3%
KW Avg Position
100.5
-0.5 better
Downloads
102.2K
+2 today
Support Resolved
0%
—
No change
Rating
86%
Review 4.3 out of 5
4.3
(6 reviews)
Next Milestone 5K
4K+
5K+
248
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro
Unlock Exact Install Count
See the precise estimated active installs for this plugin, calculated from real-time ranking data.
- Exact install estimates within tiers
- Track install growth over time
- Milestone progress predictions
Need 598 more installs to reach 5K+
Rank Changes
Current
#3,667
Change
Best
#
Downloads Growth
Downloads
Growth
Peak
Upgrade to Pro
Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.
Upgrade NowReviews & Ratings
4.3
6 reviews
Overall
86%
5
5
(83%)
4
0
(0%)
3
0
(0%)
2
0
(0%)
1
1
(17%)
Tracked Keywords
Showing 2 of 2Unlock Keyword Analytics
Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.
- Full keyword position tracking
- Historical ranking data
- Competitor keyword analysis
Track This Plugin
Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.
Start Tracking FreePlugin Details
- Version
- 2.4
- Last Updated
- Jun 07, 2025
- Requires WP
- 3.5+
- Tested Up To
- 6.8.3
- PHP Version
- 7.0 or higher
- Author
- Schweizer Solutions GmbH
Support & Rating
- Rating
- ★ ★ ★ ★ ☆ 4.3
- Reviews
- 6
- Support Threads
- 0
- Resolved
- 0%
Keywords
Upgrade to Pro
Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.
Upgrade NowSimilar Plugins
WP Adminify – White Label WordPress, Admin Menu Editor, Login Customizer
7K+ installs
#2,736
Master Addons For Elementor – White Label, Free Widgets, Hover Effects, Conditions, & Animations
40K+ installs
#929
Header and Footer Scripts
200K+ installs
#258
Post Views Counter
200K+ installs
#271
SEO SIMPLE PACK
100K+ installs
#328
Frequently Asked Questions
Common questions about Opt-Out for Google Analytics (DSGVO / GDPR)
The Data Protection Regulation (DSGVO, EU-DSGVO, GDPR) stipulates that a website visitor must have the option to object to the collection of data by Google Analytics. Until now, this was only possible via browser addon, or complicated JavaScript code integrations on the own website. With this plugin, this is very easy and the user also has the option to undo the objection.
Yes, because we also comply with Google's specifications. More information about the guidelines: https://developers.google.com/analytics/devguides/collection/analyticsjs/user-opt-out
This plugin can also be used if the tracking code was inserted manually at the theme or with the help of a plugin.
Yes, it is recommended to offer the opt-out for Google Analytics in the privacy policy. Keeping track of all the GDPR legislative changes is not easy. Especially not next to your core business. That's why we offer you a data protection generator with our partner easyRechtssicher. The privacy policy is created ONCE and automatically kept up to date in WordPress itself. No more filling out forms again and copying and pasting privacy statements onto the site, it runs completely automated. More info here: https://schweizer.solutions/datenschutzgenerator
If the site visitor clicks on the opt-out link to disable Google Analytics for him, then a cookie is set. With this cookie, the system knows that this site visitor should not be tracked on the website. This cookie is only valid in the browser with which the site visitor was on the website and clicked on the opt-out link. If the visitor uses a different browser, he would have to click on the link again. If the site visitor clears his browser data (cookies, download history, etc.), the cookie is also deleted and the site visitor would have to click on the opt-out link again.
You can deactivate the status of the plugin under "Settings > GA Opt-Out", there you only have to uncheck "Activate opt-out function". You can deactivate the whole plugin under "Plugins > Installed Plugins" by clicking on "Deactivate" for the "Opt-Out for Google Analytics" Plugin. After deactivating the plugin, you can remove it completely by clicking on "Delete".
You can use the shortcode [gaoo_optout] in posts, pages and widgets (text widget).
Yes, you can. For this purpose we have included appropriate filters and action hooks. // Before the shortcode is resolved add_action( 'gaoo_before_shortcode', 'my_before_shortcode', 10, 2); function my_before_shortcode( $tracking_code, $current_status ) { // $tracking_code - The current used tracking code "UA-XXXXX-Y" OR "G-XXXXXXXXXX" // $current_status - The current status of the page visitor: activate or deactivate } // After the shortcode is resolved add_action( 'gaoo_after_shortcode', 'my_after_shortcode', 10, 2); function my_after_shortcode( $tracking_code, $current_status ) { // $tracking_code - The current used tracking code "UA-XXXXX-Y" OR "G-XXXXXXXXXX" // $current_status - The current status of the page visitor: activate or deactivate } // Before the JS code, to disable GA, is issued add_action( 'gaoo_before_head_script', 'my_before_script', 10, 1); function my_before_script( $tracking_code ) { // $tracking_code - The current used tracking code "UA-XXXXX-Y" OR "G-XXXXXXXXXX" } // After the JS code, to disable GA, is issued add_action( 'gaoo_after_head_script', 'my_after_script', 10, 1); function my_after_script( $tracking_code ) { // $tracking_code - The current used tracking code "UA-XXXXX-Y" OR "G-XXXXXXXXXX" } // The UA-Code used add_filter( 'gaoo_get_ua_code', 'my_ga_tracking_code', 10, 2 ); function my_ga_tracking_code( $tracking_code, $ga_plugin ) { // $tracking_code - The current used tracking code "UA-XXXXX-Y" OR "G-XXXXXXXXXX" // $ga_plugin - Selected source for the tracking code } // Whether the page should be reloaded after the click add_filter( 'gaoo_force_reload', 'my_force_reload', 10, 1); function my_force_reload( $force ) { // $force - "true" = force reload; "false" = do not reload }
It happens that some self-developed themes do not resolve shortcodes and the plugin does not work. To execute the shortcode anyway, you have to use this code in the theme, at the desired position: echo do_shortcode('[ga_optout]'); It is displayed that the settings are not correct, although I have changed them! If the settings have been changed, e.g. in a compatible Google Analytics tracking plugin, then this change will only be noticed during the autom. check (weekly). It is possible to perform the check beforehand. To do this, the "Save changes" button would have to be clicked under "Settings > GA Opt-Out". This will read the new settings and save them for a week until the next automatic check.
The JavaScript event gaoptout is fired on the window object, which can be reacted to. If the page visitor clicks on the link to perform an opt-out, then a false is passed as the value. If the visitor performs an opt-in, then a true is passed. Example code: jQuery(window).on('gaoptout', function (e) { console.log(e.detail); });