Title: {eac}Doojigger Simple GTM Extension for WordPress
Author: Kevin Burkholder
Published: <strong>August 16, 2024</strong>
Last modified: July 21, 2025

---

Search plugins

![](https://ps.w.org/eacsimplegtm/assets/banner-772x250.jpg?rev=3136727)

![](https://ps.w.org/eacsimplegtm/assets/icon-256x256.png?rev=3136727)

# {eac}Doojigger Simple GTM Extension for WordPress

 By [Kevin Burkholder](https://profiles.wordpress.org/kevinburkholder/)

[Download](https://downloads.wordpress.org/plugin/eacsimplegtm.1.0.6.zip)

 * [Details](https://test.wordpress.org/plugins/eacsimplegtm/#description)
 * [Reviews](https://test.wordpress.org/plugins/eacsimplegtm/#reviews)
 *  [Installation](https://test.wordpress.org/plugins/eacsimplegtm/#installation)
 * [Development](https://test.wordpress.org/plugins/eacsimplegtm/#developers)

 [Support](https://wordpress.org/support/plugin/eacsimplegtm/)

## Description

**{eac}Doojigger SimpleGTM** is an [{eac}Doojigger](https://eacDoojigger.earthasylum.com/)
extension that installs the Google Tag Manager (GTM) or Google Analytics (GA4) script,
sets default consent options, and enables tracking of page views, site searches,
content views, and, when using [WooCommerce](https://woocommerce.com/), e-commerce
actions.

_{eac}SimpleGTM_ is a very light-weight and simple extension that uses PHP to add
small JavaScript snippets to your web pages for configuring and tracking with Google
Analytics. Many web site owners will find this more than sufficient over more complicated(
and over-bearing) alternatives.

#### Default Consent (advanced)

The selected consent attributes are set to ‘granted’ before other tags are loaded
or actions taken. This does not make your site GDPR/CCPA compliant and should not
be used in place of a Consent Management Platform (CMP). See Google’s [Introduction to user consent](https://support.google.com/analytics/answer/12329599).
This is typically not necessary and not recommended when using a CMP.

If no consent attributes are selected than the “consent default” configuration is
not sent, otherwise, unselected attributes are set to “denied”.

Default consent settings passed when initializing GTM or GA4:

    ```
    ad_storage  
    analytics_storage   
    ad_user_data    
    ad_personalization  
    functionality_storage   
    personalization_storage 
    security_storage    
    ```

#### Consent Options (advanced)

 * URL passthrough

When consent attributes `ad_storage` and/or `analytics_storage` are set to `denied`,
pass information about ad clicks or analytics through URL parameters.

 * Allow Google Signals

Allows session data that Google associates with users who have signed in to their
Google accounts, and who have turned on Ads Personalization.

 * Redact Ads Data

When ads_data_redaction is true and `ad_storage` is `denied`, ad click identifiers
sent in network requests by Google Ads and Floodlight tags will be redacted. Network
requests will also be sent through a cookieless domain.

#### Send Event Tags

When to send events to the browser. _In Page Footer_ sends events in the page footer
as the page loads.
 _On Document Load_ sends events as soon as the document is loaded
but before the browser renders the page. _On Window Ready_ waits for the page to
be rendered (this may be helpful with late-loading CMP plugins).

#### Events To Track

Custom events are simple events with limited data that use Google’s recommended 
names and attributes

See Recommended events:
 [Tag Manager](https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtm)
[Google Tag](https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag)

 * Page Views
    - `page_view {page_title, page_location, page_referrer, user_agent, page_encoding,
      language}`
 * Site Search
    - `search {search_term}`
 * View Content (category, tag, term)
    - `select_content {content_type, content_id}`
 * View Archive (archive, author, date)
    - `select_content {content_type, content_id}`
 * E-Commerce
    - `view_item_list {item_list_id, item_list_name}`
    - `view_item {currency, value, items}`
    - `view_cart {currency, value, items}`
    - `begin_checkout {currency, value, coupon, discount, items}`
    - `purchase {transaction_id, currency, value, coupon, discount, shipping, tax,
      items}`
    - _items = {item\_id, item\_name, price, discount, quantity, item\_variant, 
      item\_category}_
 * Cart Actions
    - `select_promotion {promotion_id, promotion_name}`
    - `add_to_cart {currency, value, items}`
    - `remove_from_cart {currency, value, items}`
    - `update_cart_item {currency, value, items}`
    - _items = {item\_id, item\_name, price, discount, quantity, item\_variant, 
      item\_category}_
 * Enhanced Conversions
    - [Enhanced Conversions for web](https://support.google.com/google-ads/answer/13258081)
      is a feature that can improve the accuracy of your conversion measurement.
      It supplements your existing conversion tags by sending hashed first-party
      conversion data from your website in a privacy safe way.
 * Page Not Found
    - `page_not_found {request_uri}`

> * Session storage is used when cart actions are triggered. This requires enabling/
> setting _{eac}Doojigger  Session Extension_.
> * Page Views are typically included in your tag container, other tags & triggers
> may need to be configured in
>  [Google Tag Manager](https://tagmanager.google.com/).
> * If enabled, [WP Consent API](https://wordpress.org/plugins/wp-consent-api/) 
> may block events (when ‘statistics-anonymous’ consent is denied) and Enhanced 
> Conversions (when ‘statistics’ consent is denied).

#### Actions and Filters

 * eacDoojigger_google_tag_event – Action to add a custom event.
    - `do_action( 'eacDoojigger_google_tag_event( 'event_name', [...event parameters...]));`
 * eacDoojigger_google_tag_data – Action to add data to the Google tag data layer.
    - `do_action( 'eacDoojigger_google_tag_data( 'data_name', [...data array...]));`
 * eacDoojigger_google_ecommerce_event – Action to add an ecommerce event.
    - `do_action( 'eacDoojigger_google_ecommerce_event( 'event_name', [...event 
      parameters...] ) );`
 * eacDoojigger_google_tag_consent – Filter the consent array.
    - `add_filter( 'eacDoojigger_google_tag_consent', function($consent) {...} );`
    - `$consent` is an array of `[ $option => 'granted|denied' ]`
 * eacDoojigger_google_tag_configuration – Filter the configuration array.
    - `add_filter( 'eacDoojigger_google_tag_configuration', function($config) {...});`
    - `$config` is an array of `[ $option => bool|null ]`
 * eacDoojigger_google_tag_events – Filter the events array prior to output.
    - `add_filter( 'eacDoojigger_google_tag_events', function($events) {...} );`
    - `$events` is an array of `[ $event => [$attributes] ]`
    - `$event` is an array `[type,event_name]` where type is ‘set’, ‘data’, ‘gtm’,‘
      gtag’, or ‘ecommerce’.

#### 3rd Party Service

By loading the Google Tag Manager (GTM) or Google Analytics (GA4) script, {eac}SimpleGTM
causes data collected from your website _and from your users_ to be transmitted 
to Google.

 * [How Google Analytics works](https://support.google.com/analytics/answer/12159447?hl=en)
 * [Introduction to Google Tag Manager](https://support.google.com/tagmanager/answer/6102821?hl=en)

_You are responsible for the proper configuration of your Google Analytics property
and/or Google Tag Manager settings as well as proper notification and consent from
your users._

 * [Introduction to user consent](https://support.google.com/analytics/answer/12329599)

#### Privacy Disclosures Policy

When you use Google Analytics on your site or application, you must disclose the
use of Google Analytics and how it collects and processes data.

 * [Google’s Privacy & Terms](https://www.google.com/policies/privacy/partners/)
 * [Safeguarding your data](https://support.google.com/analytics/answer/6004245)

#### Additional Information

 * {eac}SimpleGTM is an extension plugin to and requires installation and registration
   of [{eac}Doojigger](https://eacDoojigger.earthasylum.com/).
 * Visit the [EarthAsylum GitHub Repository](https://github.com/EarthAsylum) or 
   the [{eac}Doojigger Web Site](https://eacdoojigger.earthasylum.com/) for all 
   plugins, extensions, and documentation.

### Copyright

#### Copyright © 2025, EarthAsylum Consulting, distributed under the terms of the GNU GPL.

This program is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY 
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should receive a copy of the GNU General Public License along with this program.
If not, see [https://www.gnu.org/licenses/](https://www.gnu.org/licenses/).

## Screenshots

 * [[
 * {eac}SimpleGTM Extension
 * [[
 * {eac}SimpleGTM Extension (advanced mode)

## Installation

**{eac}SimpleGTM** is an extension plugin to and requires installation and registration
of [{eac}Doojigger](https://eacDoojigger.earthasylum.com/).

#### Automatic Plugin Installation

This plugin is available from the [WordPress Plugin Repository](https://wordpress.org/plugins/search/earthasylum/)
and can be installed from the WordPress Dashboard » _Plugins_ » _Add New_ page. 
Search for ‘EarthAsylum’, click the plugin’s [Install] button and, once installed,
click [Activate].

See [Managing Plugins -> Automatic Plugin Installation](https://wordpress.org/support/article/managing-plugins/#automatic-plugin-installation-1)

#### Upload via WordPress Dashboard

Installation of this plugin can be managed from the WordPress Dashboard » _Plugins_»
_Add New_ page. Click the [Upload Plugin] button, then select the eacsimplegtm.zip
file from your computer.

See [Managing Plugins -> Upload via WordPress Admin](https://wordpress.org/support/article/managing-plugins/#upload-via-wordpress-admin)

#### Manual Plugin Installation

You can install the plugin manually by extracting the eacsimplegtm.zip file and 
uploading the ‘eacsimplegtm’ folder to the ‘wp-content/plugins’ folder on your WordPress
server.

See [Managing Plugins -> Manual Plugin Installation](https://wordpress.org/support/article/managing-plugins/#manual-plugin-installation-1)

#### Settings

Once installed and activated options for this extension will show in the ‘Tracking’
tab of {eac}Doojigger settings.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“{eac}Doojigger Simple GTM Extension for WordPress” is open source software. The
following people have contributed to this plugin.

Contributors

 *   [ Kevin Burkholder ](https://profiles.wordpress.org/kevinburkholder/)

[Translate “{eac}Doojigger Simple GTM Extension for WordPress” into your language.](https://translate.wordpress.org/projects/wp-plugins/eacsimplegtm)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/eacsimplegtm/), check
out the [SVN repository](https://plugins.svn.wordpress.org/eacsimplegtm/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/eacsimplegtm/) by
[RSS](https://plugins.trac.wordpress.org/log/eacsimplegtm/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### Version 1.0.6 – Apr 19, 2025

 * Compatible with WordPress 6.8.
 * Prevent `_load_textdomain_just_in_time was called incorrectly` notice from WordPress.
    - All extensions – via eacDoojigger 3.1.
    - Modified extension registration in constructor.

#### Version 1.0.5 – November 11, 2024

 * Apply `script_loader_src` and `script_loader_tag` filters when loading google
   script.
 * Compatible with WordPress 6.7.

#### Version 1.0.4 – September 11, 2024

 * Support Google’s enhanced conversions for web.
    - See : [Enhanced Conversions](https://support.google.com/google-ads/answer/13258081)
 * Added `eacDoojigger_google_tag_data` action to add custom data array to the `
   dataLayer`.

#### Version 1.0.3 – August 17, 2024

 * Support WP Consent API.
 * Only send boolean gtag options, checked = true, default is null.
    - url_passthrough, allow_google_signals, ads_data_redaction.
    - External actors may set to false via filter.

#### Version 1.0.2 – July 26, 2024

 * Additional documentation re: 3rd Party & Privacy.
 * Compatible with WordPress 6.6.
 * Safe/escaped variable naming convention.

#### Version 1.0.1 – June 17, 2024

 * Added load option (inline/dom ready/window load).
 * Use session instead of transient when storing events.

#### Version 1.0.0 – June 6, 2024

 * Initial release.

## Meta

 *  Version **1.0.6**
 *  Last updated **9 months ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/eacsimplegtm/)
 * Tags
 * [analytics](https://test.wordpress.org/plugins/tags/analytics/)[eacDoojigger](https://test.wordpress.org/plugins/tags/eacdoojigger/)
   [google analytics](https://test.wordpress.org/plugins/tags/google-analytics/)
   [google tag manager](https://test.wordpress.org/plugins/tags/google-tag-manager/)
   [tracking](https://test.wordpress.org/plugins/tags/tracking/)
 *  [Advanced View](https://test.wordpress.org/plugins/eacsimplegtm/advanced/)

## Ratings

No reviews have been submitted yet.

[Add my review](https://wordpress.org/support/plugin/eacsimplegtm/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/eacsimplegtm/reviews/)

## Contributors

 *   [ Kevin Burkholder ](https://profiles.wordpress.org/kevinburkholder/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/eacsimplegtm/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://github.com/sponsors/EarthAsylum)