الوصف
WooCommerce knows your orders. GA4 often does not.
You install Google Analytics, paste a code, and wait. Page views show up, but you still cannot answer simple questions:
- Which products do people actually look at?
- How many add to cart but never buy?
- Where do shoppers drop off — the cart or checkout?
- Why does GA4 revenue not match WooCommerce orders?
Most GA plugins only put Google Analytics on your site. They count visits. They do not track the shopping journey WooCommerce needs.
GIA GA4 is different. It is built only for WooCommerce stores. It tells Google Analytics 4 what shoppers do — from browsing products to completing (or failing) checkout — and backs up purchases from your server when ad blockers or cookie banners get in the way.
Paste your Measurement ID. No Google Tag Manager. No developer required.
What you will see in GA4
GIA GA4 sends the steps shoppers take so you can build funnels and reports in Google Analytics:
Browsing
* When someone views a shop, category, or search results
* Which products appear in a list and get attention
* When someone opens a product page (including size/color changes on variable products)
* When someone clicks a product from a grid or collection
Cart
* When a product is added to cart
* When something is removed from cart or mini-cart
* When someone views the cart page
Checkout
* When checkout starts
* When a shipping method is chosen
* When a payment method is chosen
* When a coupon is applied or removed
* When checkout fails (card declined, validation error, payment error)
Purchase & after
* When an order is completed — with order total, tax, shipping, coupons, and line items
* When a refund is processed
* Optional: sign-up, login, subscription events (if you enable them)
You see how many people took each step and which products were involved — not just a final order count in WooCommerce.
GA4 ecommerce events
Discovery: view_item_list, view_item, select_item, view_search_results, view_promotion
Cart: add_to_cart, remove_from_cart, view_cart
Checkout: begin_checkout, add_shipping_info, add_payment_info, purchase, payment_failure, coupons, shipping & payment steps
After sale: refund (browser + server)
Optional: login, sign_up, exception, subscription lifecycle (with WooCommerce Subscriptions)
Core funnel events can be turned on or off in Settings Events. Checkout errors, coupons, shipping, and payment events always fire.
What this means for your store
- Find drop-off points — Lots of product views but few purchases? Problem may be the product page or price. Lots of carts but few checkouts? Problem may be shipping or trust at cart.
- Trust your sales data in GA4 — Purchases are tracked in the browser and backed up from your server so fewer orders go missing.
- No double counting — When both paths work, GA4 receives one purchase per order, not two.
- Works with modern WooCommerce — Classic themes and block-based cart and checkout.
- Privacy-friendly setup — Consent Mode for EU/UK shops, works with Cookiebot, CookieYes, Complianz, and other cookie tools.
- Quick setup — Setup wizard, test tools, and warnings if another plugin might track the same thing twice.
How is this different from a normal GA plugin?
A normal GA plugin (Site Kit, Meow Analytics, “insert header code” plugins):
* Puts Google Analytics on your website
* Counts page views and sessions
* Sometimes shows a traffic chart in WordPress
* Does not track add to cart, checkout steps, or full purchase details for WooCommerce
GIA GA4:
* Tracks the full shopping path in GA4
* Sends product details with each step (name, category, brand, SKU, sale price, and more)
* Works with WooCommerce Blocks cart and checkout
* Backs up purchases from the server when the browser cannot send them
* Handles consent and GDPR-style rules out of the box
* Includes a simple dashboard for setup, shop health, and view-to-purchase — GA4 remains where you do deep analysis
Compared to basic “GA for WooCommerce” plugins that often only track purchase (sometimes add to cart), GIA GA4 covers the whole funnel and focuses on accurate numbers, not just flipping a tracking switch.
Compared to Google Tag Manager, you do not need to build tags, triggers, and containers. GIA GA4 is ready-made wiring from WooCommerce to GA4.
Who should use this
Good fit:
* WooCommerce store owners who want clear funnel data in GA4
* Shops where GA4 shows fewer sales than WooCommerce
* Stores in Europe or the UK that need proper consent handling
* Stores using block checkout or product grids
* Stores that also want Google Ads purchase tracking (optional)
Not the right fit:
* You only want a simple visitor counter on a blog (use a lightweight GA plugin)
* You already have a custom Tag Manager setup you are happy with
* You want profit margins, ad spend, or Meta/TikTok pixels inside this plugin
What is included
Easy setup
* Enter your GA4 Measurement ID
* Optional API secret so purchases can be sent from the server too
* Setup wizard and a tool to verify tracking is working
* Can import settings from GTM4WP, Google Analytics for WooCommerce, or GTM Kit
* Optional Google Ads conversion tracking
* Optional extra Measurement IDs (for agencies or test properties)
Product data sent to GA4
* Categories, brand, barcode (GTIN), variant, image, stock status
* Sale discounts
* Product ID or SKU (your choice)
* Which list or category the shopper came from
Reliability & control
* Server backup for purchases and refunds
* Safe thank-you page tracking even when the page is cached
* Pause browser tracking for testing (server backup can still run)
* Exclude staff, certain user roles, specific pages, or page-builder previews
* Per-page “do not track” option
Dashboard in WordPress (GIA GA4 Analytics)
* Overview — setup help and weekly shop summary
* Traffic — GA4 sessions and channels (with Site Kit, optional)
* Products — which products get views vs which actually sell
* Customers — top customers by spend
* Settings — connection, privacy, events, advanced options
What this plugin does not do
To stay focused and fast, GIA GA4 does not include:
* Profit or cost-of-goods reporting
* Facebook, TikTok, or other ad platform pixels
* Full marketing attribution inside WordPress
* A replacement for the GA4 website — use GA4 for deep reports
Privacy
Tracking respects consent settings. Data defaults to “denied” until the shopper agrees (configurable). Customer data used for enhanced conversions is hashed before it is sent and is not stored by this plugin. You are responsible for your store’s privacy policy and legal compliance.
External Services
This plugin connects to external services to provide analytics functionality. By using this plugin, you agree to the terms and privacy policies of these services.
1. Google Analytics 4 (required for tracking)
- Purpose: Records ecommerce events, sessions, and conversions
- Data sent: Page views, ecommerce events, hashed customer data (if Enhanced Conversions enabled), client/session identifiers
- Domains:
www.googletagmanager.com,www.google-analytics.com,region1.google-analytics.com - Terms: Google Analytics Terms
- Privacy: Google Privacy Policy
2. GA4 Measurement Protocol (recommended)
- Purpose: Server-side purchase and refund delivery when browser tracking is blocked
- Data sent: Order value, line items, transaction ID, client ID, session ID, event ID
- Endpoint:
https://www.google-analytics.com/mp/collect - Terms/Privacy: Same as Google Analytics above
3. Google Ads (optional)
- Purpose: Purchase conversion signals for Smart Bidding
- Data sent: Conversion value, transaction ID, hashed customer data (if enabled)
- Domains:
www.googletagmanager.com - Terms: Google Ads Terms
- Privacy: Google Privacy Policy
4. Google Tag Manager (optional)
- Purpose: Tag deployment when you manage GA4 through GTM
- Domain:
www.googletagmanager.com - Only loaded when a GTM container ID is configured
5. Google Site Kit (optional — dashboard only)
- Purpose: Display GA4 traffic reports inside the GIA GA4 dashboard
- Only used when Site Kit is installed and Analytics is connected
- Plugin: Google Site Kit
لقطات الشاشة






