| 开发者 | userelements |
|---|---|
| 更新时间 | 2026年6月7日 11:33 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 6.8 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
session_id, event_id, and consent-aware server sendsview_item_list through purchase and refund)items[] parameters on cart and checkout eventsview_item_list — Shop, category, and tag archives (item_list_id / item_list_name)view_item — Product pages and variable-product variant changesselect_item — Product clicks from classic shop grids (list context persists through the funnel)view_search_results — On-site product search terms (Extra GA4 events)view_promotion — On-sale products and WooCommerce store noticesadd_to_cart — AJAX, form submit, and WooCommerce Blocks cart (full item payloads)remove_from_cart — Cart page, mini-cart, and Blocks cartview_cart — Cart page and Blocks cartbegin_checkout — Classic and Blocks checkoutadd_shipping_info — Shipping method selectedadd_payment_info — Payment method selectedpurchase — Thank-you page with transaction_id, revenue, tax, shipping, coupons, payment method, new vs returning customer, and event_id for deduplicationpayment_failure — Checkout validation and payment errors (always tracked; classic + Blocks)coupon_applied / coupon_removed — Coupon usageselect_promotion — Coupon codes applied at checkoutrefund — When a refund is processed in WooCommerce (browser + server)login / sign_up — Optional (enable Extra GA4 events)exception — 404 pages (optional)subscription_started, subscription_cancelled, subscription_expiredpurchase via Measurement Protocolcart_time_spent — Seconds on cart/checkout before leavingdiscount amount on discounted productsitem_list_id and item_list_name carried from list views through add-to-cart and purchaseitem_id (setting)purchase and refund from your server using the GA4 Measurement Protocol.
client_id and session_id on the order at checkoutevent_id on server hits to deduplicate with browser purchase eventsconversion on purchase with your AW- account ID and conversion labelgclid / fbclid saved to order meta + Traffic Source admin columnG- and GT- Measurement IDsselect_item list attribution on Block Product Collection grids is not yet supported (classic shop grids are supported)add_to_wishlist or deep promotion CMS integration unless store-specificG-XXXXXXXXXX or GT-XXXXXXXXXX)Yes. That is the default path. Enter your GA4 Measurement ID and events fire via gtag.js. GTM is optional for stores that already use it.
Common causes: ad blockers, consent denied, or comparing GA4 Realtime to orders still processing. Enable the GA4 API Secret for Measurement Protocol backup and set Purchase trigger to match when you consider an order final. Browser and server events share the same event_id so GA4 deduplicates instead of double-counting.
Yes. Cart and checkout blocks are supported through the WooCommerce Store API and dedicated Blocks JavaScript. view_cart, begin_checkout, cart changes, coupons, shipping, payment, and checkout errors are tracked on block-based stores. WooCommerce Blocks' built-in Google Analytics script is dequeued to prevent duplicate events.
Browser and server purchase events share the same event_id (giawc_purchase_{order_number}). GA4 deduplicates matching event IDs from the same client.
The plugin implements Google Consent Mode V2, defaults consent to denied, integrates with popular CMPs, and can apply geo-based consent defaults. You are responsible for your store's legal compliance and privacy policy.
Yes. Subscription lifecycle events fire in the browser; renewal payments without a session are sent as purchase via Measurement Protocol.
The Products tab compares locally counted product page views with WooCommerce order line items — useful for spotting products with high views but low conversion. View counts do not require Google API access.
Yes. Change Product identifier in settings to SKU. List attribution still works via internal product ID mapping.
No. GIA GA4 focuses on accurate GA4 ecommerce measurement. Use GA4, Google Ads, or dedicated finance tools for profitability and attribution analysis.
session_id, event_id, and engagement_time_msec on purchase/refunditem_list_id / item_list_name persist from select_item through cart and purchase eventsitems[] payloads on add-to-cart and remove-from-cart (classic + Blocks)discount on GA4 line items when products are on saleview_promotion for on-sale products and store noticespayment_failure documented as always-on (not behind Extra GA4 events)add_shipping_info and add_payment_info used non-existent store APIs (corrected against WooCommerce core)data-ga4-item attributewc_esc_json() for safe encodingGT-) in addition to G- IDswp_add_inline_script)giawc_ throughout