> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # PostHog vs Google Analytics 4 in-depth tool comparison Canonical URL: https://posthog.com/compare/posthog-vs-ga4 ## On this page - [How is PostHog different?](#how-is-posthog-different) - [Comparing PostHog and Google Analytics](#comparing-posthog-and-google-analytics) - [When to choose PostHog vs Google Analytics 4](#when-to-choose-posthog-vs-google-analytics-4) - [Frequently asked questions](#frequently-asked-questions) - [Natalia Amorim](https://posthog.com/community/profiles/35321.md) Nov 20, 2026 - [Comparisons](https://posthog.com/compare/comparisons.md) PostHog and [Google Analytics 4 (GA4)](https://posthog.com/compare/best-ga4-alternatives.md) are both popular tools for understanding how users interact with your website or app – but they're built with very different goals. 1. **GA4** is designed to track traffic, campaigns, and user behavior across websites and apps, with tight integration into Google's advertising ecosystem. It's one of the most widely deployed analytics tools in the world, and the default choice for teams who want marketing and attribution data in a familiar interface. It's built for marketers and growth teams. 2. **PostHog** is your product's context layer. On top of [web analytics](https://posthog.com/web-analytics.md), it includes [product analytics](https://posthog.com/product-analytics.md), [session replay](https://posthog.com/session-replay.md), [feature flags](https://posthog.com/feature-flags.md), [experiments](https://posthog.com/experiments.md), [error tracking](https://posthog.com/error-tracking.md), [logs](https://posthog.com/logs.md), [AI observability](https://posthog.com/ai-observability.md), [surveys](https://posthog.com/surveys.md), an [AI assistant](https://posthog.com/ai.md), and more. A [data warehouse](https://posthog.com/warehouse.md) and [data pipelines](https://posthog.com/data-pipelines.md) tie it all together and unify that context into one source agents can read across. You can work with all of it from [Slack](https://posthog.com/slack.md), the [CLI](https://posthog.com/docs/cli.md), or your own editor via [the MCP](https://posthog.com/mcp.md). It's built for engineers, AI builders, and product teams. If you're looking for a [GA4 alternative](https://posthog.com/compare/best-ga4-alternatives.md) – whether for privacy reasons, because you need more than web analytics, or because you just don't like GA4 – this comparison will help you decide if PostHog is the right fit. ## How is PostHog different? ### 1\. We're an all-in-one platform PostHog combines [product analytics](https://posthog.com/product-analytics.md) and [web analytics](https://posthog.com/web-analytics.md) with [session replay](https://posthog.com/session-replay.md), [feature flags](https://posthog.com/feature-flags.md), [error tracking](https://posthog.com/error-tracking.md), [experiments](https://posthog.com/experiments.md), [surveys](https://posthog.com/surveys.md), a baked-in [data warehouse](https://posthog.com/docs/data-warehouse.md), and more into one tightly integrated platform. Everything you need from a single app with a single contract. A *genuine* single source of truth for your product and customer data. GA4 is a powerful web analytics tool, but it doesn't include session replay, feature flags, A/B testing, error tracking, or surveys. For those features, you'd need separate tools like [FullStory](https://posthog.com/compare/posthog-vs-fullstory.md), [LaunchDarkly](https://posthog.com/compare/posthog-vs-launchdarkly.md), and [Optimizely](https://posthog.com/compare/posthog-vs-optimizely.md), and a way to stitch the data together. ### 2\. It's built for developers This means you get support from the engineers who *actually build the product*, [extensively documented APIs](https://posthog.com/docs/api.md), and a [SQL query builder](https://posthog.com/docs/data-warehouse/sql.md) so you can analyze data how you want. Your agents get the same access you do, through a free [MCP server](https://posthog.com/docs/model-context-protocol.md), a [Slack app](https://posthog.com/slack.md), and a [CLI](https://posthog.com/docs/cli.md). We're open source, so you can inspect [our source code](https://github.com/PostHog). And we ship fast – check out [the weekly changelog](https://posthog.com/changelog.md) to see what's new. GA4 is primarily designed for marketers and growth teams. It integrates tightly with Google Ads and the broader Google Marketing Platform. For developers, it has reporting and admin APIs, BigQuery export, and an MCP server you run yourself, but you need BigQuery to query raw events with SQL. ### 3\. Transparent and cheap pricing (forever) We pride ourselves on [having a generous free tier](https://posthog.com/pricing.md). Web analytics is billed with product analytics, so your first 1 million events every month are free across both, and 97% of companies use PostHog for free. Beyond the free tier, our pricing is usage-based and transparent. Anonymous events, which is what most website traffic is, start at $0.00005 each and get cheaper as your volume grows. There's no minimum spend, no per-seat charge, and no annual contract, and you can set [billing limits](https://posthog.com/docs/billing/limits-alerts.md) so you're never surprised. Want to know how much we'll charge? See our [pricing calculator](https://posthog.com/pricing.md). GA4's core product is free, but once you hit the limits of the free tier you'll need to evaluate GA360, which starts at approximately [$50,000/year according to third party sources](https://posthog.com/blog/google-analytics-cost.md) (Google doesn't publish pricing). **PostHog vs Google Analytics: the short version** - **Choose GA4** if marketing owns your analytics and your budget goes through Google. It's free, and it links natively to Google Ads, Search Console, AdSense, and Ad Manager, so ad costs and attribution show up next to your traffic reports. It also predicts purchase and churn for properties with enough data, and it's the default most marketing teams and agencies already work in. - **Choose PostHog** if you need to know what people do after they land. Every visit is tied to the same user's [session replays](https://posthog.com/session-replay.md), [funnels](https://posthog.com/docs/product-analytics/funnels.md), [errors](https://posthog.com/error-tracking.md), and [feature flags](https://posthog.com/feature-flags.md), so you can go from a traffic source to what those users did in your product. You can query the raw events [with SQL](https://posthog.com/docs/data-warehouse/sql.md) without exporting them, choose [EU hosting](https://posthog.com/blog/posthog-cloud-eu.md), and sign a [BAA for HIPAA](https://posthog.com/docs/privacy/hipaa-compliance.md), and most products have their own [free tier](https://posthog.com/pricing.md). Both are free to start, cover the core web analytics reports, export to BigQuery, and have an MCP server for your agents. You can also run them side by side, with GA4 for ad reporting and PostHog for product. ![](https://res.cloudinary.com/dmukukwp6/image/upload/texture_tan_9608fcca70) ![](https://res.cloudinary.com/dmukukwp6/image/upload/texture_tan_dark_a92b0e022d) Set up PostHog with one command The wizard installs PostHog in your app and starts capturing pageviews and events automatically. `npx @posthog/wizard` ![PostHog Wizard hedgehog](https://res.cloudinary.com/dmukukwp6/image/upload/wizard_3f8bb7a240.png) ## Comparing PostHog and Google Analytics ### Analytics GA4 is primarily built for web analytics, so this is where the comparison matters most. PostHog's [web analytics](https://posthog.com/web-analytics.md) dashboard covers all the core metrics – traffic sources, pageviews, sessions, UTM tracking, and more – while also adding [web vitals](https://posthog.com/docs/web-analytics/web-vitals.md) monitoring, which GA4 lacks, and a [cookieless tracking](https://posthog.com/docs/privacy/data-collection.md#cookieless-tracking) mode that counts visitors with a privacy-preserving hash instead of cookies. GA4 **Pageviews** Track visitors and their views ✓ ✓ **Sessions** Track unique sessions and their durations ✓ ✓ **Bounce rate** See the percentage of users that leave after one pageview ✓ ✓ **Traffic breakdown** See where your visitors and conversions are coming from ✓ ✓ **UTM tracking** Track marketing campaigns with UTM tags ✓ ✓ **Entry and exit paths** See the pages users first visit and the last ones before they leave ✓ ✓ **Outbound clicks** See the links that take users away ✓ ✓ **Conversions** Track actions you want users to take ✓ ✓ **Custom channel types** Create custom channel types by defining rules that match incoming events ✓ ✓ **Web vitals** Monitor the performance of your website ✓ ✗ **Cookieless tracking** Track users without cookies ✓ ✗ **Search tools** Get keyword data and track search ad performance Partial ✓ PostHog goes significantly deeper on product analytics. [Group analytics](https://posthog.com/docs/product-analytics/group-analytics.md) lets you analyze behavior at the account or company level (ideal for B2B SaaS), which GA4 has no built-in way to do. [Person profiles](https://posthog.com/docs/data/persons.md) tie an identified user's events, [session replays](https://posthog.com/docs/session-replay.md), and [feature flags](https://posthog.com/docs/feature-flags.md) together. You can also write [SQL](https://posthog.com/docs/data-warehouse/sql.md) against the raw events behind any [funnel](https://posthog.com/docs/product-analytics/funnels.md), [retention](https://posthog.com/docs/product-analytics/retention.md), or [user paths](https://posthog.com/docs/product-analytics/paths.md) insight, and ask [PostHog AI](https://posthog.com/docs/posthog-ai/start-here.md) what correlates with conversion or drop-off. GA4 [**Group analytics**](https://posthog.com/profiles.md) Track metrics at a company and account level ✓ ✗ **User profiles** Track personally-identifiable user info like name, email, and usage data ✓ User explorer [**Funnels**](https://posthog.com/funnels.md) Track users through a sequence of events to find drop-off and improve conversion ✓ ✓ [**User paths**](https://posthog.com/user-paths.md) Understand how users navigate through your product and where they get stuck ✓ ✓ [**Retention**](https://posthog.com/retention.md) Track user retention over time to understand how long users stay with your product ✓ ✓ **Monetization analytics** Track purchase value, LTV, and other revenue metrics ✓ ✓ **Advertising analytics** Track ROI on Google Ads and other marketing campaigns Beta ✓ **Real-time view** Monitor activity on your site or app as it happens ✓ ✓ **AI-powered metric alerts** AI-powered alerts when metrics change ✓ ✓ You can also go deeper on user behavior with [heatmaps](https://posthog.com/docs/toolbar/heatmaps.md), which GA4 doesn't have. They're free in PostHog: heatmap data doesn't add to your bill, and you get clickmaps, scrollmaps, rage clicks, and mouse movement. There are also [formulas](https://posthog.com/docs/product-analytics/trends/formulas.md) and [custom SQL insights](https://posthog.com/docs/data-warehouse/sql.md). GA4 **Heatmaps** See clicks and mouse movement on your site ✓ ✗ **Clickmaps** See what elements people click on in pages ✓ ✗ **Scrollmaps** Visualize how far users scroll on your website ✓ ✗ **Movement maps** Visualize mouse movements ✓ ✗ **Correlation analysis** Automatically identify significant factors that impact conversion Via PostHog AI ✗ [**Lifecycle**](https://posthog.com/lifecycle.md) Track user lifecycle to understand how users interact with your product ✓ ✗ [**Stickiness**](https://posthog.com/stickiness.md) Track user stickiness over time to understand how long users stay with your product ✓ DAU/MAU ratios only **Custom formulas** Perform calculations and math operations on multiple event series ✓ Calculated metrics **SQL query editor** Write SQL queries directly against your data without a separate data warehouse ✓ ✗ **Toolbar** Tag events or view insights on your live website or app with an overlay ✓ ✗ ### Platform When you choose PostHog, you get more than analytics. GA4 [**Product Analytics**](https://posthog.com/product-analytics.md) Track usage, retention, and feature adoption with comprehensive analytics ✓ ✓ [**Web Analytics**](https://posthog.com/web-analytics.md) Privacy-focused web analytics with real-time data and no sampling ✓ ✓ [**Session Replay**](https://posthog.com/session-replay.md) Watch real user sessions to understand behavior and fix issues ✓ ✗ [**Feature Flags**](https://posthog.com/feature-flags.md) Control feature access with precision and safely roll out changes ✓ ✗ [**Error tracking**](https://posthog.com/error-tracking.md) Track and monitor errors and exceptions in your code ✓ ✗ [**Experiments**](https://posthog.com/experiments.md) Run statistically rigorous A/B/n tests and validate ideas with confidence ✓ ✗ [**Logs**](https://posthog.com/logs.md) Search and analyze your application logs with OpenTelemetry. ✓ ✗ [**Workflows**](https://posthog.com/workflows.md) Automate workflows with your product data ✓ ✗ [**Heatmaps**](https://posthog.com/heatmaps.md) Visualize where users click and scroll on your website ✓ ✗ [**AI Observability**](https://posthog.com/ai-observability.md) Monitor and debug your LLM-powered features ✓ ✗ [**Surveys**](https://posthog.com/surveys.md) Collect product feedback with no-code surveys and customizable targeting ✓ ✗ [**CDP**](https://posthog.com/data-pipelines.md) Ingest, transform, and send data between 145+ tools ✓ ✗ [**Data Stack**](https://posthog.com/warehouse.md) Import, query, model & visualize product and third party data together ✓ ✗ ### AI and MCP Both tools now have built-in AI and an MCP server, so the question is what your agents can see in each. - **GA4** has Ask Advisor, a Gemini-powered assistant in beta for English-language properties, AI overviews that summarize what changed on the Home page and in reports, Analytics Intelligence for automated insights and anomaly detection, and predictive metrics for properties with enough purchase or churn data. Its [MCP server](https://github.com/googleanalytics/google-analytics-mcp) is open source and left experimental status in November 2026. You run it yourself, and it's read-only by default. - **PostHog** has [PostHog AI](https://posthog.com/ai.md) for questions, SQL, and fixes (500 credits a month free), a free [MCP server](https://posthog.com/mcp.md) with a read-only mode, a [Slack app](https://posthog.com/slack.md) (in beta) you can tag in a thread, a [CLI](https://posthog.com/docs/cli.md), [Replay Vision](https://posthog.com/replay-vision.md) for scanning recordings in bulk, and [Scouts](https://posthog.com/blog/what-is-a-scout.md) that watch your data and send reports to an [Inbox](https://posthog.com/docs/self-driving/inbox.md) where agents can open PRs. The difference is what's behind them. GA4's AI and MCP server work from your traffic and conversion reports. PostHog's work from those plus your replays, errors, logs, flags, and external data in the warehouse. ### Price comparison **PostHog charges based on usage.** Products come with a [free monthly allowance](https://posthog.com/pricing.md), and past that you pay published per-unit rates, with billing limits you can set on most products. The price covers the infrastructure, upgrades, and support, and we've written up [what you pay for per event](https://posthog.com/docs/billing/what-you-pay-for-per-event.md). **GA4 is free, and the paid tier is sold through sales.** Standard properties cost nothing, but have limits on sampling, data retention, and BigQuery exports. Analytics 360 raises those limits. Google doesn't publish a price for it, and third-party estimates [start at around $50,000 a year](https://posthog.com/blog/google-analytics-cost.md). #### PostHog and Google Analytics pricing comparison | | PostHog | GA4 | | --- | --- | --- | | **Free plan** | 1M events, 5,000 web + 2,500 mobile replays, 1M flag requests, 100k errors, 10 GB logs, 1M warehouse rows, and 1,500 survey responses a month | Free, with explorations sampled above 10M events, up to 14 months of event-level data, and a daily BigQuery export of 1M events | | **Paid plans** | No base fee; usage-based per product, with a billing limit you can set on most products | Analytics 360, sold through Google's sales team and sales partners | | **Public pricing** | Yes, with a calculator | No | | **Startup program** | [$50k in credits for 12 months](https://posthog.com/startups.md) (under 2 years old, under $5M raised) | Not applicable | | **Self-hosting** | Free (MIT, open core), unsupported | None | ### Integrations It's hard to import data into Google Analytics because: 1. The data type and format you're allowed to [import](https://support.google.com/analytics/answer/10071301) is restrictive. 2. Most imports mean uploading CSV files manually or setting up an SFTP server. Google's newer [import connectors](https://support.google.com/analytics/answer/16308752) for sources like BigQuery, Snowflake, and Google Sheets only cover campaign data and purchase events. In contrast, PostHog is built to be your single source of truth, so it's simple to import data from other sources using our [built-in data warehouse](https://posthog.com/docs/data-warehouse.md), or send PostHog data to other tools using our [realtime destinations](https://posthog.com/docs/data-pipelines/destinations.md). Below is a comparison of some of the most popular apps – see our [data pipeline](https://posthog.com/docs/data-pipelines.md) and [warehouse docs](https://posthog.com/docs/data-warehouse.md) for a complete list of integrations. GA4 **Stripe** Stripe customer data connector ✓ ✗ **Zapier** Trigger Zapier automations ✓ ✓ **Hubspot** Send and receive data from Hubspot ✓ Purchase import only (alpha) **Salesforce** Sync event and person data ✓ Purchase import only (alpha) **Intercom** Messaging and marketing automation ✓ ✗ **Customer.io** Messaging and marketing automation ✓ ✗ **Sentry** Send and receive data from Sentry ✓ ✗ **Google Ads** Import ROI data from Google Ads ✓ ✓ **Google Search Console** Import data from Google Search Console ✓ ✓ **BigQuery** Export data to Google BigQuery for analysis ✓ ✓ ### Security and compliance PostHog makes [GDPR compliance](https://posthog.com/compare/best-gdpr-compliant-analytics-tools.md) easy by letting you choose where your data is hosted: EU or US. Google also offers various [privacy controls](https://support.google.com/analytics/answer/9019185), but you can't choose where your data is stored – a meaningful concern for teams in regulated industries or those serving EU users. GA4 **EU hosting** Access and store your data in the EU ✓ ✗ **HIPAA-ready** Can be compliant with HIPAA ✓ ✗ **Data anonymization** Anonymize user data for privacy ✓ ✓ **Role-based access control** Control access to features and data based on user roles and permissions Enterprise ✓ **Security certification** Third-party security compliance frameworks SOC 2 Type 2 ISO 27001 **SAML/SSO** Use SAML or single sign-on authentication Scale ✓ **2FA** Enforce login with two-factor authentication ✓ ✓ ## When to choose PostHog vs Google Analytics 4 - Want one platform that goes beyond [web analytics](https://posthog.com/web-analytics.md) with [product analytics](https://posthog.com/product-analytics.md), [session replay](https://posthog.com/session-replay.md), [feature flags](https://posthog.com/feature-flags.md), [A/B testing](https://posthog.com/experiments.md), and [error tracking](https://posthog.com/error-tracking.md), plus a [data warehouse](https://posthog.com/warehouse.md) for your business data and agents that work from [Slack](https://posthog.com/slack.md) or [the MCP](https://posthog.com/mcp.md)? Go with **PostHog**. - Need deep integration with Google Ads, Search Console, and the broader Google Marketing Platform for marketing attribution and campaign reporting? **GA4** is built for that. ### Recommendations by team type **For engineering-led product teams** - **PostHog** – [SQL access](https://posthog.com/docs/data-warehouse/sql.md), an [MCP server](https://posthog.com/mcp.md), open-source codebase, [error tracking](https://posthog.com/error-tracking.md), and [AI observability](https://posthog.com/ai-observability.md). Everything a developer needs to understand users, ship features, and debug problems without leaving the platform. **For marketing and growth teams** - **GA4** – Best-in-class integration with Google Ads, Search Console, and Google's attribution ecosystem. If your team lives in Google's marketing stack, GA4 is the natural fit. **For product managers and UX teams** - **PostHog** – [Funnels](https://posthog.com/docs/product-analytics/funnels.md), [retention](https://posthog.com/docs/product-analytics/retention.md), [session replay](https://posthog.com/session-replay.md), and [surveys](https://posthog.com/surveys.md) in one place means PMs can answer behavioral questions and gather user feedback without stitching together multiple tools. **For B2B SaaS companies** - **PostHog** – [Group analytics](https://posthog.com/docs/product-analytics/group-analytics.md) enables account-level analysis, so you can understand behavior at the company level, not just the individual user level. **For privacy-conscious and regulated organizations** - **PostHog** – [EU hosting](https://posthog.com/blog/posthog-cloud-eu.md) in Frankfurt, a [BAA for HIPAA](https://posthog.com/docs/privacy/hipaa-compliance.md) on the Boost, Scale, and Enterprise packages, [cookieless tracking](https://posthog.com/docs/privacy/data-collection.md#cookieless-tracking), and raw data access via the built-in [data warehouse](https://posthog.com/warehouse.md). GA4 doesn't offer HIPAA compliance or EU-only data residency. **For content and media sites** - **GA4** – If your primary need is understanding content performance, audience demographics, and ad revenue attribution across a high-traffic publishing site, GA4's native integrations with Google AdSense, Ad Manager, and Search Console are hard to beat. **For early-stage startups** - **PostHog** – A single platform that covers analytics, replays, feature flags, and more from day one. The [generous free tier](https://posthog.com/pricing.md) includes 1 million events, 5,000 web and 2,500 mobile session replays, and 1 million feature flag requests per month. [Startups can also qualify for $50k in free credits](https://posthog.com/startups.md). **For enterprise teams** - **Tied** – GA360 raises the sampling threshold in explorations from 10 million to 1 billion events, adds unsampled explorations, and keeps event data for up to 50 months, with deep Google Marketing Platform integration for large marketing organizations. PostHog offers [SSO enforcement](https://posthog.com/docs/settings/authentication/sso.md), a [BAA for HIPAA compliance](https://posthog.com/docs/privacy/hipaa-compliance.md), priority support, and a complete product development stack with transparent pricing. ![](https://res.cloudinary.com/dmukukwp6/image/upload/texture_tan_9608fcca70) ![](https://res.cloudinary.com/dmukukwp6/image/upload/texture_tan_dark_a92b0e022d) Start your move from Google Analytics The wizard installs PostHog in your app in minutes. Our migration guide covers the rest. `npx @posthog/wizard` ![PostHog Wizard hedgehog](https://res.cloudinary.com/dmukukwp6/image/upload/wizard_3f8bb7a240.png) ## Frequently asked questions **What does it mean for PostHog to be your product's context layer?** GA4 can tell you where your visitors came from and which pages they viewed; PostHog knows that too, as well as what they did in your product, what they saw, what broke, which flags they were in, and what they pay you. That's because [web analytics](https://posthog.com/web-analytics.md), [product analytics](https://posthog.com/product-analytics.md), [session replay](https://posthog.com/session-replay.md), [error tracking](https://posthog.com/error-tracking.md), [feature flags](https://posthog.com/feature-flags.md), [logs](https://posthog.com/logs.md), and [AI observability](https://posthog.com/ai-observability.md) all share one model of users and sessions. The [data warehouse](https://posthog.com/warehouse.md) and [data pipelines](https://posthog.com/data-pipelines.md) bring in the business data that lives elsewhere, like Stripe, HubSpot, Postgres, or Google Ads, and push data back out, so your agents can read across all of it. They can work from [Slack](https://posthog.com/slack.md), the [web app](https://posthog.com/ai.md), or your editor via [the MCP](https://posthog.com/mcp.md), and they see your whole product, not just your traffic. **PostHog says it makes your product "self-driving" – what does that mean?** It means PostHog digs through your product data, finds what's worth fixing, and has agents do the work. It starts with context. A full suite of developer tools – [AI observability](https://posthog.com/ai-observability.md), [product analytics](https://posthog.com/product-analytics.md), [session replay](https://posthog.com/session-replay.md), [feature flags](https://posthog.com/feature-flags.md), [experiments](https://posthog.com/experiments.md), [error tracking](https://posthog.com/error-tracking.md), [logs](https://posthog.com/logs.md), and more – captures everything happening in your product, and a [data warehouse](https://posthog.com/warehouse.md) unifies it into one source agents can read across. From there, [Scouts](https://posthog.com/blog/what-is-a-scout.md) read across all of it and sort what's worth knowing from what's just noise. What clears the bar becomes a report in your inbox: an agent picks it up, roots out the cause, and opens a PR. You review and merge. You can steer it from [Slack](https://posthog.com/slack.md), the [web app](https://posthog.com/ai.md), or your own editor via [the MCP](https://posthog.com/mcp.md) or [CLI](https://posthog.com/docs/cli.md). **Does PostHog have reports, dimensions, and other GA4 features?** Yes, PostHog has much of the same functionality as Google Analytics, but we use different terminology. Here’s a quick comparison of the two: | GA4 name | PostHog equivalent | What it is | | --- | --- | --- | | Report or exploration | [Insight](https://posthog.com/docs/product-analytics/insights.md) | Query and filter analytics data and visualize results. Types include trends, funnels, retention, and more. | | Dimensions | [Properties](https://posthog.com/docs/data/events.md) | Additional details added to events, persons, and groups, such as location, browser, and status. | | Dashboard | [Dashboard](https://posthog.com/docs/product-analytics/dashboards.md) | A collection of insights displayed together. | | Audience | [Cohort](https://posthog.com/docs/data/cohorts.md) | A set of users grouped by shared properties or behaviors. | | Segment | [Filter](https://posthog.com/docs/product-analytics/trends/filters.md) | A way to create a subset of your data. | | Key event (formerly conversion) | [Conversion goal](https://posthog.com/docs/web-analytics/conversion-goals.md) or [action](https://posthog.com/docs/data/actions.md) | An event or collection of events representing a target behavior. | | Client ID | [Distinct ID](https://posthog.com/docs/getting-started/identify-users.md) | A unique identifier for a user. | | Measurement ID | [Project token](https://posthog.com/docs/settings/projects.md) | The unique identifier for your project, used to send data to your PostHog instance. | **What are the main differences between PostHog and Google Analytics?** - **Scope:** GA4 covers web and app analytics for marketing; PostHog adds session replay, feature flags, experiments, error tracking, surveys, logs, AI observability, and a data warehouse - **Pricing:** GA4 is free with limits on sampling, retention, and exports, and Analytics 360 is sold through sales; PostHog has a free tier and then published usage-based pricing - **Ads and attribution:** GA4 links natively to Google Ads, Search Console, AdSense, and Ad Manager; PostHog's [marketing analytics](https://posthog.com/docs/web-analytics/marketing-analytics.md) is in beta - **Data access:** PostHog lets you query raw events with SQL in the app; GA4 needs the BigQuery export for that - **Privacy and compliance:** PostHog offers EU hosting in Frankfurt and a BAA on its Boost, Scale, and Enterprise packages; GA4 has no EU-only data residency and no BAA - **Agents:** PostHog's MCP server is hosted and can read and write across its products; Google's is self-run and read-only by default - **Open source:** PostHog is open source (MIT, open core); GA4 is closed source **What are the main similarities between PostHog and Google Analytics?** Both: - Track pageviews, sessions, traffic sources, UTMs, and conversions - Are event-based, with custom events and properties - Offer funnels, user paths, and retention analysis - Measure websites and mobile apps - Have a free plan - Exclude known bot traffic by default - Export to BigQuery and have an MCP server **Can PostHog replace Google Analytics?** Yes, for most use cases – [our marketing team uses PostHog](https://posthog.com/blog/posthog-marketing.md), for example. PostHog's [web analytics](https://posthog.com/web-analytics.md) covers the core reports most teams use in GA4, including traffic sources, pageviews, sessions, bounce rate, UTMs, and [conversion goals](https://posthog.com/docs/web-analytics/conversion-goals.md), and you can install it through [Google Tag Manager](https://posthog.com/docs/libraries/google-tag-manager.md). The main exception is Google's ad ecosystem. GA4 links natively to Google Ads, Search Console, AdSense, and Ad Manager, and PostHog's [marketing analytics](https://posthog.com/docs/web-analytics/marketing-analytics.md) is still in beta. If your reporting depends on Google's attribution, run both. See our [guide to PostHog for Google Analytics users](https://posthog.com/blog/google-analytics-to-posthog.md) for more. **How much do PostHog and Google Analytics cost?** **Google Analytics 4** is free for most users. However, there are limits: GA4 free keeps event-level data for explorations for up to 14 months, applies data sampling to large exploration queries (over 10M events), and limits the daily BigQuery export to 1 million events. For teams that consistently hit these limits, **Google Analytics 360 (GA360)** is the enterprise tier. Pricing isn't publicly listed – it's sold through Google's sales team and sales partners, and [third-party estimates](https://posthog.com/blog/google-analytics-cost.md) start at around $50,000 a year. **PostHog** uses transparent, usage-based [pricing](https://posthog.com/pricing.md). It's free to get started – no credit card required. Every month you get 1 million analytics events, 5,000 web and 2,500 mobile session replays, 1 million feature flag requests, 1,500 survey responses, and more for free. After the free allowance, you pay only for what you use, with pricing that scales down at volume. You can set [billing limits](https://posthog.com/docs/billing/limits-alerts.md) on most products to avoid surprises. **Does PostHog offer a free trial?** With PostHog, it's free to get started – no trial needed. You get a generous monthly free allowance of events, replays, feature flag requests, and more. If you stay within those limits, PostHog is free forever. See our [pricing page](https://posthog.com/pricing.md) for the full breakdown. **Can I migrate from Google Analytics to PostHog?** Yes – see our [Google Analytics to PostHog migration guide](https://posthog.com/docs/migrate/google-analytics.md) for step-by-step instructions. You can also run PostHog alongside GA4 during a transition period, since both can be deployed simultaneously. **Does PostHog block bots by default?** Yes, **PostHog's** JavaScript SDK blocks most known bots by default, so they never send events. See the [full blocklist in our docs](https://posthog.com/docs/product-analytics/troubleshooting.md#does-posthog-block-bots-by-default). In GA4, bot filtering is also on by default, but the filter lists differ – this can cause discrepancies between the two tools. **What about ad blockers?** We recommend [deploying a reverse proxy](https://posthog.com/docs/advanced/proxy.md), which lets you send events to PostHog using your own domain. Events sent from your own domain are far less likely to be intercepted by tracking blockers, giving you more complete data. We have reverse proxy setup guides for AWS CloudFront, Caddy, Cloudflare, Netlify, Vercel, Railway, and more. **Does PostHog have session replay?** Yes. **PostHog** includes [session replay](https://posthog.com/session-replay.md) with console logs, network request monitoring, a DOM explorer, and performance metrics – built for debugging as much as UX analysis. [Replay Vision](https://posthog.com/docs/replay-vision.md) uses AI to scan and summarize recordings for you. GA4 does not include session replay. **Does PostHog have feature flags and A/B testing?** Yes. PostHog includes both [feature flags](https://posthog.com/feature-flags.md) and [experiments](https://posthog.com/experiments.md) natively, tightly integrated with analytics and session replay. GA4 does not offer either of these features. **Does GA4 support BigQuery export for free?** Yes. Standard GA4 properties include a native BigQuery export, with the daily export capped at 1 million events. You can use BigQuery's free sandbox, but you pay BigQuery for anything beyond its limits and for streaming export, which has no event cap. GA360 raises the daily limit to billions of events. Not that you asked, but PostHog also has a [BigQuery batch export](https://posthog.com/docs/data-pipelines/batch-exports/bigquery.md). **Is PostHog GDPR-compliant and HIPAA-compliant?** Yes. **PostHog** [supports GDPR compliance](https://posthog.com/docs/privacy/gdpr-compliance.md) with EU hosting in Frankfurt and cookieless tracking, offers a [BAA for HIPAA](https://posthog.com/docs/privacy/hipaa-compliance.md) on the Boost, Scale, and Enterprise packages, and is SOC 2 Type 2 certified. GA4 does not support HIPAA and doesn't offer EU-only data residency. **Are there discounts for non-profits and startups?** Yes. Non-profit organizations [can get an additional discount](https://posthog.com/handbook/growth/sales/contract-rules.md#non-profit-discounts) when they prepay for PostHog credits. Startups can apply for $50,000 in free credits (plus additional perks) through the [PostHog for Startups program](https://posthog.com/startups.md). **What are the best alternatives to Google Analytics in 2026?** The [top GA4 alternatives](https://posthog.com/compare/best-ga4-alternatives.md) include: - **[PostHog](https://posthog.com/web-analytics.md):** Best all-in-one platform for product and engineering teams wanting analytics, replay, feature flags, experiments, and more together - **[Plausible](https://posthog.com/compare/posthog-vs-plausible.md):** Best lightweight, privacy-focused option for simple web analytics - **[Matomo](https://posthog.com/compare/posthog-vs-matomo.md):** Best self-hosted GA alternative with full data ownership - **[Amplitude](https://posthog.com/compare/posthog-vs-amplitude.md):** Best for marketing-led teams needing advanced product analytics - **[Mixpanel](https://posthog.com/blog/posthog-vs-mixpanel.md):** Best for product teams wanting event-based analytics with a clean UI See our full guide to [GA4 alternatives](https://posthog.com/compare/best-ga4-alternatives.md) for more options. > PostHog is your product's context layer. With a full suite of developer tools – [AI observability](https://posthog.com/ai-observability.md), [product analytics](https://posthog.com/product-analytics.md), [session replay](https://posthog.com/session-replay.md), [feature flags](https://posthog.com/feature-flags.md), [experiments](https://posthog.com/experiments.md), [error tracking](https://posthog.com/error-tracking.md), [logs](https://posthog.com/logs.md), and more – PostHog ingests and stores all the data agents need to diagnose problems, uncover opportunities, and ship fixes. A [data warehouse](https://posthog.com/warehouse.md) and [CDP](https://posthog.com/data-pipelines.md) tie it all together, unifying that context into one source agents can read across. You can steer it all from [Slack](https://posthog.com/slack.md), [the web app](https://posthog.com/ai.md), the desktop ([PostHog Desktop](https://posthog.com/desktop.md)), or your own editor via [the MCP](https://posthog.com/mcp.md).