xpay✦ Commerce
Directory
WooCommerce plugins
Analytics Integration for PostHog, WP, & WC
Analytics Integration for PostHog, WP, & WC
Integrate PostHog with WordPress and WooCommerce for detailed user behavior tracking, product analytics, experimentation, and more.
Will this break my store?
What the WordPress.org registry says about keeping Analytics Integration for PostHog, WP, & WC running.
Tested to 6.8.6 — 2 branches behind 7.0
A branch or two behind — normal for a plugin between releases.11 months ago
At least 3.0 releases a year since launch. WordPress.org only lists versions still available for download, so the real number may be higher.7.2
Your host must be running at least this version.5.0
1
A single maintainer. Worth knowing if the plugin is load-bearing for your store.Maintenance & trust
Scored on how Analytics Integration for PostHog, WP, & WC is looked after — not on how many stores run it.
Maintenance
26 / 35WordPress compatibility
14 / 20Support responsiveness
Not enough dataMerchant satisfaction
Not enough dataListing transparency
3 / 10Ratings
No one has rated this plugin on WordPress.org yet. That is a statement about the ratings page, not about the plugin — plenty of well-kept plugins never collect them.
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 actions
- Cart updates
- Checkout process
- Completed orders
- 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
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 actions
- Cart views and updates
- Checkout progress and completion
- Purchase events with detailed product information
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
Log in to your PostHog account, navigate to Project Settings, and copy the Project API Key (starts with ‘phc_’).
Yes, the plugin works with standard WordPress sites for basic analytics. WooCommerce-specific tracking is only activated when WooCommerce is installed and active.
Yes, you can use a custom API host URL for reverse proxy PostHog instances.
- Enable Gutenberg experiments in the plugin settings
- Edit a post or page with the Gutenberg editor
- Select any block and use the PostHog Experiment panel in the block settings sidebar
- Enter your feature flag name and variant
- Save your post/page
This plugin integrates with PostHog, which has GDPR compliance features. The plugin itself is designed to work with PostHog’s privacy controls. However, you are responsible for ensuring your specific implementation meets GDPR requirements, including proper consent management.
Categories
Plugin details
Tags on WordPress.org
