WordPress maintenance or security needs? Reach out!
TLDWP

Plugin: duracelltomi-google-tag-manager (Used by 89,074 domains)

GTM4WP – A Google Tag Manager (GTM) plugin for WordPress

Google Tag Manager (GTM) is Google’s free tool for everyone to manage and deploy analytics and marketing tags as well as other code snippets
using an intuitive web UI. To learn more about this tool, visit the official website.

This plugin places the GTM container code snippets onto your WordPress website so that you do not need to add it manually.
Multiple containers are also supported!

The plugin complements your GTM setup by pushing page meta data and user information into the so called data layer.
Google’s official help pages includes more details about the data layer.

PHP 7.4 is required to use this plugin.

GTM container code placement

The original GTM container code is divided into two parts:

The first part is a javascript code snippet that is added to the section of every page of the website.
This part is critical to enable all features of GTM, and this plugin helps to place this part
correctly on your site.

The second part is an iframe snippet that acts as a failsafe/fallback should users’ JavaScript be disabled.
Google recommends – for best performance – to place this code snippet directly after the opening tag on each page.

Albeit not ideal, it will work when placed lower in the code. This plugin provides a code placement option for the second code snippet.

If your WordPress theme is compatible with the additions of WordPress 5.2 then this plugin will place this second code to the right place.
Users of the Genisis theme, GeneratePress theme, Elementor, Oxygen Builder and Beaver Builder Theme will also have this placed correctly.
To utilize this, set the compatibility mode in plugin options to off.

All other users can place this second code snippet using a custom PHP code (“Manually coded” option) or select the so called “Footer” option to
add the code lower in the code (it is not the recommended way but will work)

Basic data included

  • post/page titles
  • post/page dates
  • post/page category names
  • post/page tag names
  • post/page author ID and name
  • post/page ID
  • post types
  • post format
  • post count on the current page + in the current category/tag/taxonomy
  • custom terms associated with any post type
  • logged in status
  • logged in user role
  • logged in user ID (to track cross device behaviour in Google Analytics)
  • logged in user email address (both unhashed and SHA256 hased values to be used with tracking)
  • logger in user creation date
  • site search data
  • site name and id (for WordPress multisite instances)
  • IP address of the visitor (please use the explicit consent of the visitor to utilize this)

Browser / OS / Device data

  • browser data (name, version, engine)
  • OS data (name, version)
  • device data (type, manufacturer, model)

Data is provided using the WhichBrowser library: http://whichbrowser.net/

Weather data

(beta)

Push data about users’ current weather conditions into the dataLayer. This can be used to generate weather-related
audience/remarketing lists on ad platforms and allows for user segmentation in your web analytics solutions:

  • weather category (clouds, rain, snow, etc.)
  • weather description: more detailed data
  • temperature in Celsius or Fahrenheit
  • air pressure
  • wind speed and degrees

Weather data is queried from Open Weather Map. Depending on your websites traffic, additional fees may apply:
http://openweathermap.org/price

An (free) API key from OpenWeatherMap is required for this feature to work.

ipstack.com is used to determine the site visitor’s location. A (free) API key from IPStack.com is required for this feature to work:
https://ipstack.com/product

Media player events

(experimental)

Track users’ interaction with any embedded media:

  • YouTube
  • Vimeo
  • Soundcloud

DataLayer events can be chosen to fire upon media player load, media is being played, paused/stopped and optionally when
the user reaches 10, 20, 30, …, 90, 100% of the media duration.

Tracking is supported for embedded media using the built-in oEmbed feature of WordPress as well as most other media plugins
and copy/pasted codes. Players injected into the website after page load are not currently supported.

Scroll tracking

Fire tags based on how the visitor scrolls from the top to the bottom of a page.
An example would be to separate “readers” (who spend a specified amount of time on a page) from “scrollers”
(who only scroll through within seconds). You can use these events to fire Analytics tags and/or remarketing/conversion tags
(for micro conversions).

Scroll tracking is based on the solution originally created by

  • Nick Mihailovski
  • Thomas Baekdal
  • Avinash Kaushik
  • Joost de Valk
  • Eivind Savio
  • Justin Cutroni

