內容簡介
總結:Lean GA4 Tracker是一個輕量、開發者友好的WordPress外掛程式,可將Google Analytics 4(GA4)追蹤整合進WordPress中。設計考量效能和簡單性,使您可以實施先進的GA4追蹤,同時避免較大型的分析外掛所帶來的累贅。
問題與答案:
<ul>
<li>Lean GA4 Tracker的設計目標是什麼?</li>
答:設計為輕量和簡單性,以協助您在WordPress中實施先進的GA4追蹤,避免其他較大型分析外掛帶來的累贅。
<li>這個外掛支援哪些功能?</li>
答:支持手動GA4 API訪問令牌、基於標籤的設置UI以及可選的Google Tag Manager(GTM)容器注入等功能。
<li>如何實現與GA4的簡單整合?</li>
答:通過您的測量ID簡單整合GA4。
<li>Lean GA4 Tracker提供哪些設置選項?</li>
答:包括選項Google Tag Manager(GTM)容器注入、通過JSON輸入進行自定義GA4事件追蹤、潔淨的分頁設置介面等。
<li>這個外掛是否對隱私非常關注?</li>
答:是的,它還提供可選的集成同意模式和餅乾橫幅外掛(如Complianz、CookieYes)。
</ul>
外掛標籤
開發者團隊
② 後台搜尋「Lean GA4 Tracker – GA4 and WooCommerce Event Tracking」→ 直接安裝(推薦)
原文外掛簡介
Lean GA4 Tracker adds the Google Analytics 4 tag (gtag.js) to your site from a settings page, and sends WooCommerce shopping events to GA4 for stores that use the classic cart and checkout pages. It has no reporting screens that you need: you read your data in Google Analytics.
What it does
Adds gtag.js with your GA4 Measurement ID (G-XXXXXXXXXX).
WooCommerce events on the classic shop, product, cart and checkout pages: view_item, view_item_list, select_item, view_cart, begin_checkout, add_shipping_info, add_payment_info and purchase, with product category and brand.
Optional Google Consent Mode defaults. Consent Mode is off until you turn it on in the Privacy tab.
Exclude user roles from tracking in the Tag Manager tab.
Your own custom GA4 events, entered as a JSON array in the Events tab. Each one fires on every page view.
Multisite: network-wide settings with optional enforcement.
Limits you should know about
WooCommerce Cart and Checkout blocks are not tracked. Events use the classic page hooks.
Add-to-cart and remove-from-cart events can be missed on some themes. Check them in GA4 DebugView before you rely on them.
The plugin does not track form submissions.
Consent Mode here is not a complete consent solution. Use it only together with a consent banner you have tested, and check that it meets your legal obligations.
Privacy. Once you save a Measurement ID, every visitor’s browser loads Google’s gtag.js and sends data to Google Analytics, including the visitor’s IP address and cookie identifiers. When WooCommerce tracking is enabled, product and order information is sent to GA4 (such as product name, category, brand, price and quantity). Customer names and email addresses are not sent. Mention Google Analytics in your privacy policy, and review your GA4 settings against your local privacy laws (such as GDPR and CCPA).
Resources
Documentation
Plugin Landing Page
External services
When you enter a Measurement ID, this plugin loads Google’s tracking code in your visitors’ browsers.
Google Analytics (gtag.js) – https://www.googletagmanager.com/gtag/js. Loaded on every page for every visitor once a Measurement ID is saved. Google receives the visitor’s IP address, browser details, page URL and cookie identifiers, plus the WooCommerce and custom events described above.
Terms: https://marketingplatform.google.com/about/analytics/terms/us/ – Privacy policy: https://policies.google.com/privacy
Google Tag Manager – https://www.googletagmanager.com/gtm.js and https://www.googletagmanager.com/ns.html. Loaded only if you enter a Tag Manager container ID.
Terms: https://marketingplatform.google.com/about/analytics/tag-manager/use-policy/ – Privacy policy: https://policies.google.com/privacy
Google Analytics Admin and Data APIs – https://analyticsadmin.googleapis.com and https://analyticsdata.googleapis.com. Called from your server, in the admin only, if you enter a GA4 Property ID and an access token for the plugin’s dashboard report. Your token is sent to Google.
Terms: https://developers.google.com/terms – Privacy policy: https://policies.google.com/privacy
jsDelivr – https://cdn.jsdelivr.net. Serves the Chart.js library on the plugin’s admin dashboard page only. Your browser requests it when you open that page.
Terms: https://www.jsdelivr.com/terms – Privacy policy: https://www.jsdelivr.com/terms/privacy-policy-jsdelivr-net
