{"id":197671,"date":"2024-08-16T16:21:29","date_gmt":"2024-08-16T16:21:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/eacsimplegtm\/"},"modified":"2025-07-21T22:27:58","modified_gmt":"2025-07-21T22:27:58","slug":"eacsimplegtm","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/eacsimplegtm\/","author":20183118,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.6","stable_tag":"1.0.6","tested":"6.8.5","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"{eac}SimpleGTM","header_author":"EarthAsylum Consulting","header_description":"{eac}SimpleGTM Adds Google Tag Manager (gtm) or Google Analytics (gtag) to WordPress","assets_banners_color":"b4c5a5","last_updated":"2025-07-21 22:27:58","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/github.com\/sponsors\/EarthAsylum","header_plugin_uri":"https:\/\/eacdoojigger.earthasylum.com\/eacsimplegtm\/","header_author_uri":"http:\/\/www.earthasylum.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1119,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.3":{"tag":"1.0.3","author":"kevinburkholder","date":"2024-09-07 10:46:06"},"1.0.4":{"tag":"1.0.4","author":"kevinburkholder","date":"2024-09-12 00:35:34"},"1.0.5":{"tag":"1.0.5","author":"kevinburkholder","date":"2024-11-12 03:24:03"},"1.0.6":{"tag":"1.0.6","author":"kevinburkholder","date":"2025-07-21 22:27:58"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3136727,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3136727,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":3136727,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3136727,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.3","1.0.4","1.0.5","1.0.6"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3136727,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3136727,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"<p>{eac}SimpleGTM Extension\n<\/p>","2":"<p>{eac}SimpleGTM Extension (advanced mode)\n<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[232,212626,1005,23294,550],"plugin_category":[36],"plugin_contributors":[211905],"plugin_business_model":[],"class_list":["post-197671","plugin","type-plugin","status-publish","hentry","plugin_tags-analytics","plugin_tags-eacdoojigger","plugin_tags-google-analytics","plugin_tags-google-tag-manager","plugin_tags-tracking","plugin_category-analytics","plugin_contributors-kevinburkholder","plugin_committers-kevinburkholder"],"banners":{"banner":"https:\/\/ps.w.org\/eacsimplegtm\/assets\/banner-772x250.jpg?rev=3136727","banner_2x":"https:\/\/ps.w.org\/eacsimplegtm\/assets\/banner-1544x500.jpg?rev=3136727","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/eacsimplegtm\/assets\/icon-128x128.png?rev=3136727","icon_2x":"https:\/\/ps.w.org\/eacsimplegtm\/assets\/icon-256x256.png?rev=3136727","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/eacsimplegtm\/assets\/screenshot-1.png?rev=3136727","caption":"<p>{eac}SimpleGTM Extension\n<\/p>"},{"src":"https:\/\/ps.w.org\/eacsimplegtm\/assets\/screenshot-2.png?rev=3136727","caption":"<p>{eac}SimpleGTM Extension (advanced mode)\n<\/p>"}],"raw_content":"<!--section=description-->\n<p><strong>{eac}Doojigger SimpleGTM<\/strong> is an <a href=\"https:\/\/eacDoojigger.earthasylum.com\/\">{eac}Doojigger<\/a> 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 <a href=\"https:\/\/woocommerce.com\/\">WooCommerce<\/a>, e-commerce actions.<\/p>\n\n<p><em>{eac}SimpleGTM<\/em> 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.<\/p>\n\n<h4>Default Consent (advanced)<\/h4>\n\n<p>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 <a href=\"https:\/\/support.google.com\/analytics\/answer\/12329599\">Introduction to user consent<\/a>. This is typically not necessary and not recommended when using a CMP.<\/p>\n\n<p>If no consent attributes are selected than the \"consent default\" configuration is not sent, otherwise, unselected attributes are set to \"denied\".<\/p>\n\n<p>Default consent settings passed when initializing GTM or GA4:<\/p>\n\n<pre><code>ad_storage  \nanalytics_storage   \nad_user_data    \nad_personalization  \nfunctionality_storage   \npersonalization_storage \nsecurity_storage    \n<\/code><\/pre>\n\n<h4>Consent Options (advanced)<\/h4>\n\n<ul>\n<li>URL passthrough<\/li>\n<\/ul>\n\n<p>When consent attributes <code>ad_storage<\/code> and\/or <code>analytics_storage<\/code> are set to <code>denied<\/code>, pass information about ad clicks or analytics through URL parameters.<\/p>\n\n<ul>\n<li>Allow Google Signals<\/li>\n<\/ul>\n\n<p>Allows session data that Google associates with users who have signed in to their Google accounts, and who have turned on Ads Personalization.<\/p>\n\n<ul>\n<li>Redact Ads Data<\/li>\n<\/ul>\n\n<p>When ads_data_redaction is true and <code>ad_storage<\/code> is <code>denied<\/code>, 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.<\/p>\n\n<h4>Send Event Tags<\/h4>\n\n<p>When to send events to the browser. <em>In Page Footer<\/em> sends events in the page footer as the page loads.\n<em>On Document Load<\/em> sends events as soon as the document is loaded but before the browser renders the page.\n<em>On Window Ready<\/em> waits for the page to be rendered (this may be helpful with late-loading CMP plugins).<\/p>\n\n<h4>Events To Track<\/h4>\n\n<p>Custom events are simple events with limited data that use Google's recommended names and attributes<\/p>\n\n<p>See Recommended events:\n<a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/ga4\/reference\/events?client_type=gtm\">Tag Manager<\/a>\n<a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/ga4\/reference\/events?client_type=gtag\">Google Tag<\/a><\/p>\n\n<ul>\n<li><p>Page Views<\/p>\n\n<ul>\n<li><code>page_view {page_title, page_location, page_referrer, user_agent, page_encoding, language}<\/code><\/li>\n<\/ul><\/li>\n<li><p>Site Search<\/p>\n\n<ul>\n<li><code>search {search_term}<\/code><\/li>\n<\/ul><\/li>\n<li><p>View Content (category, tag, term)<\/p>\n\n<ul>\n<li><code>select_content {content_type, content_id}<\/code><\/li>\n<\/ul><\/li>\n<li><p>View Archive (archive, author, date)<\/p>\n\n<ul>\n<li><code>select_content {content_type, content_id}<\/code><\/li>\n<\/ul><\/li>\n<li><p>E-Commerce<\/p>\n\n<ul>\n<li><code>view_item_list {item_list_id, item_list_name}<\/code><\/li>\n<li><code>view_item {currency, value, items}<\/code><\/li>\n<li><code>view_cart {currency, value, items}<\/code><\/li>\n<li><code>begin_checkout {currency, value, coupon, discount, items}<\/code><\/li>\n<li><code>purchase {transaction_id, currency, value, coupon, discount, shipping, tax, items}<\/code><\/li>\n<li><em>items = {item_id, item_name, price, discount, quantity, item_variant, item_category}<\/em><\/li>\n<\/ul><\/li>\n<li><p>Cart Actions<\/p>\n\n<ul>\n<li><code>select_promotion {promotion_id, promotion_name}<\/code><\/li>\n<li><code>add_to_cart {currency, value, items}<\/code><\/li>\n<li><code>remove_from_cart {currency, value, items}<\/code><\/li>\n<li><code>update_cart_item {currency, value, items}<\/code><\/li>\n<li><em>items = {item_id, item_name, price, discount, quantity, item_variant, item_category}<\/em><\/li>\n<\/ul><\/li>\n<li><p>Enhanced Conversions<\/p>\n\n<ul>\n<li><a href=\"https:\/\/support.google.com\/google-ads\/answer\/13258081\">Enhanced Conversions for web<\/a> 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.<\/li>\n<\/ul><\/li>\n<li><p>Page Not Found<\/p>\n\n<ul>\n<li><code>page_not_found {request_uri}<\/code><\/li>\n<\/ul><\/li>\n<\/ul>\n\n<blockquote>\n  <p>&#042; Session storage is used when cart actions are triggered. This requires enabling\/setting <em>{eac}Doojigger \u2192 Session Extension<\/em>.<\/p>\n  \n  <p>&#042; Page Views are typically included in your tag container, other tags &amp; triggers may need to be configured in \n  <a href=\"https:\/\/tagmanager.google.com\/\">Google Tag Manager<\/a>.<\/p>\n  \n  <p>&#042; If enabled, <a href=\"https:\/\/wordpress.org\/plugins\/wp-consent-api\/\">WP Consent API<\/a> may block events (when 'statistics-anonymous' consent is denied) and Enhanced Conversions (when 'statistics' consent is denied).<\/p>\n<\/blockquote>\n\n<h4>Actions and Filters<\/h4>\n\n<ul>\n<li><p>eacDoojigger_google_tag_event   - Action to add a custom event.<\/p>\n\n<ul>\n<li><code>do_action( 'eacDoojigger_google_tag_event( 'event_name', [...event parameters...] ) );<\/code><\/li>\n<\/ul><\/li>\n<li><p>eacDoojigger_google_tag_data    - Action to add data to the Google tag data layer.<\/p>\n\n<ul>\n<li><code>do_action( 'eacDoojigger_google_tag_data( 'data_name', [...data array...] ) );<\/code><\/li>\n<\/ul><\/li>\n<li><p>eacDoojigger_google_ecommerce_event - Action to add an ecommerce event.<\/p>\n\n<ul>\n<li><code>do_action( 'eacDoojigger_google_ecommerce_event( 'event_name', [...event parameters...] ) );<\/code><\/li>\n<\/ul><\/li>\n<li><p>eacDoojigger_google_tag_consent - Filter the consent array.<\/p>\n\n<ul>\n<li><code>add_filter( 'eacDoojigger_google_tag_consent', function($consent) {...} );<\/code><\/li>\n<li><code>$consent<\/code> is an array of <code>[ $option =&gt; 'granted|denied' ]<\/code><\/li>\n<\/ul><\/li>\n<li><p>eacDoojigger_google_tag_configuration - Filter the configuration array.<\/p>\n\n<ul>\n<li><code>add_filter( 'eacDoojigger_google_tag_configuration', function($config) {...} );<\/code><\/li>\n<li><code>$config<\/code> is an array of <code>[ $option =&gt; bool|null ]<\/code><\/li>\n<\/ul><\/li>\n<li><p>eacDoojigger_google_tag_events  - Filter the events array prior to output.<\/p>\n\n<ul>\n<li><code>add_filter( 'eacDoojigger_google_tag_events', function($events) {...} );<\/code><\/li>\n<li><code>$events<\/code> is an array of <code>[ $event =&gt; [$attributes] ]<\/code><\/li>\n<li><code>$event<\/code> is an array <code>[type,event_name]<\/code> where type is 'set', 'data', 'gtm', 'gtag', or 'ecommerce'.<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>3rd Party Service<\/h4>\n\n<p>By loading the Google Tag Manager (GTM) or Google Analytics (GA4) script, {eac}SimpleGTM causes data collected from your website <em>and from your users<\/em> to be transmitted to Google.<\/p>\n\n<ul>\n<li><a href=\"https:\/\/support.google.com\/analytics\/answer\/12159447?hl=en\">How Google Analytics works<\/a><\/li>\n<li><a href=\"https:\/\/support.google.com\/tagmanager\/answer\/6102821?hl=en\">Introduction to Google Tag Manager<\/a><\/li>\n<\/ul>\n\n<p><em>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.<\/em><\/p>\n\n<ul>\n<li><a href=\"https:\/\/support.google.com\/analytics\/answer\/12329599\">Introduction to user consent<\/a><\/li>\n<\/ul>\n\n<h4>Privacy Disclosures Policy<\/h4>\n\n<p>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.<\/p>\n\n<ul>\n<li><a href=\"https:\/\/www.google.com\/policies\/privacy\/partners\/\">Google's Privacy &amp; Terms<\/a><\/li>\n<li><a href=\"https:\/\/support.google.com\/analytics\/answer\/6004245\">Safeguarding your data<\/a><\/li>\n<\/ul>\n\n<h4>Additional Information<\/h4>\n\n<ul>\n<li><p>{eac}SimpleGTM is an extension plugin to and requires installation and registration of <a href=\"https:\/\/eacDoojigger.earthasylum.com\/\">{eac}Doojigger<\/a>.<\/p><\/li>\n<li><p>Visit the <a href=\"https:\/\/github.com\/EarthAsylum\">EarthAsylum GitHub Repository<\/a> or the <a href=\"https:\/\/eacdoojigger.earthasylum.com\/\">{eac}Doojigger Web Site<\/a> for all plugins, extensions, and documentation.<\/p><\/li>\n<\/ul>\n\n<h3>Copyright<\/h3>\n\n<h4>Copyright \u00a9 2025, EarthAsylum Consulting, distributed under the terms of the GNU GPL.<\/h4>\n\n<p>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.<\/p>\n\n<p>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.<\/p>\n\n<p>You should receive a copy of the GNU General Public License along with this program. If not, see <a href=\"https:\/\/www.gnu.org\/licenses\/\">https:\/\/www.gnu.org\/licenses\/<\/a>.<\/p>\n\n<!--section=installation-->\n<p><strong>{eac}SimpleGTM<\/strong> is an extension plugin to and requires installation and registration of <a href=\"https:\/\/eacDoojigger.earthasylum.com\/\">{eac}Doojigger<\/a>.<\/p>\n\n<h4>Automatic Plugin Installation<\/h4>\n\n<p>This plugin is available from the <a href=\"https:\/\/wordpress.org\/plugins\/search\/earthasylum\/\">WordPress Plugin Repository<\/a> and can be installed from the WordPress Dashboard \u00bb <em>Plugins<\/em> \u00bb <em>Add New<\/em> page. Search for 'EarthAsylum', click the plugin's [Install] button and, once installed, click [Activate].<\/p>\n\n<p>See <a href=\"https:\/\/wordpress.org\/support\/article\/managing-plugins\/#automatic-plugin-installation-1\">Managing Plugins -&gt; Automatic Plugin Installation<\/a><\/p>\n\n<h4>Upload via WordPress Dashboard<\/h4>\n\n<p>Installation of this plugin can be managed from the WordPress Dashboard \u00bb <em>Plugins<\/em> \u00bb <em>Add New<\/em> page. Click the [Upload Plugin] button, then select the eacsimplegtm.zip file from your computer.<\/p>\n\n<p>See <a href=\"https:\/\/wordpress.org\/support\/article\/managing-plugins\/#upload-via-wordpress-admin\">Managing Plugins -&gt; Upload via WordPress Admin<\/a><\/p>\n\n<h4>Manual Plugin Installation<\/h4>\n\n<p>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.<\/p>\n\n<p>See <a href=\"https:\/\/wordpress.org\/support\/article\/managing-plugins\/#manual-plugin-installation-1\">Managing Plugins -&gt; Manual Plugin Installation<\/a><\/p>\n\n<h4>Settings<\/h4>\n\n<p>Once installed and activated options for this extension will show in the 'Tracking' tab of {eac}Doojigger settings.<\/p>\n\n<!--section=changelog-->\n<h4>Version 1.0.6 \u2013 Apr 19, 2025<\/h4>\n\n<ul>\n<li>Compatible with WordPress 6.8.<\/li>\n<li>Prevent <code>_load_textdomain_just_in_time was called incorrectly<\/code> notice from WordPress.\n\n<ul>\n<li>All extensions - via eacDoojigger 3.1.<\/li>\n<li>Modified extension registration in constructor.<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>Version 1.0.5 \u2013 November 11, 2024<\/h4>\n\n<ul>\n<li>Apply <code>script_loader_src<\/code> and <code>script_loader_tag<\/code> filters when loading google script.<\/li>\n<li>Compatible with WordPress 6.7.<\/li>\n<\/ul>\n\n<h4>Version 1.0.4 \u2013 September 11, 2024<\/h4>\n\n<ul>\n<li>Support Google's enhanced conversions for web.\n\n<ul>\n<li>See : <a href=\"https:\/\/support.google.com\/google-ads\/answer\/13258081\">Enhanced Conversions<\/a><\/li>\n<\/ul><\/li>\n<li>Added <code>eacDoojigger_google_tag_data<\/code> action to add custom data array to the <code>dataLayer<\/code>.<\/li>\n<\/ul>\n\n<h4>Version 1.0.3 \u2013 August 17, 2024<\/h4>\n\n<ul>\n<li>Support WP Consent API.<\/li>\n<li>Only send boolean gtag options, checked = true, default is null.\n\n<ul>\n<li>url_passthrough, allow_google_signals, ads_data_redaction.<\/li>\n<li>External actors may set to false via filter.<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>Version 1.0.2 \u2013 July 26, 2024<\/h4>\n\n<ul>\n<li>Additional documentation re: 3rd Party &amp; Privacy.<\/li>\n<li>Compatible with WordPress 6.6.<\/li>\n<li>Safe\/escaped variable naming convention.<\/li>\n<\/ul>\n\n<h4>Version 1.0.1 \u2013 June 17, 2024<\/h4>\n\n<ul>\n<li>Added load option (inline\/dom ready\/window load).<\/li>\n<li>Use session instead of transient when storing events.<\/li>\n<\/ul>\n\n<h4>Version 1.0.0 \u2013 June 6, 2024<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"{eac}eacSimpleGTM installs and configures the Google Tag Manager (GTM) or Google Analytics (GA4) script with optional tracking events.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/197671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=197671"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kevinburkholder"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=197671"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=197671"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=197671"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=197671"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=197671"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=197671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}