AG Data for PostHog
PostHog Analytics for WooCommerce. Server-side event tracking, marketing attribution engine, identity stitching, and LTV enrichment.
Utiliser avec prudence
AG Data for PostHog works, but test it on a staging site before relying on it in 2026. Was last updated 3 months ago, and scores 49/100 on our health check.
- Petite base d'utilisateurs (<10Â installations actives)
- Très peu de critiques jusqu'à présent
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where AG Data for PostHog stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| analytique | >100 |
| attribution | >100 |
| commerce électronique | >100 |
| Posthog | #16 |
| WooCommerce | >100 |
About AG Data for PostHog
À partir du Lisez-moi officiel · v1.6.2Description
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.
Principales caractéristiques
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_propertiesfilter 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
- Days-to-conversion and session count tracking
- Falls back to WooCommerce 8.5+ native attribution when cookies are unavailable
- Attribution data included in all PostHog order events
Identity Stitching
- Reads PostHog JS SDK cookie server-side for seamless funnel connection
- Browser
posthog.identify()for logged-in users - Server-side
$identifywith$anon_distinct_idmerges anonymous and known profiles - PostHog funnels work end-to-end: Landing Page → Checkout Started → Order Completed
LTV Person Enrichment
total_orders,lifetime_value,avg_order_value,last_order_dateupdated on every purchasefirst_order_date,acquisition_source,acquisition_medium,acquisition_campaignset once via$set_once- Build PostHog cohorts like “Customers with LTV > $500 acquired from Google Ads”
GDPR / Consent Management
- Optional consent mode: starts PostHog opted-out with memory-only persistence
- Exposes
aphaOptIn()/aphaOptOut()JavaScript functions - Built-in support for CookieYes and Complianz consent management platforms
WooCommerce Compatibility
- HPOS (High-Performance Order Storage) compatible
- Cart and Checkout Blocks compatible
- Classic and block checkout flows supported
- Reverse proxy support for first-party tracking domains
Obligations
- WordPress 5.8+
- WooCommerce 7.0+
- PHP 7.4+
- A PostHog account (free tier available at posthog.com)
Services externes
This plugin connects to PostHog, a third-party product analytics service, to send your store’s analytics and e-commerce event data. This connection is required for the plugin to work — its entire purpose is to record analytics in PostHog. No data is sent until you enter a PostHog Project API key in the plugin settings.
What PostHog is used for:
- Receiving server-side e-commerce events (Order Completed, Order Refunded, Order Status Changed).
- Receiving frontend browsing events (Product Viewed, Cart Viewed, Checkout Started, and similar) via the PostHog JavaScript SDK, which is loaded on your site’s pages from your configured PostHog host.
- Storing person profiles enriched with order/LTV data and marketing attribution data.
What data is sent, and when:
- While a visitor browses your store, the PostHog JavaScript SDK captures pageviews and browsing events. This includes page URLs, referrer, UTM parameters, ad click IDs (gclid, fbclid, ttclid, msclkid, li_fat_id), and a PostHog-generated anonymous identifier.
- When an order is placed, refunded, or changes status, the plugin sends order data from your server — order ID, totals, currency, line items, payment and shipping method, and billing/shipping country. For logged-in users, a WordPress-based identifier and the customer email may also be sent so anonymous and known profiles can be merged.
- Requests are sent to the PostHog host you configure in the settings (PostHog US Cloud, PostHog EU Cloud, or your own self-hosted/proxy URL).
Service provider: PostHog Inc.
Terms of Service: https://posthog.com/terms
Privacy Policy: https://posthog.com/privacy
Installation
- Téléchargez le dossier
ag-data-for-posthogdans/wp-content/plugins/ - Activez le plugin via le menu des plugins dans WordPress
- Go to WooCommerce > Settings > AG Data
- Enter your PostHog project API key (starts with
phc_) - Select your PostHog region (US or EU)
- Optionally configure a reverse proxy URL for first-party tracking
- Done! Events will start flowing to PostHog immediately.
Journal de modifications
Plugin renamed to AG Data for PostHog. All functionality and settings are preserved — no reconfiguration needed.
1.6.2
- Fix: Order Completed is now tracked for orders that are created already in a paid status. WooCommerce only records a status transition once the order object has been read from the database, so an order saved straight into a paid status fires no transition hook at all — if its gateway also skips WC_Order::payment_complete(), nothing reported the order. Reported by @craftyshaun in issue #1.
- New: the order-received page is used as a final fallback, so a paid order that somehow reached neither hook is still reported once the customer lands there.
- Unpaid orders are still never reported as Order Completed. A bank transfer or cheque customer reaches the order-received page while the order is on hold, and counting that as revenue would overstate sales.
- Both new paths reuse the existing deduplication, so orders continue to produce exactly one Order Completed event.
1.6.1
- Fix: Order Completed is now tracked for payment gateways that never call WC_Order::payment_complete(). Gateways that set the paid status directly — common among local payment providers — left orders completely untracked, because both of the previous hooks depended on payment_complete() running or on the order reaching the completed status. Order Completed now fires on any transition into a paid status, whatever the gateway.
- The existing deduplication (in-memory guard plus _apha_tracked order meta) keeps the overlapping paths safe, so gateways that do call payment_complete() still produce exactly one event.
1.6.0
- Fix: Product Added is now tracked server-side on the woocommerce_add_to_cart hook. The previous JavaScript handlers only fired for AJAX add-to-cart buttons, so single product pages that post their form — every variable, bundled, composite or optioned product — were never tracked at all.
- Behavior change: Product Added moves from the browser to the server. Both JavaScript handlers were removed to avoid double-counting AJAX adds. The event now carries full product properties (sku, price, category, brand, variant) and $lib = ag-data-for-posthog. Anything filtering Product Added by client-side-only properties should be updated.
- Fix: Logged-in visitors no longer split into two persons at checkout. The browser had been calling posthog.identify(email) from an already-identified wp_XX ID, which PostHog’s merge restrictions reject — the browser moved to the email while server events stayed on wp_XX. Person properties are now set on the existing person instead.
- New: apha_event_properties filter attaches properties to every server-side event, the server-side counterpart to posthog.register(). Reserved keys are applied after the filter.
1.5.3
- Fix: Adds app_source=wordpress to server-side Order Completed attribution
1.5.2
- Fix: Escapes PostHog JavaScript property names and $pageview in the inline bootstrap snippet
1.5.1
- New: Adds a stable funnel_session_id across WordPress pageview, checkout, and server-side order events
- New: Adds funnel_key, host, source_host, source_page, and URL properties for cleaner PostHog CRO reporting
- Fix: Captures $pageview manually after registering funnel properties so landing-page views can join to checkout/order events
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best AG Data for PostHog alternatives
Tous les plugins d'analyse →FAQ
AG Data for PostHog: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is AG Data for PostHog free?
Yes. AG Data for PostHog is free to download and use from the official WordPress.org plugin directory.
Is AG Data for PostHog safe to use in 2026?
AG Data for PostHog works, but test it on a staging site before relying on it in 2026. Was last updated 3 months ago, and scores 49/100 on our health check.
How many websites use AG Data for PostHog?
AG Data for PostHog is active on <10 WordPress websites and has been downloaded 538 times since it launched in June 2026. It was downloaded 101 times in the last 30 days.
Does AG Data for PostHog work with WordPress 7.1?
AG Data for PostHog is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does AG Data for PostHog need?
AG Data for PostHog requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was AG Data for PostHog last updated?
The latest version, 1.6.2, was released on August 31, 2026 (3 months ago).
Who makes AG Data for PostHog?
AG Data for PostHog is developed and maintained by Alex Godlewski.
What are the best alternatives to AG Data for PostHog?
The most popular alternatives to AG Data for PostHog are Site Kit by Google (5M+ installs), MonsterInsights (2M+ installs) and WP Statistics (500K+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit
