AG Data for PostHog
AG Data for PostHog connects your WooCommerce store to PostHog — the open-source product analytics platform. Track the complete customer journey from first click to lifetime value, all within PostHog. Why AG Data? Most WooCommerce analytics plugins give you pageviews and basic events. AG Data gives
AG Data for PostHog connects your WooCommerce store to PostHog — the open-source product analytics platform. Track the complete customer journey from first click to lifetime value, all within PostHog.
Why AG Data?
Most WooCommerce analytics plugins give you pageviews and basic events. AG Data gives you a full marketing attribution engine — first-touch/last-touch UTM tracking, ad click ID capture (Google, Meta, TikTok, Microsoft, LinkedIn), server-side first-party cookies that survive Safari ITP, and automatic LTV enrichment on every person profile.
Key Features
Server-Side Event Tracking
- Order Completed, Order Refunded, Order Status Changed
- Product Added — tracked on the server, so it covers every add-to-cart: AJAX buttons on archives, single product pages that post their form, and variable, bundled or optioned products
- Deduplication prevents double-counting
- Blocking API calls ensure delivery before marking as tracked
- Works with all payment gateways and checkout flows
- apha_event_properties filter attaches your own properties to every server-side event
Frontend Event Tracking
- Product Viewed, Product List Viewed, Products Searched
- Product Removed (classic and block-based carts)
- Cart Viewed, Checkout Started
- Product Clicked, Coupon Applied / Removed, Payment Info Entered
- Works without jQuery — block themes fully supported
Marketing Attribution Engine
- Captures UTM parameters and ad click IDs (gclid, fbclid, ttclid, msclkid, li_fat_id)
- Server-side first-party cookies bypass Safari ITP 24-hour restriction
- First-touch and last-touch attribution persisted to every order