Google Analytics for WooCommerce Security & Risk Analysis

wordpress.org/plugins/woocommerce-google-analytics-integration

Provides integration between Google Analytics and WooCommerce.

200K active installs v2.1.21 PHP 7.4+ WP 6.8+ Updated Feb 10, 2026
google-analyticswoocommerce
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Google Analytics for WooCommerce Safe to Use in 2026?

Generally Safe

Score 100/100

Google Analytics for WooCommerce has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 1mo ago
Risk Assessment

The security analysis of WooCommerce Google Analytics Integration v2.1.21 indicates a strong security posture based on the provided static analysis results. The absence of any identified dangerous functions, unsanitized taint flows, raw SQL queries, or unescaped output suggests adherence to secure coding practices. The plugin also exhibits a limited attack surface with no direct entry points like AJAX handlers, REST API routes, or shortcodes that lack proper authorization checks. Furthermore, the plugin's history of zero known vulnerabilities, across all severities and timeframes, is a significant positive indicator. This suggests a well-maintained and robust codebase that has historically been free from exploitable security flaws.

While the static analysis and vulnerability history are highly encouraging, the complete absence of nonce checks and only one capability check could be a point of minor concern if the plugin's functionality were to expand or if it interacted with sensitive user data in future versions. However, given the current data showing zero attack surface and no identified vulnerabilities, this does not represent an immediate risk. The plugin's strengths lie in its clean code, strong adherence to prepared statements, and excellent output escaping. The lack of any recorded vulnerabilities further solidifies its current security standing. The primary area for potential future scrutiny would be the addition of authorization checks if new public-facing functionalities are introduced.

Key Concerns

  • No nonce checks
  • Only one capability check
Vulnerabilities
None known

Google Analytics for WooCommerce Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

Google Analytics for WooCommerce Code Analysis

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

Output Escaping

100% escaped11 total outputs
Attack Surface

Google Analytics for WooCommerce Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 22
actionwp_headincludes\class-wc-abstract-google-analytics-js.php:65
actionwoocommerce_before_single_productincludes\class-wc-abstract-google-analytics-js.php:72
actionwoocommerce_add_to_cartincludes\class-wc-abstract-google-analytics-js.php:80
filterwoocommerce_loop_add_to_cart_linkincludes\class-wc-abstract-google-analytics-js.php:89
actionwoocommerce_thankyouincludes\class-wc-abstract-google-analytics-js.php:99
actionadmin_noticesincludes\class-wc-google-analytics.php:41
actioninitincludes\class-wc-google-analytics.php:51
filterwoocommerce_tracker_dataincludes\class-wc-google-analytics.php:53
actionwoocommerce_update_options_integration_google_analyticsincludes\class-wc-google-analytics.php:54
actionwoocommerce_update_options_integration_google_analyticsincludes\class-wc-google-analytics.php:55
actionadmin_initincludes\class-wc-google-analytics.php:56
filterwoocommerce_get_return_urlincludes\class-wc-google-analytics.php:59
actionwp_enqueue_scriptsincludes\class-wc-google-analytics.php:66
actionwp_enqueue_scriptsincludes\class-wc-google-gtag-js.php:56
actionwp_footerincludes\class-wc-google-gtag-js.php:57
actionbefore_woocommerce_initwoocommerce-google-analytics-integration.php:42
actionadmin_noticeswoocommerce-google-analytics-integration.php:66
actioninitwoocommerce-google-analytics-integration.php:71
actionwoocommerce_order_status_completedwoocommerce-google-analytics-integration.php:74
filterwoocommerce_integrationswoocommerce-google-analytics-integration.php:81
actionadmin_noticeswoocommerce-google-analytics-integration.php:83
actionplugins_loadedwoocommerce-google-analytics-integration.php:321
Maintenance & Trust

Google Analytics for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedFeb 10, 2026
PHP min version7.4
Downloads10.3M

Community Trust

Rating56/100
Number of ratings117
Active installs200K
Developer Profile

Google Analytics for WooCommerce Developer Profile

WooCommerce

36 plugins · 4.7M total installs

76
trust score
Avg Security Score
96/100
Avg Patch Time
234 days
View full developer profile
Detection Fingerprints

How We Detect Google Analytics for WooCommerce

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/woocommerce-google-analytics-integration/assets/js/admin-tracking-settings.js/wp-content/plugins/woocommerce-google-analytics-integration/assets/js/frontend-script.js/wp-content/plugins/woocommerce-google-analytics-integration/assets/css/admin-tracking-settings.css
Script Paths
woocommerce-google-analytics-integration/assets/js/admin-tracking-settings.jswoocommerce-google-analytics-integration/assets/js/frontend-script.js
Version Parameters
woocommerce-google-analytics-integration/assets/js/admin-tracking-settings.js?ver=woocommerce-google-analytics-integration/assets/js/frontend-script.js?ver=woocommerce-google-analytics-integration/assets/css/admin-tracking-settings.css?ver=

HTML / DOM Fingerprints

CSS Classes
wc-ga-pro-notice
HTML Comments
Google Analytics for WooCommerce main class.Instance of this class.Initialize the plugin.Only show the notice if there are 10 <= completed orders <= 100.
Data Attributes
data-tracking-iddata-event-categorydata-event-actiondata-event-label
JS Globals
wc_ga_tracking_params
FAQ

Frequently Asked Questions about Google Analytics for WooCommerce