🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
AG Data for PostHog icon
Maintenu Testé jusqu'à 7.0.9

AG Data for PostHog

PostHog Analytics for WooCommerce. Server-side event tracking, marketing attribution engine, identity stitching, and LTV enrichment.

Installations actives<10Nouveau
Téléchargements · 30D101▲ +68.3% vs prev. 30d
Évaluation—0 avis
Score de santé49/100Juste
Téléchargements de tous les temps538Depuis juin 2026
Support résolu—Aucun fil de discussion récent
A besoin deWP 5.8PHP 7.4+
Téléchargements · 7j20▼ -37,5% Semaine sur semaine
Notre verdict

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 support

Téléchargements quotidiens

257Sep 3Oct 17Dec 1
Hier2
Moyenne quotidienne (1 ans)3
Jour de pointe36Jun 18, 2026
12 Derniers mois543

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 today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
analytique >100 9,321 Meilleurs plugins d'analyse →
attribution >100 1,977 Best attribution plugins →
commerce électronique >100 3,048 Meilleurs plugins de commerce électronique →
Posthog #16 44 Meilleurs plugins Posthog →
WooCommerce >100 10,000 Meilleurs plugins WooCommerce →

About AG Data for PostHog

À partir du Lisez-moi officiel · v1.6.2

Description

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_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
  • 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 $identify with $anon_distinct_id merges 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_date updated on every purchase
  • first_order_date, acquisition_source, acquisition_medium, acquisition_campaign set 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

  1. Téléchargez le dossier ag-data-for-posthog dans /wp-content/plugins/
  2. Activez le plugin via le menu des plugins dans WordPress
  3. Go to WooCommerce > Settings > AG Data
  4. Enter your PostHog project API key (starts with phc_)
  5. Select your PostHog region (US or EU)
  6. Optionally configure a reverse proxy URL for first-party tracking
  7. 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

Journal des modifications complet sur WordPress.org →

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.

Badge d'installations actives Badge Badge de score de santé

Best AG Data for PostHog alternatives

Tous les plugins d'analyse →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 Kit de site par Google – Analytics, Search Console, AdSense, Speed Kit de site par Google Site Kit est une solution unique pour les utilisateurs de WordPress à utiliser tout ce que Google a à offrir… par Google 5M+ ★★★★★★★★★★ 4.2 (1K) Il y a 2 jours 92
2 MonsterInsights – Tableau de bord Google Analytics pour WordPress (Statistiques du site Web simplifiées) MonsterInsights Le meilleur plugin d'analyse Google gratuit pour WordPress. Découvrez comment les visiteurs trouvent et utilisent votre… par chriscct7 2M+ ★★★★★★★★★★ 4.5 (3.2K) Il y a 3 mois 93
3 WP Statistics – Simple, respect de la vie privée Google Alternative d'analyse Statistiques WP Sans cookies, respectueux de la vie privée WordPress Analytics. Graphiques clairs et données de visiteurs conservés… Par soft 500K+ ★★★★★★★★★★ 4.1 (763) il y a 1 jour 90
4 GA Google Analytics – Connecter Google Analytics à WordPress GA Google Analytics – Connecter Google Analytics à WordPress Ajoute Google le code de suivi analytique à votre site WordPress. Prend en charge de nombreuses fonctionnalités de suivi. de Jeff Starr 400K+ ★★★★★★★★★★ 4.9 (159) il y a 4 jours 97
5 ExactMetrics – Google Tableau de bord Analytics pour WordPress (Plugin Stats de sites Web) ExactMerics Connecte Google Analytics avec votre site WordPress. Affiche les statistiques pour vous aider à comprendre… de Syed Balkhi 200K+ ★★★★★★★★★★ 2.5 (1.5K) Il y a 3 mois 80
6 Tête, pied de page et injections de poste Tête, pied de page et injections de poste Le plugin Head and Footer vous permet d'ajouter du code HTML aux sections Head et Footer de votre… Par Stefano Lissa 200K+ ★★★★★★★★★★ 4.9 (735) il y a 8 mois 53
7 Statistiques de rafale – Simple WordPress Analytics (Google Alternative Analytics) Burst Statistics Analyse simple et légère WordPress avec un suivi des visiteurs respectueux de la vie privée. sans biscuit… par Burst Statistics B.V. 200K+ ★★★★★★★★★★ 4.9 (192) il y a 1 jour 94
8 Marketing tout-en-un HubSpot – formulaires, popups, chat en direct Marketing tout-en-un HubSpot – formulaires, popups, chat en direct Le plugin CRM, ventes et marketing WordPress pour mieux développer votre entreprise. Capturer et… par HubSpot 200K+ ★★★★★★★★★★ 4.3 (207) il y a 6 jours 81
9 UserFeedBack – Créez un formulaire de commentaires interactifs, des enquêtes d'utilisateurs et des sondages en quelques secondes Feedback utilisateur Plugin Ultimate User Feedback pour poser des questions, sondages, sondages, depuis votre site Web en quelques secondes de Syed Balkhi 200K+ ★★★★★★★★★★ 4.8 (311) Il y a 3 mois 82
10 Poster des vues Compteur Poster des vues Compteur Comptez et affichez les vues des publications, suivez les visites à l'échelle du site et voyez quel contenu fonctionne - à l'intérieur… par factory 100K+ ★★★★★★★★★★ 4.9 (1.2K) il y a 1 semaine 96

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

↑↓ bouger↵ ouvrir