πŸ”₯ Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer β†’
Account Get it free
AG Data for PostHog icon
Maintained Tested up to 7.0.9

AG Data for PostHog

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

Active installs<10New
Downloads Β· 30d101β–² +68.3% vs prev. 30d
Ratingβ€”0 reviews
Health score49/100Fair
All-time downloads538Since Jun 2026
Support resolvedβ€”No recent threads
RequiresWP 5.8PHP 7.4+
Downloads Β· 7d20β–Ό -37.5% week over week
Our verdict

Use with caution

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.

  • Small user base (<10 active installs)
  • Very few reviews so far

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

257Sep 3Oct 17Dec 1
Yesterday2
Daily average (1y)3
Peak day36Jun 18, 2026
Last 12 months543

Download spikes usually follow a new release β€” each site that auto-updates counts as a download.

Rankings

Where AG Data for PostHog stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
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 Best woocommerce plugins β†’

About AG Data for PostHog

From the official readme Β· 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.

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
  • 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

Requirements

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

External services

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. Activate the plugin through the Plugins menu 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.

Changelog

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

Full changelog on WordPress.org β†’

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own β€” no account needed.

Active installs badge Rating badge Health score badge

Best AG Data for PostHog alternatives

All analytics plugins β†’
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Site Kit by Google – Analytics, Search Console, AdSense, Speed Site Kit by Google Site Kit is a one-stop solution for WordPress users to use everything Google has to offer… by Google 5M+ β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜… 4.2 (1K) 2 days ago 92
2 MonsterInsights – Google Analytics Dashboard for WordPress (Website Stats Made Easy) MonsterInsights The best free Google Analytics plugin for WordPress. See how visitors find and use your… by chriscct7 2M+ β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜… 4.5 (3.2K) 3 months ago 93
3 WP Statistics – Simple, privacy-friendly Google Analytics alternative WP Statistics Cookieless, privacy-friendly WordPress analytics. Clear graphs and visitor data kept on… by VeronaLabs 500K+ β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜… 4.1 (763) 1 day ago 90
4 GA Google Analytics – Connect Google Analytics to WordPress GA Google Analytics – Connect Google Analytics to WordPress Adds Google Analytics tracking code to your WordPress site. Supports many tracking features. by Jeff Starr 400K+ β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜… 4.9 (159) 4 days ago 97
5 ExactMetrics – Google Analytics Dashboard for WordPress (Website Stats Plugin) ExactMetrics Connects Google Analytics with your WordPress site. Displays stats to help you understand… by Syed Balkhi 200K+ β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜… 2.5 (1.5K) 3 months ago 80
6 Head, Footer and Post Injections Head, Footer and Post Injections Head and Footer plugin lets you to add HTML code to the head and footer sections of your… by Stefano Lissa 200K+ β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜… 4.9 (735) 8 months ago 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) 1 day ago 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) 6 days ago 81
9 UserFeedback – Create Interactive Feedback Form, User Surveys, and Polls in Seconds UserFeedback Ultimate user feedback plugin to ask questions, surveys, polls, from your website in seconds by Syed Balkhi 200K+ β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜… 4.8 (311) 3 months ago 82
10 Post Views Counter Post Views Counter Count and display post views, track site-wide visits, and see what content works – inside… by dFactory 100K+ β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜…β˜… 4.9 (1.2K) 1 week ago 96

FAQ

AG Data for PostHog: quick answers

Straight answers, pulled from live WordPress.org data.

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

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↡ to open