
GTM4WP – A Google Tag Manager (GTM) plugin for WordPress Security & Risk Analysis
wordpress.org/plugins/duracelltomi-google-tag-managerAdvanced tag management for WordPress with Google Tag Manager
Is GTM4WP – A Google Tag Manager (GTM) plugin for WordPress Safe to Use in 2026?
Generally Safe
Score 98/100GTM4WP – A Google Tag Manager (GTM) plugin for WordPress has a strong security track record. Known vulnerabilities have been patched promptly.
The duracelltomi-google-tag-manager plugin, version 1.22.3, exhibits a mixed security posture. On the positive side, the static analysis reveals a relatively small attack surface with only one AJAX handler and no REST API routes, shortcodes, or cron events. Crucially, the single entry point appears to have an authentication check, and there are no detected critical or high severity taint flows, indicating that sensitive data handling is likely robust in the current version. Furthermore, a high percentage of output is properly escaped, mitigating some Cross-Site Scripting (XSS) risks.
However, significant concerns arise from the plugin's vulnerability history. It has a total of three known CVEs, with one high and two medium severity vulnerabilities previously identified, primarily related to Cross-Site Scripting. The fact that there have been multiple historical vulnerabilities of this nature, even if currently patched, suggests a recurring pattern of input sanitization or output escaping deficiencies. The static analysis also shows 2% of SQL queries are not using prepared statements, which can lead to SQL injection vulnerabilities if not properly handled, and a lack of comprehensive capability checks is also noted. The plugin's history of XSS vulnerabilities, coupled with the presence of raw SQL queries and the lack of capability checks, suggests that while current taint analysis might be clean, past issues point to potential weaknesses that could resurface or be exploited in future versions or through different attack vectors.
In conclusion, while the immediate static analysis of version 1.22.3 shows some good security practices like limited attack surface and good output escaping, the plugin's historical vulnerability profile, particularly concerning XSS, and the presence of raw SQL queries are significant weaknesses. Users should remain vigilant and prioritize updating to newer versions as they become available, while developers should focus on addressing the historical patterns of input validation and output escaping flaws.
Key Concerns
- Raw SQL queries without prepared statements
- Vulnerability history: 1 High severity CVE
- Vulnerability history: 2 Medium severity CVEs
- No capability checks on entry points
GTM4WP – A Google Tag Manager (GTM) plugin for WordPress Security Vulnerabilities
CVEs by Year
Severity Breakdown
3 total CVEs
Google Tag Manager for WordPress (GTM4WP) <= 1.15.1 - Stored Cross-Site Scripting via Content Element ID
Google Tag Manager for WordPress <= 1.15 - Reflected Cross-Site Scripting via Site Search
Google Tag Manager for WordPress <= 1.15 - Cross-Site Scripting via Cloudflare Country Code
GTM4WP – A Google Tag Manager (GTM) plugin for WordPress Code Analysis
SQL Query Safety
Output Escaping
Data Flow Analysis
GTM4WP – A Google Tag Manager (GTM) plugin for WordPress Attack Surface
AJAX Handlers 1
WordPress Hooks 58
Maintenance & Trust
GTM4WP – A Google Tag Manager (GTM) plugin for WordPress Maintenance & Trust
Maintenance Signals
Community Trust
GTM4WP – A Google Tag Manager (GTM) plugin for WordPress Alternatives
Sugoi Tag Inserter: GTM & gtag.js Made Easy
sugoi-tag-inserter
・2 step installation of GTM / gtag.js Plugin to make Google Tag Manager (GTM) & gtag.js(Google Ads / Google Analytics).
Google Analytics and Google Tag Manager
wk-google-analytics
Google Analytics or Google Tag Manager for WordPress without tracking your own visits.
WP Global Site Tag
wp-global-site-tag
Global Site Tag (gtag.js) is a new Google Analytics replacement – giving you better control while making implementation easier. Using gtag.
DeMomentSomTres WP Admin GTM
demomentsomtres-wp-admin-gtm
DeMomentSomTres Google Tag Manager for WP-Admin allows to extend DuracellTomi's Google Tag Manager into WP administration.
PixelYourSite – Your smart PIXEL (TAG) & API Manager
pixelyoursite
Add Meta Pixel with Conversion API, Google Analytics (GA4) + Consent Mode, Google Tag Manager, and Head & Footer scripts.
GTM4WP – A Google Tag Manager (GTM) plugin for WordPress Developer Profile
1 plugin · 700K total installs
How We Detect GTM4WP – A Google Tag Manager (GTM) plugin for WordPress
Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.
Asset Fingerprints
/wp-content/plugins/duracelltomi-google-tag-manager/dist/js/gtm4wp-frontend.js/wp-content/plugins/duracelltomi-google-tag-manager/dist/js/gtm4wp-gtm-autodetect.js/wp-content/plugins/duracelltomi-google-tag-manager/dist/js/gtm4wp-admin.js/wp-content/plugins/duracelltomi-google-tag-manager/dist/css/gtm4wp-admin.css/wp-content/plugins/duracelltomi-google-tag-manager/dist/js/gtm4wp-frontend.js/wp-content/plugins/duracelltomi-google-tag-manager/dist/js/gtm4wp-gtm-autodetect.jsduracelltomi-google-tag-manager/dist/js/gtm4wp-frontend.js?ver=duracelltomi-google-tag-manager/dist/js/gtm4wp-gtm-autodetect.js?ver=duracelltomi-google-tag-manager/dist/js/gtm4wp-admin.js?ver=duracelltomi-google-tag-manager/dist/css/gtm4wp-admin.css?ver=HTML / DOM Fingerprints
gtm4wp-inline-scriptgtm4wp-gtm-container<!-- GTM4WP: BEGIN GTM body script --><!-- GTM4WP: END GTM body script --><!-- GTM4WP: BEGIN GTM NO SCRIPT --><!-- GTM4WP: END GTM NO SCRIPT -->data-gtm4wp-idgtm4wp_datasgtm4wp_frontend