前言介紹
- 這款 WordPress 外掛「{eac}Doojigger Simple GTM Extension for WordPress」是 2024-08-15 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2025-04-23,距離現在已有 11 天。
- 外掛最低要求 WordPress 5.8 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
tracking | analytics | eacDoojigger | google analytics | google tag manager |
內容簡介
總結:Doojigger SimpleGTM 是一個外掛,可安裝 Google Tag Manager (GTM) 或 Google Analytics (GA4) 腳本,設置預設同意選項,並追蹤頁面瀏覽、網站搜尋、內容查看,以及在使用 WooCommerce 時的電子商務行為。這是一個輕量且簡單的擴充,使用 PHP 在網頁上添加小型 JavaScript 代碼進行配置和 Google Analytics 追蹤。
問題與答案:
1. Doojigger SimpleGTM 是用來做什麼的?
- 答:它是一個外掛,可安裝 Google Tag Manager (GTM) 或 Google Analytics (GA4) 腳本,設置預設同意選項,並追蹤頁面瀏覽、網站搜尋、內容查看,以及在使用 WooCommerce 時的電子商務行為。
2. 在啟動 GTM 或 GA4 時,哪些是預設的同意設置?
- 答:ad_storage、analytics_storage、ad_user_data、ad_personalization、functionality_storage、personalization_storage、security_storage。
3. 什麼是「URL passthrough」?
- 答:當同意屬性 ad_storage 和/或 analytics_storage 被設為拒絕時,將透過 URL 參數傳遞有關廣告點擊或分析的信息。
4. 當 ads_data_redaction 為真且 ad_storage 被拒絕時,會發生什麼情況?
- 答:Google Ads 和 Floodlight 標籤發送的廣告點擊識別符將被遮蔽,並且網絡請求也將通過無 cookie 的域名發送。
原文外掛簡介
{eac}Doojigger SimpleGTM is an {eac}Doojigger 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, 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. 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
Google Tag
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 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.
* If enabled, 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
Introduction to Google Tag Manager
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
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
Safeguarding your data
Additional Information
{eac}SimpleGTM is an extension plugin to and requires installation and registration of {eac}Doojigger.
Visit the EarthAsylum GitHub Repository or the {eac}Doojigger Web Site 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/.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「{eac}Doojigger Simple GTM Extension for WordPress」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | trunk |
延伸相關外掛(你可能也想知道)
{eac}Doojigger MetaPixel Extension for WordPress 》{eac}MetaPixel 是一個 {eac}Doojigger 擴充功能,安裝 Facebook/Meta Pixel 並在使用 WooCommerce 時啟用 PageView、Search、ViewContent、AddToCart、Initi...。
{eac}Doojigger Simple SMTP Extension for WordPress 》{eac}SimpleSMTP 是一個 {eac}Doojigger 擴充功能,可為 WordPress 添加 SMTP 伺服器設定,使從 WordPress 網站發出的所有電子郵件都通過您的 SMTP 郵件伺服...。
{eac}Doojigger Readme Extension for WordPress 》ault translation table, # Default translation table, authentication_required=Authentication Required, changelog=Changelog, configuration=Configurat...。