Categories

  • Access & Security 95
  • Administration 171
  • Advertisement 92
  • Audio & Video 66
  • Author & Content 99
  • Comments 96
  • Communication 110
  • Communities & Forums 84
  • Development 47
  • E-Commerce 76
  • Email Management 53
  • Events & Calendars 80
  • Language 25
  • Map & Weather 44
  • Migration & Conversion 28
  • Miscellaneous 254
  • Mobile 15
  • Photos 143
  • Plugins 260
  • SEO & Site Speed 118
  • Social 186
  • Theme Enhancement 169



  • Add this plugin to a List

    You need to be logged in to add this plugin to your list.

    DuracellTomi's Google Tag Manager for WordPress

    Add to List

    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 them manually.
    Multiple containers are also supported, and each container can have its own environment parameters, custom domain and custom path.

    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 include more details about the data layer.

    PHP 8.0 and WordPress 6.3 are 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 <head> 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 <body> 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 snippet in the right place.
    Users of the Genesis theme, GeneratePress theme, Elementor, Oxygen Builder and Beaver Builder Theme will also have it placed correctly.
    To utilize this, set the compatibility mode in the plugin options to off.

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

    Basic data included

    • post/page titles
    • post/page dates
    • post/page category slugs
    • post/page tag slugs
    • 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 behavior in Google Analytics)
    • logged in user email address (both unhashed and SHA256 hashed values to be used with tracking)
    • logged in user creation date
    • site search data
    • site name and id (for WordPress multisite instances)
    • IP address of the visitor (please obtain the visitor’s explicit consent before using this)
    • post author data from PublishPress Authors, including co-authors and guest authors

    Content & engagement data

    Optional page variables that help with behavior tracking and Google Analytics 4 content grouping:

    • content word count and estimated reading time
    • last modified date and content age in days
    • comment count and comment status
    • page template, featured image presence, page hierarchy and sticky flag
    • primary category, detected from Yoast SEO or Rank Math
    • page language, detected from WPML or Polylang

    Browser / OS / Device data

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

    Data is collected in the browser using User-Agent Client Hints and pushed as a gtm4wp.deviceData event.
    Note that Safari and Firefox expose less detail than Chromium based browsers.

    Media player events

    Track users’ interactions with any embedded media:

    • YouTube
    • Vimeo
    • Soundcloud
    • HTML5 audio and video
    • Dailymotion
    • Mixcloud
    • Cloudflare Stream
    • Wistia
    • JW Player
    • VideoPress
    • Spotify
    • Twitch

    You can choose to fire data layer events when the media player loads, when the media is played, when it is paused or stopped,
    and optionally when the user reaches 10, 20, 30, …, 90, 100% of the media duration. Each event also populates Google Tag
    Manager’s built-in Video variables (Video Status, Video URL, Video Title, Video Provider, Video Duration, Video Current Time,
    Video Percent, Video Visible).

    Tracking is supported for embedded media using the built-in oEmbed feature of WordPress, as well as most other media plugins
    and copy/pasted embed codes. Players inserted into the page after it has loaded (for example in a popup, a lightbox or via
    AJAX) can also be tracked by turning on the optional “Track dynamically inserted players” setting.

    Tag restrictions: allowlist & blocklist Tag Manager tags, triggers and variables

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

    If the Google account associated with your GTM account is compromised, an attacker could easily
    execute malware on your website without accessing its code on your hosting server. By blocklisting custom HTML tags,
    custom JavaScript variables and sandboxed scripts (custom tag and variable templates), you can secure the Tag Manager container.

    Integration

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

    • Contact Form 7: fire an event when a form is submitted with any result (mail sent, mail failed, spam detected, invalid input, submission aborted or terms not accepted). Optionally push the Google Analytics 4 recommended form events (form_start, form_submit, generate_lead) as well
    • WooCommerce:
      • Implementation of GA4 E-commerce
      • Support for the Cart, Checkout, Mini-Cart, Product Collection and cross-sell blocks, not only the classic shortcode based pages
      • Enhanced Conversions user data on the purchase event for Google Ads
      • Compatibility with High Performance Order Storage (HPOS)
      • Does not support promotions, since WooCommerce does not have such a feature (yet)
      • Does not support refunds
    • CheckoutWC: optional support for its multi step checkout template
    • PublishPress Authors: co-author and guest author data in the page variables
    • AMP: load your AMP container on the AMP version of your pages
    • Google Consent Mode v2: fire the “default” command with specific consent flags to integrate with non-certified Consent Management Platforms (CMPs) and plugins
    • Cookiebot: use automatic cookie blocking mode if needed
    • Axeptio: load the Axeptio SDK and push every consent change into the data layer
    • CookieYes: push a data layer event whenever the visitor’s consent changes

    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 there. Both can be set per container, so you can mix
    server side and standard containers on the same site.

    Cache-safe data layer

    (experimental, off by default)

    On sites using a full page cache (LiteSpeed, WP Rocket, Varnish, Cloudflare APO), the HTML generated for one visitor is served
    to everyone else as well. Any visitor specific value written into the data layer would therefore leak to other visitors – the
    classic example being a page cached while an editor was logged in, then served to anonymous visitors with that editor’s email
    address and role still in the data layer.

    When this option is enabled, no visitor or session data is written into cacheable HTML at all. Those values are delivered in the
    browser instead, under the same data layer variable names, so your existing Google Tag Manager setup keeps working.

    Export & import your settings

    You can export all plugin settings into a JSON file and import them on another site, which makes it easy to roll out the same
    configuration across several websites. Imported files are treated as untrusted and every value is validated before it is stored.

    Exclude specific user roles from being tracked

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

    Staging and development sites

    The container can be limited to production environments only, so a cloned or staging copy of your site does not send data into
    your production Google Tag Manager container. This relies on the WP_ENVIRONMENT_TYPE setting of WordPress.

    For developers

    Version 2.0 is a complete object oriented rewrite. Every feature is a module, and third party plugins can register their own
    modules through the gtm4wp_register_modules action. All public template functions, filter and action names, wp-config constants
    and the option storage key of the 1.x versions are unchanged, so existing integrations keep working.

    Rate This Plugin

    Please Login to Rate this Plugin!

    Function

    Feature

    Support

    0 Votes
    Not Rated Yet

    Wordpress.org Stats

    Ratings4.5
    Votes154
    Downloads15,383,619
    Last Updated10 Days ago
    Published13 years ago

    Report Wrong Category!

    Do you think this Plugin belongs to another Category?

    What Category Should this Plugin belong to? *

    Reason *

    Create a Plugin List

    You need to be Logged in to Create a Plugin List.

    Submit A plugin

    You need to be logged in to submit a plugin.

    Help

    WPD is the unofficial online plugin directory of WordPress.

    An attempt has been made to list Only functional, active,efficient and up-to-date plugins.

    Categorized : Plugin are listed by category and subcategory based on functionality and uses. Here you can browse wordpress plugin from our neatly categorized plugin directory and sort the plugins by rating, votes, last updated and published and search plugins using tags.

    Search : Plugins can be searched by their functionality using multi-tag search and you can search plugins using their exact name although we are not ensuring Google like search accuracy.

    Create Plugin Lists : You will be able to create list of plugins and share them with Wordpress Community or you can keep them private and use them as a bookmarks.
    e.g. Plugins That I’ve Used on My Site, Best Event Management Plugins, Christmas Plugins etc.

    If you think certain awesome plugin is not in the directory then notify us through our Submit a Plugin page.

    Browsing the Plugin Directory

    Browse by Category

    In WPD, Plugins are categorized carefully. You can browse all the categories from the homepage or you can access the category lists from any page by clicking the button from the left of the website.


    Browse by Tags

    Each plugin listed in WPD is marked with useful tags. You can browse plugins by Tags from the All Tags page


    Searching in WPD

    Multi Tag Search

    You can search plugins using multiple tags. To perform a multi-tag search. Go to Homepage and then in the search field type any keywords or tags(comma separated) and then click on the search button. To search plugins from a selected category just select the category from the dropdown and type your tags.


    Searching a specific Plugin in WPD

    If you want to find a specific plugin in our directory, Go to Homepage and then select the "Search in Title" option. Then write the name of the plugin and click the search button to find the Plugin.


    Plugin Lists

    Whats a Plugin List

    Plugin Lists are user created lists of plugins. Any registered users can create Plugin Lists and share it with anyone or make it private.


    Why Create a plugin List?
    • Easy to keep track of your favourite and useful plugin.

    • Share list of plugins on blogs, social media or to a client.

    • Keep a track of what plugins you installed in which of your blogs by creating a list for each blog



    Creating a Plugin List

    To create a Plugin List, click the button from the left of the page; a popup box will appear. In the "List Name" field, put the name of the List. eg: Best Seo plugins for your site.
    In the Description field, put a few words describing the List.
    By default, lists are automatically published as public, which is visible to everyone. If you do not want others to see the List, select "Private" from the dropdown list. Then click the "Create List" button to create the list.


    Adding Plugins to your List

    To add a plugin to your List, go to a plugin page and click the "Add to List" button. A popup box will appear where you can select in which of your list you want to add this plugin. You can add a note if you want, this note will appear below the plugin in your list.
    P.S: You can only add plugins that are in our directory.

    Your Lists will appear in our "Plugin Lists" page when you set the list as "Public" and your list contains atleast 2 plugins.


    Editing your Lists

    When you are on your list page, notice there is a button on the top right corner of the page. Click it to edit the List Name and the List Description.


    Accessing All your Lists

    You can access all your Plugin lists by going to your profile and clicking the "Lists" tab.


    Removing your Lists

    You can remove your Plugin lists by going to your profile and clicking the "Lists" tab. on top right of each list click the button to remove the list completely.

    While tremendous effort has been put to keep this directory precise and complete, still errors and omissions are unavoidable and possible. We welcome any suggestions for corrections, deletions, and idea that might improve the overall experience.

    To submit a Feedback click the from the bottom right corner of the site.

    Brave Popup Builder
    Our Latest WordPress Plugin
    Create Awesome WordPress Popups with Intuitive visual Editor. Choose from hundreds of Presets. Create Beautiful Popups and convert more visitors to subscribers, clients and customers.
    This Popup was Built with this plugin.
    Marketing knowledge
    Upgrade your
    Leverage agile frameworks to provide a robust synopsis for high overviews.
    Register or log in to assess the record