Analytics Integration for PostHog, WP & WC


This unofficial PostHog plugin adds visitor and user tracking to WordPress and WooCommerce websites and uses the PostHog analytics platform.

Features

  • Easy setup: configure it with your PostHog project ID.
  • WooCommerce integration: product views, add-to-cart actions, cart updates, checkout progress and completed orders.
  • User tracking: capture and identify logged-in users.
  • Link click tracking: monitor clicks on links such as affiliate links, with customizable link prefixes for direct and encoded links.
  • PostHog experiments (experimental): run A/B tests and feature flag experiments with Gutenberg blocks.
  • Custom initialization: advanced options for custom PostHog configurations.

Configuration

  • Project ID: your PostHog project ID (required).
  • API host: the US or EU PostHog instance, or a custom URL.
  • Tracking mode: all visitors or only identified users.
  • Debug mode: console logging for troubleshooting.

Installation

  1. Install it from the WordPress.org plugin page or search for "Analytics Integration for PostHog" under Plugins, Add New.
  2. Activate the plugin.
  3. Enter your PostHog project ID and pick the API host.

It requires WordPress 5.0 and PHP 7.2 or newer. You can create a free account at posthog.com.

Links

Get in touch

Contact Infinitnet