Original script:
http://cutroni.com/blog/2012/02/21/advanced-content-tracking-with-google-analytics-part-1/

Blacklist & Whitelist Tag Manager tags, triggers and variables

To increase website security, you have the option to white- and blacklist tags/triggers/variables.
You can prevent specific tags from firing or the use of certain variable types regardless of your GTM setup.

If the Google account associated with your GTM account is being hacked, an attacker could easily
execute malware on your website without accessing its code on your hosting server. By blacklisting custom HTML tags
and/or custom JavaScript variables you can secure the Tag Manager container.

Integration

Google Tag Manager for WordPress integrates with several popular plugins. More integration to come!

  • Contact Form 7: fire an event when a Contact Form 7 form was submitted with any result (mail sent, mail failed, spam detected, invalid input)
  • WooCommerce:
    • Implementation of GA4 E-commerce
    • Does not support promotions since WooCommerce does not have such a feature (yet)
    • Does not support refunds
    • Compatibility with High Performance Order Storage (HPOS)
  • AMP: load your AMP container on the AMP version of your pages
  • Cookiebot: use automatic cookie blocking mode if needed
  • Google Consent Mode v2: fire the “default” command with specific consent flags to integrat with non-certified Consent Management Platforms (CMPs) and plugins.

Server side containers

If you are using a server side container
you can enter your custom domain name and custom path to load gtm.js from your there.

Exclude specific user roles from being tracked

You can set which user roles needs to be excluded from tracking when a user with that role visits the frontend. This will completely disable the container code for that user.

DomainExposuresHeadersLast Checked
e*k*h*g*r.com (WP 7.1) F Aug 30, 2026
k*b*o*l*y.sk (WP 7.0.4) F Aug 30, 2026
a*c*l*i*r.com F Aug 30, 2026
a*c*h*d*a*l*c*.com (WP 7.0.2) F Aug 30, 2026
t*b*h*m*d*c*.pl F Aug 30, 2026
t*b*h*m*d*c*.hk F Aug 30, 2026
t*a*i*l*i*.eu (WP 7.1) F Aug 30, 2026
m*r*t*o*d*b*s*a*s.com F Aug 30, 2026
m*r*t*o*p*o*s.com F Aug 30, 2026
m*r*t*o*o*i*e.com (WP 6.8.8) C Aug 30, 2026
m*r*t*o*n*x*g*n.com F Aug 30, 2026
m*r*t*o*k*d*.com D Aug 30, 2026
w*t*u*.it F Aug 30, 2026
s*n*l*g*s*i*s.com (WP 7.1) F Aug 30, 2026
s*n*c*.com F Aug 30, 2026
r*d*o*a*l*s*a*o.com (WP 6.6.7) F Aug 30, 2026
s*m*e*s*r*.c*.uk (WP 7.1) F Aug 30, 2026
b*s*e*l*e*t*e.com (WP 7.1) F Aug 30, 2026
m*r*t*o*-*a*-*r*v*n*e*v*r*e.com (WP 7.0.2) D Aug 30, 2026
m*t*o*e*h.vn (WP 6.8.3) F Aug 30, 2026
m*y*o*n*o*v*p.vn (WP 6.8.8) F Aug 30, 2026
l*c*t*o*p*o*u*s*o*.com (WP 5.9.4) F Aug 30, 2026
l*c*t*o*l*a*s*n.com (WP 6.2.11) F Aug 30, 2026
g*a*s*n.pl (WP 6.8.3) F Aug 30, 2026
a*l*h*n*s*o*e*l*f*i*g.com (WP 7.1) F Aug 30, 2026
w*u*d*i*h*c*a*t*r*.com F Aug 30, 2026
e*j*r*s.com D Aug 30, 2026
c*f*e*-*e*v*c*.pl (WP 6.8.3) F Aug 30, 2026
l*c*t*o*h*u*e*a*a*i*i*.com (WP 5.9.4) F Aug 30, 2026
k*n*a*o*s*l*s*o*a*e.c*.uk (WP 7.1) F Aug 30, 2026
y*u*p*b*i*i*y*o*s*l*.com F Aug 30, 2026
j*i*i*t*g*a*l*f*.com A Aug 30, 2026
h*p*e*k.lt F Aug 30, 2026
c*o*e*s*i*l*-*f.org F Aug 30, 2026
t*c*a*.com (WP 7.1) F Aug 30, 2026
a*l*h*n*s*a*k*d.com F Aug 30, 2026
s*p*i*.de D Aug 30, 2026
e*j*y*e*l*e*s*y*.com F Aug 30, 2026
t*a*e*r*d*e*-*o*s*.de (WP 6.9.7) F Aug 30, 2026
a*u*t*c*e*h*o*o*i*s.c*m.au F Aug 30, 2026
c*e*t*n*c*a*g*.n*t.au (WP 7.1) F Aug 30, 2026
t*a*r*n*v*t*e*e*p*r*.nl (WP 6.9.7) C Aug 30, 2026
o*l*n*t*a*w*n*e*.nl F Aug 30, 2026
t*a*o.ca F Aug 30, 2026
i*d.c*m.tr D Aug 30, 2026
p*s*i*n*a*u*e.fr F Aug 30, 2026
c*m*t*.com F Aug 30, 2026
b*s*1*.app (WP 7.0.4) C Aug 30, 2026
a*c*b*r*c*.com F Aug 30, 2026
o*l*t*k*e*k*r.no (WP 6.7.7) F Aug 30, 2026
c*m*l*a*.com (WP 7.1) F Aug 30, 2026
b*s*n*f*r*a*.com (WP 7.1) D Aug 30, 2026
b*s*n*m*r*e*h.com (WP 6.8.3) F Aug 30, 2026
l*s*s*e*s.pl (WP 7.0.4) F Aug 30, 2026
a*h*n*l*x*r*r*o*s.gr (WP 6.7.7) F Aug 30, 2026
r*d*o*a*n*.com (WP 5.8.15) F Aug 30, 2026
l*c*t*o*c*a*e*.com C Aug 30, 2026
l*c*t*o*c*t*.com (WP 7.0) C Aug 30, 2026
h*n*a*i*o*t*n*k*o*a*h*.com (WP 7.0.3) F Aug 30, 2026
h*n*a*i*k*o*a*h*.com (WP 7.0.3) F Aug 30, 2026
s*s*e*t*o.nl D Aug 30, 2026
j*i*g*.com (WP 7.1) F Aug 30, 2026
c*m*c*m*o*i*i*s.com F Aug 30, 2026
m*c*o*u*.com (WP 6.9.7) F Aug 30, 2026
s*n*u*a*i*a*g*.com D Aug 30, 2026
c*m*s*n*.com D Aug 30, 2026
r*d*o*o*i*-*e*u*.com (WP 5.4.1) F Aug 30, 2026
e*g*.pl F Aug 30, 2026
a*l*h*n*s*o*n*s*.com (WP 4.7.29) F Aug 30, 2026
w*r*-*k.com D Aug 30, 2026
t*a*i*i*g.es (WP 6.9.4) B Aug 30, 2026
y*u*p*c*e*s*i*i*g*n*t*u*t*r.com F Aug 30, 2026
a*c*y*l*x*a.com (WP 7.0.4) F Aug 30, 2026
j*i*f*u*d*r*.com (WP 7.1) F Aug 30, 2026
j*i*f*r*t*o*m*n*t*m*r*g*g*.com B Aug 30, 2026
e*j*y*o*e*r*.com D Aug 30, 2026
c*i*a*x*m*u*n*.vn C Aug 30, 2026
f*r*t*e*i*.c*.il F Aug 30, 2026
t*n*a*s*i*h*n*c*a*t*r*.com (WP 5.0.3) F Aug 30, 2026
w*r*h*w*l*n*s*c*n*e*.com F Aug 30, 2026
c*k*e*e*s*i*e*e.com (WP 6.6.7) F Aug 30, 2026
s*e*-*o*s.gr F Aug 30, 2026
c*e*s*b*u*g*g*e.fr (WP 7.1) B Aug 30, 2026
m*c*p.space (WP 7.1) B Aug 30, 2026
a*c*i*o*c*d*m*.com F Aug 30, 2026
g*r*e*-*a*e*.pl (WP 7.1) F Aug 30, 2026
m*r*n*o*g*n*y.com F Aug 30, 2026
l*c*t*o*-*-*a*s*s.com (WP 7.1) F Aug 30, 2026
a*c*e*f*t*o*.com (WP 6.9.7) F Aug 30, 2026
c*i*z*a*m*.com F Aug 30, 2026
b*s*i*l*h*h*p*d.com (WP 7.1) D Aug 30, 2026
b*s*i*l*h*a*d*.com (WP 7.1) F Aug 30, 2026
c*m*r*-*e*t.es D Aug 30, 2026
c*r*s*y*e*k*r.com (WP 7.1) F Aug 30, 2026
c*i*t*r*i*d*r*c*y.com F Aug 30, 2026
p*i*a*e*i*t*r*a*i*n*l.com F Aug 30, 2026
h*t*l*u*o*a.lt D Aug 30, 2026
j*i*e*.com (WP 6.9.7) C Aug 30, 2026
t*n*r*k*s*c*.com F Aug 30, 2026
s*n*l*q*e*n.com (WP 6.8.8) D Aug 30, 2026

