This module is part of the Analyze module ecosystem and included in DXPR CMS.
You're editing a page. How many visitors did it get this month? Is traffic growing or declining? Which countries and devices are your audience using? Right now you'd switch to PostHog, find the URL, set the date range, and read a dashboard. With this module, that data is right there on the Analyze tab: every entity, every metric, zero context switching.
Install the module, store your PostHog API key using the Key module, enter your PostHog host and project ID in the settings, and you're connected. Every content entity with a URL path gets analytics data in its Analyze tab, pulled live from PostHog's HogQL API. A sitewide report surfaces traffic patterns across your entire site.
Every content entity shows its PostHog performance in the Analyze tab, with change vs the previous period (e.g., "397 pageviews (+12.3%)") so you see trends, not just numbers.
Drill into the full report to see where your traffic comes from and how it behaves:
The sitewide report at /admin/reports/posthog shows KPIs and dimension tables for your entire site. Entity reports show the same data scoped to a single page. Both include previous period comparison.
Filter reports by country, status (new, up, down, lost), and text search to zero in on the data that matters. Filters work on both sitewide and entity reports.
Jump directly from the Analyze tab to PostHog's session replay, pre-filtered to the current page, and watch real users interact with your content.
Connect page visits to business outcomes. Define conversion goals (signups, purchases, form submissions) and see which pages drive the most conversions, with revenue tracking and period-over-period comparison.
Query analytics for any URL, view sitewide reports, check connection status, and clear the cache from the command line. Useful for scripted reporting, CI pipelines, and DevOps workflows.
composer require drupal/analyze_posthogSpin up DXPR CMS: Drupal pre-configured with DXPR Builder, DXPR Theme, the full Analyze suite including PostHog integration, and security best practices out of the box.
This module requires: