This module is part of the Analyze module ecosystem and included in DXPR CMS.

Your Analytics Data Belongs Next to Your Content, Not in Another Tab

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.

You need Analyze PostHog if

How It Works

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.

What You Get

Getting Started

  1. Install with Composer: composer require drupal/analyze_posthog
  2. Enable the module and the Key module
  3. Create a PostHog personal API key with read access
  4. Store the API key at /admin/config/system/keys (Key module) and configure your PostHog host and project ID at /admin/config/analyze/posthog
  5. Enable the analyzer per content type at /admin/config/content/analyze-settings

Prefer a turnkey demo site?

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

Get DXPR CMS »

Additional requirements

This module requires:

Related Modules