Top 50 Plugins

Plugin Count
elementor 1,743,156
contact-form-7 1,731,455
elementor-pro 1,037,773
woocommerce 805,132
revslider 596,307
jetpack 447,863
js_composer 411,263
wp-rocket 331,515
essential-addons-for-elementor-lite 259,779
gravityforms 254,014
complianz-gdpr 253,282
google-site-kit 242,752
cookie-law-info 224,733
instagram-feed 221,255
sitepress-multilingual-cms 207,463
header-footer-elementor 202,300
google-analytics-for-wordpress 200,947
bluehost-wordpress-plugin 190,159
elementskit-lite 175,765
gutenberg 168,999
litespeed-cache 145,680
cookie-notice 145,651
gutenberg-core 143,513
gtranslate 121,755
the-events-calendar 121,165
wpforms-lite 119,878
astra-sites 109,898
popup-maker 107,612
woocommerce-payments 107,392
tablepress 101,679
honeypot 96,973
coblocks 96,677
astra-addon 91,999
duracelltomi-google-tag-manager 89,077
wp-smushit 88,944
layerslider 87,070
all-in-one-seo-pack 87,047
bb-plugin 85,130
akismet 83,509
ml-slider 82,351
premium-addons-for-elementor 81,712
cleantalk-spam-protect 80,832
mailchimp-for-wp 79,580
megamenu 79,131
ewww-image-optimizer 77,141
jet-engine 76,936
wp-pagenavi 76,809
fusion-builder 75,758
smart-slider-3 74,740
gravityformsrecaptcha 73,047

Top 50 Themes

Theme Count
hello-elementor 613,366
Divi 486,851
astra 406,190
flatsome 144,601
Avada 119,146
generatepress 112,937
pub 99,469
oceanwp 78,767
kadence 77,979
enfold 67,331
salient 63,893
twentyseventeen 53,428
twentytwentyfour 52,485
bb-theme 51,994
betheme 51,843
cocoon-master 50,294
blocksy 50,233
h4 49,952
twentytwentyfive 45,621
woodmart 44,803
dt-the7 44,758
neve 37,312
Avada-Child-Theme 36,550
gox 36,063
lightning 30,761
bridge 30,519
twentytwentyone 29,664
swell 29,254
twentytwenty 28,251
bricks 26,750
Impreza 25,686
Newspaper 23,797
twentytwentythree 21,617
epik-redesign 18,905
twentytwentytwo 18,396
uncode 18,101
twentysixteen 17,431
pro 17,387
storefront 15,937
sydney 15,854
Total 14,163
factory-templates-4 13,834
hello-theme-child-master 13,776
themify-ultra 12,800
hestia 12,376
yootheme 12,335
yith-wonder 11,798
porto 11,692
jupiter 11,680
extendable 11,634