التنصيب
- Install and activate WooCommerce
- Install and activate GIA — GA4 Ecommerce Tracking for WooCommerce
- Open the setup wizard (or go to GIA GA4 Settings)
- Paste your GA4 Measurement ID (starts with G- or GT-)
- Recommended: Add your GA4 API Secret for server-side purchase backup (find it in GA4 Admin Data Streams your stream Measurement Protocol)
- Visit your store in a private browser window, add a product to cart, and check GA4 Realtime
If you used another GA plugin before, GIA GA4 can import your Measurement ID automatically.
الأسئلة المتكررّة
-
Do I need Google Tag Manager?
-
No. Paste your Measurement ID and GIA GA4 handles the rest. Tag Manager is only needed if you already use it for other tags.
-
How is this different from Site Kit or Meow Analytics?
-
Those plugins connect your site to Google Analytics for general traffic — visits and page views. They do not track the full WooCommerce shopping journey (cart, checkout steps, purchases with product details) or send purchases from the server when browsers block tracking. GIA GA4 is built for WooCommerce ecommerce. You can still use Site Kit alongside it for traffic charts in the dashboard.
-
What exactly gets tracked?
-
The shopping path: product and category views, add to cart, cart views, checkout start, shipping and payment choices, purchases, refunds, and checkout errors. You see these as events in GA4 and can build funnel reports there. The plugin also includes a simple view-to-purchase report in WordPress.
-
Why does GA4 show fewer purchases than WooCommerce?
-
Common reasons: ad blockers, shoppers declining cookies, a cached thank-you page, or comparing live GA4 data to orders still processing. Add the API secret for server-side backup and use the built-in verification tool. GIA GA4 is designed to close that gap.
-
Does it work with block checkout?
-
Yes. Block cart, block checkout, mini-cart, and product collection grids are supported.
-
Is it GDPR compatible?
-
It includes Consent Mode, privacy defaults, and integrations with popular cookie consent plugins. You are still responsible for your store’s legal compliance.
-
Can I track Google Ads purchases too?
-
Yes. Add your Google Ads conversion ID and label in settings (optional).
-
Can staff view the dashboard without changing settings?
-
Yes. Developers can split “view analytics” and “change settings” permissions — useful for agencies.
-
Does it work with subscriptions?
-
Yes, with the WooCommerce Subscriptions plugin. Renewals without a browser session are still sent to GA4 from the server.
-
Does it track profit or ad spend?
-
No. It focuses on getting accurate sales and funnel data into GA4. Use other tools for profit and ad spend analysis.
المراجعات
لا توجد مراجعات لهذه الإضافة.
المساهمون والمطوّرون
“GIA — GA4 Ecommerce Tracking for WooCommerce” هو برنامج مفتوح المصدر. وقد ساهم هؤلاء الأشخاص بالأسفل في هذه الإضافة.
المساهمونترجمة ”GIA — GA4 Ecommerce Tracking for WooCommerce“ إلى لغتك.
مُهتم بالتطوير؟
تصفّح الشفرة، تحقق من مستودع SVN، أو الاشتراك في سجل التطوير بواسطة RSS.
سجل التغييرات
0.6
- Fix:
add_to_cartno longer double-fires on AJAX archive adds when detection is set to both — hook path skips AJAX when the JavaScript handler is active - Fix:
view_item_listno longer re-counts products on Product Collection load-more — impressed nodes are deduplicated client-side - Fix: Dashboard traffic, product grid, and customer insights date windows use
bound_for_backend()so legacy and HPOS order stores agree on timezone - Fix: Catalog sale
discountonview_item/view_item_listuses the same tax mode as resolvedprice - Fix: Server-side Measurement Protocol purchase, refund, and renewal events no longer blocked by frontend-only gates (pause, role exclusion, or admin context)
- Improvement: Cache-safe purchase tracking — thank-you page loads purchase via Ajax so page cache cannot reuse stale event data
- Improvement: Browser purchase timing setting — match server trigger (default) to avoid counting pending or failed orders in GA4
- Improvement: Add to cart detection setting — choose WooCommerce hooks, JavaScript, or both for theme compatibility
- Improvement: Order edit screen meta box shows browser/MP tracking status, consent, UTMs, landing page, and GA4 IDs
- Improvement:
select_itemlist attribution on WooCommerce Product Collection blocks - Improvement:
_giawc_frontend_trackedis set after the browser fires purchase, not when PHP renders the page - Improvement: Server-side Measurement Protocol purchase validates order status before send
- Improvement: Admin notice recommends excluding the order-received page from full-page cache
- Improvement: Unified tax mode — exclude tax from event values now applies to cart, checkout, variation view_item, and line-item prices (not just purchase)
- Improvement: URL pattern exclusions — disable gtag and ecommerce scripts on matching paths (glob or regex)
- Improvement: Custom thank-you page ID for non-standard order confirmation pages
- Improvement: Role-based tracking exclusion beyond administrators (comma-separated role slugs)
- Improvement: Per-page “Disable GA4 tracking” meta box on public post types
- Improvement: FSE template-part block detection — block tracking loads when cart/checkout/mini-cart live only in block templates
- Improvement: Product Collection re-fires view_item_list when filters or pagination update the grid
- Improvement: All Products and cart cross-sells block list attribution
- Improvement: Tax-correct variation prices on view_item re-fire via giawc_price
- Improvement: Optional add_to_wishlist when YITH WooCommerce Wishlist is active
- Improvement: Blocks checkout handlers wrapped in fault isolation so tracking errors cannot break checkout
- Improvement: Consent script gating — Consent Mode event deferral or strong block until analytics consent
- Improvement: Custom region consent rules (e.g. US-CA:denied, DK:denied) with priority over geo defaults
- Improvement: CMP auto-detect on activation — Cookiebot/CookieYes script attributes pre-enabled
- Improvement: CookieYes data-cookieyes script attribute toggle
- Improvement: window.giawcConsent API and giawc_event_should_defer / giawc_should_track_event filters
- Improvement: gtag defer-until-idle load strategy for PageSpeed
- Improvement: Purchase debug logging when browser purchase is skipped
- Improvement: Settings import from GTM4WP, Google Analytics for WooCommerce, or GTM Kit when no Measurement ID is set
- Improvement: Admin setup checklist and import success notice
- Improvement:
get_product_data()per-request memoization reduces duplicate term, meta, and tax work on archive pages - Improvement: Tracking reconciliation uses SQL aggregates instead of hydrating every order object
- Improvement: Product performance grid loads SKU from SQL instead of
wc_get_product()per sold product - Improvement:
Giawc_Tracking_Gate::should_track()memoizes per user and queried object within a request - Improvement: Page builder preview exclusion — skip tracking on Divi, Beaver Builder, Elementor, Bricks, and other builder edit/preview requests
- Improvement: Pause browser tracking toggle — disable all frontend gtag and ecommerce events while server-side purchase backup, settings, and dashboard keep working
- Improvement: Additional measurement IDs — send the same gtag config to extra comma-separated GA4 properties (agency, staging, or duplicate streams)
- Improvement: Split analytics capabilities — separate view vs. configure access via
giawc_allow_view_analytics,giawc_allow_configure_tracking, and capability filters - Improvement: Admin assets load only on GIA admin screens (
giawc-*) for better performance - Improvement: gtag.js loads with
asyncby default (unless defer-until-idle strategy is selected) - Improvement: LiteSpeed Cache bypass on admin AJAX and REST responses used by the dashboard
0.5
- Fix: Blocks
add_shipping_infoandadd_payment_infoused non-existent store APIs (corrected against WooCommerce core) - Fix: Mini-cart remove links now tracked via
data-ga4-itemattribute - Fix: Product JSON in HTML attributes uses WooCommerce
wc_esc_json()for safe encoding - Fix: Dequeue WooCommerce Blocks built-in Google Analytics script to prevent duplicate gtag configuration and double-fired events on block cart/checkout
- Fix: Validate order key on thank-you page before firing browser purchase events
- Fix: Tabbed settings panels render fields correctly (WooCommerce table wrapper compatibility)
- Refocus: GA4 ecommerce event tracking (removed profit/COGS, journey analytics, Meta CAPI, ad spend)
- Renamed from Trackify to GIA GA4
- Streamlined dashboard: Overview weekly insights, Traffic, Products, Customers, Settings
- Removed profit columns from product reports and weekly insights
- Improvement: Measurement Protocol sends
session_id,event_id, andengagement_time_msecon purchase/refund - Improvement:
item_list_id/item_list_namepersist fromselect_itemthrough cart and purchase events - Improvement: Full
items[]payloads on add-to-cart and remove-from-cart (classic + Blocks) - Improvement: Sale
discounton GA4 line items when products are on sale - Improvement:
view_promotionfor on-sale products and store notices - Improvement: Blocks checkout uses official WooCommerce cart/payment stores and checkout failure events
- Improvement:
payment_failuredocumented as always-on (not behind Extra GA4 events) - Improvement: Blocks cart/checkout prices use Store API line totals and cart totals (WooCommerce minor-unit format)
- Improvement: Accept Google Tag measurement IDs (
GT-) in addition toG-IDs - Improvement: Blocks mini-cart tracking on all WooCommerce Blocks stores with deduplicated remove-from-cart events
- Improvement: Per-event enable/disable toggles for core GA4 ecommerce events
- Improvement: Cross-domain linker settings (domains + incoming parameters)
- Improvement: Product Bundles use minimum bundle price in GA4 item data
- Improvement: Admin warning when Google Analytics for WooCommerce or Site Kit snippet may duplicate GIA GA4 tracking
- Improvement: Settings page reorganized into Connection, Privacy, Events, and Advanced tabs
- Richer GA4 item data, improved server-side deduplication, and Blocks checkout tracking fixes. Recommended for all stores.
0.4
- Improvement: Tabbed analytics dashboard (overview, products, customers)
- Improvement: First-touch UTM attribution saved to order meta
- Improvement: HPOS-compatible traffic source queries
- Improvement: Server-side purchase deduplication and new vs returning customer on purchase
- Improvement: Coupon, shipping, payment, and payment failure checkout events
- Improvement: Product image, GTIN, hierarchical categories, and brand in item data
- Improvement: WordPress script enqueue compliance (
wp_add_inline_script) - Improvement: Namespace prefix
giawc_throughout
0.3
- Improvement: WordPress.org compliance updates (prefixes, PHPCS, enqueue standards)
- Improvement: Database query optimization and HPOS compatibility
- Removed: Meta and TikTok tracking
0.2
- Fix: PHP fatal error in settings API compatibility
- Improvement: Code standards compliance
0.1
- Initial release