Google Analytics Opt-Out Security & Risk Analysis

wordpress.org/plugins/google-analytics-opt-out

Provides opt-out functionality for Google Analytics.

5K active installs v2.3.6 PHP 5.6.0+ WP 4.8.0+ Updated Jun 30, 2023
dsgvogdprgoogle-analytics-opt-outmonster-insights
85
A · Safe
CVEs total1
Unpatched0
Last CVEFeb 14, 2023
Safety Verdict

Is Google Analytics Opt-Out Safe to Use in 2026?

Generally Safe

Score 85/100

Google Analytics Opt-Out has a strong security track record. Known vulnerabilities have been patched promptly.

1 known CVELast CVE: Feb 14, 2023Updated 2yr ago
Risk Assessment

The 'google-analytics-opt-out' plugin version 2.3.6 exhibits a mixed security posture. On the positive side, the static analysis reveals no critical or high severity taint flows, no dangerous function usage, and no file operations, indicating a generally clean codebase in these areas. The absence of external HTTP requests and the presence of some output escaping are also encouraging signs. However, significant concerns arise from the SQL query handling and the complete lack of security checks on entry points.

The plugin makes a single SQL query that does not utilize prepared statements, presenting a potential risk for SQL injection vulnerabilities, especially if user-supplied data is ever incorporated into this query. Furthermore, while the attack surface is small, the complete absence of nonce and capability checks on all entry points (shortcodes in this case) is a major weakness. This means any user, regardless of their logged-in status or permissions, could potentially trigger the functionality associated with these shortcodes, leading to unintended actions or information disclosure.

The vulnerability history shows one past medium severity CVE related to Cross-site Scripting. While this vulnerability is currently patched, its existence suggests that the plugin has had past security flaws. The absence of any current unpatched vulnerabilities is good, but the historical pattern of XSS, combined with the current lack of robust input validation and authorization checks, suggests a propensity for security issues that require careful monitoring and mitigation.

Key Concerns

  • Raw SQL query without prepared statements
  • No capability checks on entry points
  • No nonce checks on entry points
  • Medium severity CVE history
  • Lower output escaping percentage
Vulnerabilities
1

Google Analytics Opt-Out Security Vulnerabilities

CVEs by Year

1 CVE in 2023
2023
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

CVE-2023-25712medium · 4.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Google Analytics Opt-Out <= 2.3.4 - Authenticated (Admin+) Stored Cross-Site Scripting

Feb 14, 2023 Patched in 2.3.5 (343d)
Code Analysis
Analyzed Mar 16, 2026

Google Analytics Opt-Out Code Analysis

Dangerous Functions
0
Raw SQL Queries
1
0 prepared
Unescaped Output
13
23 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

SQL Query Safety

0% prepared1 total queries

Output Escaping

64% escaped36 total outputs
Attack Surface

Google Analytics Opt-Out Attack Surface

Entry Points2
Unprotected0

Shortcodes 2

[google_analytics_optout] inc\shortcodes.php:32
[google_analytics_optout_close] inc\shortcodes.php:33
WordPress Hooks 23
actioninitgoogle-analytics-opt-out.php:35
actionadmin_noticesgoogle-analytics-opt-out.php:47
actionadmin_noticesinc\admin.php:18
filtermce_external_pluginsinc\admin.php:50
filtermce_buttonsinc\admin.php:51
actioninitinc\admin.php:55
actionadmin_initinc\admin.php:113
actioninitinc\admin.php:115
actionenqueue_block_editor_assetsinc\admin.php:126
actionwp_footerinc\frontend.php:71
filtergaoop_optout_textinc\frontend.php:93
filtergaoop_optout_textinc\frontend.php:95
actionwp_headinc\frontend.php:234
filtergaoop_cookie_setinc\functions.php:103
filtergaoop_opt_out_cookie_set_textinc\functions.php:116
actionplugins_loadedinc\scripts.php:46
actionmonsterinsights_tracking_afterinc\scripts.php:50
actionwp_headinc\scripts.php:52
actionwp_enqueue_scriptsinc\scripts.php:66
actionadmin_menuinc\settings.php:18
actionadmin_initinc\settings.php:128
actioninitinc\shortcodes.php:36
filterwidget_textinc\shortcodes.php:109
Maintenance & Trust

Google Analytics Opt-Out Maintenance & Trust

Maintenance Signals

WordPress version tested6.2.9
Last updatedJun 30, 2023
PHP min version5.6.0
Downloads221K

Community Trust

Rating90/100
Number of ratings16
Active installs5K
Developer Profile

Google Analytics Opt-Out Developer Profile

wp-buddy

1 plugin · 5K total installs

69
trust score
Avg Security Score
85/100
Avg Patch Time
343 days
View full developer profile
Detection Fingerprints

How We Detect Google Analytics Opt-Out

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/google-analytics-opt-out/js/frontend.js/wp-content/plugins/google-analytics-opt-out/js/settings.js
Script Paths
/wp-content/plugins/google-analytics-opt-out/js/frontend.js/wp-content/plugins/google-analytics-opt-out/js/settings.js

HTML / DOM Fingerprints

CSS Classes
gaoop-banner
HTML Comments
Google Analytics Opt-Out by WP-Buddy | https://wp-buddy.com/products/plugins/google-analytics-opt-out
Data Attributes
data-gaoop-opt-out
JS Globals
gaoop_propertygaoop_disable_strs
Shortcode Output
[google_analytics_optout]
FAQ

Frequently Asked Questions about Google Analytics Opt-Out