🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
AG Data for PostHog icon
gepflegt Getestet bis 7.0.9

AG Data for PostHog

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

Aktive Installationen<10Neu
Downloads · 30d101▲ +68.3% vs prev. 30d
Wertung—0 Bewertungen
Gesundheits-Score49/100Messe
Downloads aller Zeiten538Since Jun 2026
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 5.8PHP 7.4+
Downloads · 7d20▼ -37,5% Woche für Woche
Unser Urteil

Mit Vorsicht verwenden

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.

  • Kleine Benutzerbasis (<10 aktive Installationen)
  • Bisher sehr wenige Bewertungen

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

257Sep 3Oct 17Dec 1
Gestern2
Täglicher Durchschnitt (1 Jahr)3
Spitzentag36Jun 18, 2026
Letzte 12 Monate543

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where AG Data for PostHog stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
analytics >100 9,321 Best analytics plugins →
attribution >100 1,977 Best attribution plugins →
ecommerce >100 3,048 Best ecommerce plugins →
PostHog #16 44 Best PostHog plugins →
WooCommerce >100 10,000 Beste WooCommerce-Plugins →

About AG Data for PostHog

From the official readme · v1.6.2

Beschreibung

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.

Hauptmerkmale

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

Bedarf

  • WordPress 5.8+
  • WooCommerce 7.0+
  • PHP 7.4+
  • A PostHog account (free tier available at posthog.com)

Externe Dienste

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. Upload the ag-data-for-posthog folder to /wp-content/plugins/
  2. Aktivieren Sie das Plugin über das Plugin-Menü in 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.

Änderungsprotokoll

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

Vollständiges Änderungsprotokoll auf WordPress.org →

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best AG Data for PostHog alternatives

All analytics plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 Site Kit von Google – Analytics, Search Console, AdSense, Geschwindigkeit Site-Kit von Google Site Kit ist eine One-Stop-Lösung für WordPress-Benutzer, um alles zu verwenden Google hat… von Google 5M+ ★★★★★★★★★★ 4.2 (1K) Vor 2 Tagen 92
2 MonsterInsights – Google Analytics-Dashboard für WordPress (Website-Statistiken leicht gemacht) Monster-Einblicke Das beste kostenlose Google Analytics-Plugin für WordPress. Sehen Sie, wie Besucher Ihre… von chriscct7 2M+ ★★★★★★★★★★ 4.5 (3.2K) Vor 3 Monaten 93
3 WP-Statistiken – Einfach, datenschutzfreundlich Google Analytics-Alternative WP-Statistiken Cookielose, datenschutzfreundliche WordPress-Analyse. Klare Grafiken und Besucherdaten aufbewahrt… von Veronalabs 500K+ ★★★★★★★★★★ 4.1 (763) Vor 1 Tag 90
4 GA Google Analytics – Verbinden Google Analytics mit WordPress GA Google Analytics – Verbinden Google Analytics mit WordPress Fügt Ihrer WordPress-Website Google Analytics-Tracking-Code hinzu. Unterstützt viele Tracking-Funktionen. von Jeff Starr 400K+ ★★★★★★★★★★ 4.9 (159) Vor 4 Tagen 97
5 ExactMetrics – Google Analytics-Dashboard für WordPress (Plugin für Website-Statistiken) Exactmetrics Verbindet Google Analytics mit Ihrer WordPress-Site. Zeigt Statistiken an, die Ihnen helfen, zu verstehen… von Syed Balkhi 200K+ ★★★★★★★★★★ 2.5 (1.5K) Vor 3 Monaten 80
6 Kopf-, Fuß- und Postinjektionen Kopf-, Fuß- und Postinjektionen Kopf- und Fußzeilen-Plugin können Sie HTML-Code zu den Kopf- und Fußzeilenbereichen Ihres… Von Stefano Lissa 200K+ ★★★★★★★★★★ 4.9 (735) Vor 8 Monaten 53
7 Burst Statistics – Simple WordPress Analytics (Google Analytics Alternative) Burst Statistics Simple, lightweight WordPress analytics with privacy-friendly visitor tracking. Cookieless… by Burst Statistics B.V. 200K+ ★★★★★★★★★★ 4.9 (192) Vor 1 Tag 94
8 HubSpot All-In-One Marketing – Forms, Popups, Live Chat HubSpot All-In-One Marketing – Forms, Popups, Live Chat The CRM, Sales, and Marketing WordPress plugin to grow your business better. Capture and… by HubSpot 200K+ ★★★★★★★★★★ 4.3 (207) Vor 6 Tagen 81
9 UserFeedback – Erstellen Sie in Sekundenschnelle interaktive Feedback-Formulare, Benutzerumfragen und Umfragen Userfeedback Ultimatives Benutzerfeedback-Plugin, um Fragen, Umfragen, Umfragen von Ihrer Website in Sekundenschnelle zu stellen von Syed Balkhi 200K+ ★★★★★★★★★★ 4.8 (311) Vor 3 Monaten 82
10 Post Views Counter Post Views Counter Count and display post views, track site-wide visits, and see what content works – inside… von dFactory 100K+ ★★★★★★★★★★ 4.9 (1.2K) Vor 1 Woche 96

Fragen und Antworten

AG Data for PostHog: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: 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).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen