Pressed Hog – Analytics for PostHog
Connect WordPress to PostHog: analytics, session replay, surveys, user identification, WooCommerce events, feature flags, and cookie consent.
Use with caution
Pressed Hog works, but test it on a staging site before relying on it in 2026. Was last updated 1 month ago, and scores 60/100 on our health check.
- 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 Pressed Hog stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| analytics | >100 |
| cookie consent | >100 |
| feature flags | >100 |
| PostHog | #20 |
| woocommerce | >100 |
About Pressed Hog – Analytics for PostHog
From the official readme · v0.3.2Description
Pressed Hog installs PostHog product analytics on your WordPress site — no code required. Works with PostHog Cloud (US or EU) and self-hosted PostHog instances.
Features
- Guided setup wizard on activation: pick your region, validate your API key live against your PostHog host, choose tracking and consent options, and send a test event to confirm everything works end to end.
- Injects the official posthog-js snippet with your project API key and host.
- Toggles for pageview capture, autocapture, session replay, and popover surveys.
- Optionally identify logged-in users, linking events to their WordPress account.
- Exclude roles (administrators, editors, …) from tracking so your own clicks stay out of your data.
- Consent handling with three modes: no gate, a built-in cookie banner, or integration with an external consent plugin via a cookie or JavaScript API.
- WooCommerce events:
product_added_to_cart,checkout_started, andorder_completed(with order totals and line items, deduplicated per order). - Server-side feature flags: a
[posthog_flag key="my-flag"]…[/posthog_flag]shortcode to gate content, pluspressed_hog_is_feature_enabled()andpressed_hog_get_feature_flag()template helpers. - Reverse proxy: serve PostHog through your own domain (e.g.
yoursite.com/phog/…) so analytics requests are first-party and delivered more reliably. - In-dashboard analytics: a Pressed Hog admin page with pageviews, unique visitors, a traffic chart, top pages, referrers, and devices — plus a WordPress dashboard widget and an optional link to a PostHog shared dashboard. Requires a personal API key with read-only Query scope.
- QR codes & trackable links: turn any URL of your own into a campaign-tagged link (UTM parameters plus a unique per-link id so PostHog can attribute each QR individually), generate its QR code right in the browser (nothing is sent to a third-party QR service), keep a saved list of your links, and export the whole list as a downloadable CSV spreadsheet. Download each QR as PNG or SVG.
Consent integration for developers
In “external” consent mode, tracking stays off until either the configured cookie equals the configured value, or your consent plugin calls:
window.pressedHog.grantConsent(); or `window.pressedHog.denyConsent();`
Hooks
pressed_hog_is_active— filter whether the snippet is output for the current request.pressed_hog_init_config— filter theposthog.init()config array.
PostHog is a registered trademark of PostHog, Inc. This plugin is an independent integration and is not affiliated with or endorsed by PostHog, Inc.
External services
This plugin connects your site to PostHog, a product analytics service. Nothing is sent anywhere until you enter a PostHog project API key. Depending on the features you enable, data goes to PostHog Cloud US (us.posthog.com, us.i.posthog.com, us-assets.i.posthog.com), PostHog Cloud EU (eu.posthog.com, eu.i.posthog.com, eu-assets.i.posthog.com), or the self-hosted PostHog instance you configure.
- Tracking library (visitors’ browsers). On every front-end page view by a tracked visitor, the browser loads the posthog-js library from PostHog’s asset host. It then sends the events you enabled: pageviews (URL, referrer, browser, device, screen size), autocaptured clicks and form submissions, session recordings, and survey responses, together with an anonymous ID and the visitor’s IP address. When a consent mode is enabled, nothing is captured and no PostHog cookie is stored until the visitor consents.
- User identification (optional). If “Identify logged-in users” is on, the logged-in user’s WordPress user ID, email address, and display name are sent to PostHog.
- WooCommerce events (optional). If enabled, add-to-cart, checkout-started, and order-completed events are sent, including product IDs, product names, quantities, order totals, and currency.
- Reverse proxy (optional). If enabled, visitors’ tracking requests pass through your server to PostHog, with the visitor’s IP address forwarded in the
X-Forwarded-Forheader. The posthog-js library files are still loaded from PostHog’s asset host. - Feature flags (server-side). When a page uses the
[posthog_flag]shortcode or the flag helper functions, your server sends your project API key and the visitor’s PostHog ID (or WordPress user ID for logged-in users) to PostHog’s/decideendpoint. Results are cached for 60 seconds. - Setup wizard. When you validate your key or send a test event, your server sends the project API key, and for the test event your user ID, site URL, and plugin version, to PostHog.
- In-dashboard analytics (optional). When an administrator opens the analytics page or dashboard widget, your server sends read-only queries to PostHog’s Query API using your personal API key and project ID. Results are cached for 5 minutes.
PostHog’s terms of service: https://posthog.com/terms
PostHog’s privacy policy: https://posthog.com/privacy
If you self-host PostHog, the data goes only to your own instance, and your own terms and privacy policy apply.
Installation
- Upload the plugin to
/wp-content/plugins/pressed-hog-analytics-for-posthog, or install it via the Plugins screen. - Activate it — you’ll be taken straight to the setup wizard.
- Follow the wizard: pick your PostHog region, paste your project API key (starts with
phc_), choose tracking and consent options, and send a test event.
You can re-run the wizard any time from the “Setup wizard” link on the Plugins screen, or manage everything on Settings → Pressed Hog.
Changelog
0.3.2
- The optional PostHog shared dashboard is now linked from the analytics page instead of embedded in an iframe.
- The reverse proxy now relays only PostHog’s JSON API responses; library files load directly from PostHog’s asset host.
- Text domain changed to
pressed-hog-analytics-for-posthogto match the WordPress.org plugin slug. - All admin output is escaped at the point of output.
- Fixed a PHP deprecation notice on the setup wizard screen.
0.3.1
- Renamed to “Pressed Hog – Analytics for PostHog”; the admin menu is now labelled “Pressed Hog” and no longer sits at the top of the menu.
- The tracking snippet, settings script, and dashboard-widget styles now go through the WordPress script and style loaders instead of inline tags.
- With a consent mode on, posthog-js no longer stores cookies or localStorage until the visitor consents.
- The “connect PostHog” reminder now appears only on the Plugins screen.
- Uninstall now also removes WooCommerce order meta and cleans up every site on a multisite network.
- Documented the external services the plugin uses.
0.3.0
- New “QR Codes” page (under the PostHog menu): create trackable links from your own URLs with UTM tags and a unique tracking id, generate QR codes, save your links, and download the list as a CSV spreadsheet. QR codes are generated entirely in the browser and can be downloaded as PNG or SVG.
0.2.1
- Security hardening: restrict the reverse proxy to known PostHog paths and methods with a request-body size cap; validate the wizard’s key-check host (HTTPS only, via wp_safe_remote_post) to prevent internal-network probing; stop exposing the personal API key in the setup wizard’s page HTML and keep it out of the autoloaded options cache; reject numeric anonymous feature-flag identifiers.
0.2.0
- Reverse proxy for ad-blocker-resistant tracking through your own domain.
- In-dashboard analytics page, dashboard widget, and optional embedded shared dashboard.
0.1.0
- Initial release.
Screenshots
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 Pressed Hog alternatives
All analytics plugins →FAQ
Pressed Hog – Analytics for PostHog: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Pressed Hog free?
Yes. Pressed Hog is free to download and use from the official WordPress.org plugin directory.
Is Pressed Hog safe to use in 2026?
Pressed Hog works, but test it on a staging site before relying on it in 2026. Was last updated 1 month ago, and scores 60/100 on our health check.
How many websites use Pressed Hog?
Pressed Hog is active on <10 WordPress websites and has been downloaded 210 times since it launched in October 2026. It was downloaded 87 times in the last 30 days.
Does Pressed Hog work with WordPress 7.1?
Yes. The developer has tested Pressed Hog up to WordPress 7.1.5, the latest release. It requires WordPress 6.0 or newer.
What PHP version does Pressed Hog need?
Pressed Hog requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Pressed Hog last updated?
The latest version, 0.3.2, was released on October 20, 2026 (1 month ago).
Who makes Pressed Hog?
Pressed Hog is developed and maintained by seainthetrees.
What are the best alternatives to Pressed Hog?
The most popular alternatives to Pressed Hog 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






