Analytics Integration for PostHog, WP, & WC
Integrate PostHog with WordPress and WooCommerce for detailed user behavior tracking, product analytics, experimentation, and more.
Solid choice
Analytics Integration for PostH… is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 6 days ago, and scores 66/100 on our health check.
- Actively developed — last update 6 days ago
- Tested with the latest WordPress (7.1)
- Small user base (10+ active installs)
- Very few reviews so far
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Analytics Integration for P… stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| analytics | >100 |
| ecommerce | >100 |
| PostHog | #7 |
| tracking | >100 |
| woocommerce | >100 |
Version adoption
Share of active sites per release.
About Analytics Integration for PostHog, WP,…
From the official readme · v1.6.1Description
This (unofficial) PostHog plugin offers visitor and user tracking for WordPress and WooCommerce websites, leveraging PostHog’s powerful analytics platform.
Features
- Easy Setup: Configure with just your PostHog project ID
- WooCommerce Integration: Track ecommerce events including:
- Product views
- Add-to-cart and remove-from-cart actions
- Cart updates
- Checkout process
- Completed orders
- Works with classic themes and shortcodes, block themes and the Cart and Checkout blocks
- User Tracking: Capture and identify logged-in user data
- Link Click Tracking: Monitor clicks on links (affiliate links, etc.)
- PostHog Experiment Support (experimental): Run A/B tests and feature flag experiments using Gutenberg blocks
- Custom Initialization: Advanced options for custom PostHog configurations
- PostHog SDK Options: Configuration defaults snapshot, persistence, cookieless mode, consent (opt out by default), ui_host for reverse proxies, exception autocapture, heatmaps, surveys and session recording text masking. All of them stay off until you change them
- PostHog Ecommerce Spec: Optionally send WooCommerce events with the PostHog ecommerce spec names (Product Viewed, Product Added, Order Completed, …)
Why Use PostHog?
PostHog is an all-in-one platform that helps you build better products. It includes all the tools you need to deploy changes, observe their effect, gather feedback, and iterate from there, and it’s completely free to get started.
Some of the features PostHog offers include…
- Product and web analytics
- Revenue tracking and surveys
- Session recording and heatmaps
- LLM observability and AI assistant
- Feature flags and experimentation
- Error tracking and issue assignment
- Data pipelines and integrations
You can create a free account with PostHog at posthog.com
WooCommerce Features
With WooCommerce enabled, the plugin automatically tracks:
- Product view events
- Add to cart and remove from cart actions
- Cart views and updates
- Checkout progress and completion
- Purchase events with detailed product information
Each event is sent once per action, on classic and block themes. See the FAQ for the event list.
Gutenberg Experiment Support
Create and manage PostHog experiments directly in the Gutenberg editor. Test different content variations using PostHog feature flags without any coding.
Link Click Tracking
Monitor link clicks with customizable link prefixes, supporting both direct links and encoded/obfuscated links.
Configuration
Basic Configuration
- Project ID: Your PostHog project ID (required)
- API Host: Select US or EU PostHog instance, or enter a custom URL
- Tracking Mode: Choose between tracking all visitors or only identified users
Advanced Options
- Debug Mode: Enable console logging for troubleshooting
- Gutenberg Experiments: Enable PostHog feature flag experiments in the Gutenberg editor
- Link Click Tracking: Track clicks on links with customizable prefixes
- Custom Mode: Override default initialization with custom PostHog script
- WooCommerce Event Names: Legacy names (default) or the PostHog ecommerce spec names
PostHog SDK Options
These map to options of the PostHog JavaScript library (posthog-js). Each one is left out of the PostHog configuration until you change it, so upgrading does not change what is tracked.
- Configuration Defaults: The posthog-js
defaultsdate snapshot - Persistence: Where PostHog stores identifiers (
localStoragesets no PostHog cookies) - Cookieless Mode:
alwaysoron_reject; also enable cookieless mode in your PostHog project settings - Require Consent:
opt_out_capturing_by_default, for consent banners that callposthog.opt_in_capturing() - PostHog App Host:
ui_host, for reverse proxy setups - Exception Autocapture, Heatmaps: on, off or the PostHog project setting
- Disable Surveys and Mask All Text in Session Recordings
Installation
- Upload the plugin files to the
/wp-content/plugins/analytics-integration-for-posthog-wp-wcdirectory, or install the plugin through the WordPress plugins screen - Activate the plugin through the ‘Plugins’ screen in WordPress
- Navigate to Settings > PostHog Integration to configure the plugin
- Enter your PostHog Project ID (starts with ‘phc_’)
- Choose your PostHog instance (US, EU, or custom)
- Configure additional options as needed
Changelog
WooCommerce events are now complete on block themes and the Cart and Checkout blocks, and each event is sent once. cart_updated is no longer sent on every page load, view_product_list lists the products on the page, order_completed is sent once per order.
1.6.1
- WooCommerce events now work on block themes and with the Cart and Checkout blocks: add to cart from Product Collection, Add to Cart and Mini-Cart blocks, quantity changes and removals in the Cart block, checkout started on the Checkout block
- Every WooCommerce event now has one source (the server) and is sent once per action. Fixes: add to cart was sent twice for add to cart links without AJAX, cart view twice on the classic cart page, and add to cart was lost when the add was followed by a redirect
- New remove_from_cart event (Product Removed with the ecommerce spec names). Undoing a removal sends add_to_cart
- cart_updated is sent once per cart change (add, remove, quantity) with the new cart totals and a cart_action property. Before, it was sent on every page load and with outdated totals after a change. Applying or removing a coupon alone no longer sends it
- A quantity change sends cart_updated with cart_action “quantity”, product_id, quantity and previous_quantity
- Fix: order_completed is sent once per order. Reloading the order received page, opening it in another tab or going back no longer sends it again
- order_completed is no longer sent for failed, cancelled or refunded orders (a failed payment is sent when the retry succeeds), for orders created in wp-admin, for subscription renewals, or for order received links older than 7 days. New filters: infnet_posthog_track_order_completed, infnet_posthog_purchase_max_age
- begin_checkout is sent once per cart. Reloading the checkout page or opening it in a second tab does not repeat it
- Performance: shop and category pages no longer load every product of the store for view_product_list. The event lists the products shown on the page
- Fix: checkout_progress step 1 was also sent on the order received page, and payment_method_selected had no method
- Cart events are delivered with a short-lived first-party cookie (infnet_posthog_ev_…) that is set after a cart change, see the FAQ
- Declares compatibility with WooCommerce High-Performance Order Storage and the Cart and Checkout blocks
- Removed the purchase and server-side checkout_progress hooks, which never sent an event
- Fix: an order with a deleted product no longer causes an error on the order received page
1.6.0
- Update the PostHog loader snippet to the version in the current PostHog docs (loads posthog-js from the PostHog assets CDN, guards against loading twice)
- Fix: “Disable auto-capture” now works. posthog-js has no disable_autocapture option; the plugin now sends autocapture: false
- “Disable cookie” is sent as disable_persistence, its current posthog-js name. The behavior is unchanged; the label now says what it does
- Fix: in “Always” tracking mode, anonymous visitors were reset to a new PostHog ID on every page. PostHog is now reset once after a WordPress logout instead
- Fix: on classic (non-block) themes, product view, product list, cart view, checkout started and order completed events were captured too late and never sent
- Fix: WooCommerce events no longer overwrite the PostHog $browser property with the raw user agent
- New PostHog SDK options, all off by default: configuration defaults snapshot, persistence, cookieless mode, opt out by default, ui_host, exception autocapture, heatmaps, disable surveys, mask all text in session recordings
- New “Never” tracking mode (person_profiles: never); tracking mode values are validated on save
- New optional WooCommerce event names from the PostHog ecommerce spec, with spec properties. Legacy names stay the default
- New infnet_posthog_distinct_id filter
- Removed the checkout_initiated hook, which ran after its data was printed and never sent an event
- Fix: clicking an AJAX add to cart button on shop pages also followed the link, adding the product twice and sending add_to_cart twice
- Fix: the feature flag ready script for experiments ran before PostHog was initialized (“posthog is not defined”)
1.5.5
- Fix: Link Prefixes saved with blank lines or Windows line endings no longer track every link click or stop link tracking; the list is cleaned on save and when loaded
- Link tracking script ignores empty prefixes
1.5.4
- Tested with WordPress 7.2 and PHP 8.5; checked for PHP 8.6 deprecations
- Use wp.editor.PluginSidebar for the experiment sidebar (wp.editPost.PluginSidebar is deprecated) and declare all editor script dependencies
- Opt the experiment sidebar controls into the current @wordpress/components sizing and margin styles
- Do not load the experiment editor script in the widgets and Customizer editors (avoids the core wp-editor notice)
- Replace deprecated jQuery shorthand calls in the admin and WooCommerce scripts
- Keep line breaks when saving link prefixes, so each prefix on its own line is tracked
- Add a plugin version constant
1.5.3
- Fix custom block attribute registration
1.5.2
- Refactor custom initialization settings
- Add boolean value conversion helper
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.
Best Analytics Integration for Pos… alternatives
All analytics plugins →FAQ
Analytics Integration for PostHog,…: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Analytics Integration for PostH… free?
Yes. Analytics Integration for PostH… is free to download and use from the official WordPress.org plugin directory.
Is Analytics Integration for PostH… safe to use in 2026?
Analytics Integration for PostH… is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 6 days ago, and scores 66/100 on our health check.
How many websites use Analytics Integration for PostH…?
Analytics Integration for PostH… is active on 10+ WordPress websites and has been downloaded 1,983 times since it launched in April 2025. It was downloaded 280 times in the last 30 days.
Does Analytics Integration for PostH… work with WordPress 7.1?
Yes. The developer has tested Analytics Integration for PostH… up to WordPress 7.2, the latest release. It requires WordPress 5.0 or newer.
What PHP version does Analytics Integration for PostH… need?
Analytics Integration for PostH… requires PHP 7.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Analytics Integration for PostH… last updated?
The latest version, 1.6.1, was released on November 26, 2026 (6 days ago).
Who makes Analytics Integration for PostH…?
Analytics Integration for PostH… is developed and maintained by Constantin Oesterling.
What are the best alternatives to Analytics Integration for PostH…?
The most popular alternatives to Analytics Integration for PostH… 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
