Microsoft Clarity vs Google Analytics vs PostHog

Clarity fits teams that need free heatmaps and session recordings, Google Analytics fits teams reporting inside Google's ecosystem, and PostHog fits teams that want product analytics, flags and surveys with a choice of hosting. Self-hosting PostHog is officially unsupported, so the answer changes with consent rules, retention needs and engineering capacity.

On this page

Microsoft Clarity vs Google Analytics vs PostHog: which fits which team

Choose Microsoft Clarity when the immediate need is free heatmaps and session recordings on web pages, Google Analytics when reporting already lives inside Google's ecosystem and analysts work in its reports and BigQuery exports, and PostHog when you want product analytics, feature flags and surveys in one suite. Clarity and Google Analytics are vendor-hosted, and the facts we have describe no self-hosted option for either. PostHog can be self-hosted, but its self-hosted path is officially unsupported, so a team that needs supported self-hosting should weigh that before shortlisting it. No single tool wins overall; the right choice depends on the conditions below.

Hosting and data control differ more than the feature lists suggest. Clarity stores data in Microsoft's Azure cloud, EU customers contract with Microsoft Ireland Operations Limited, and recordings are kept for 30 days, while favorite recordings and a random sample can persist for up to 9 months (Microsoft Clarity FAQ). Google Analytics 4 standard properties keep user-level and event data for 2 or 14 months, and signals data expires after 26 months by default, so the retention you choose shapes what explorations and funnel reports can show. PostHog Cloud offers US (Virginia) and EU (Frankfurt) regions, with 1-year retention on the Free plan and 7-year retention on Pay-as-you-go. Confirm each vendor's current retention and data location terms in writing before you decide.

Three conditions change the answer. First, consent: since October 31, 2025, Clarity enforces consent signal requirements for visitors from the European Economic Area, the United Kingdom and Switzerland, and without valid consent it limits collection there, so a team with traffic from those regions should confirm its consent banner feeds Consent Mode before relying on recordings. Second, retention: if you need recordings or metrics beyond these windows, check export options early, because Clarity's Data Export API returns dashboard metrics for only the previous 1 to 3 days and allows 10 requests per project per day. Third, engineering capacity: PostHog's free Docker Compose hobby deployment comes without vendor support, so a team without people to run upgrades and backups should plan for PostHog Cloud or an outside operator. Google Analytics teams should also budget BigQuery skills, since standard properties are capped at 1 million exported events per day.

Which analytics tool fits each scenario, and why

This table matches common team situations to the analytics tool that fits best and the condition that makes that choice hold. Read each row against your traffic volume, consent obligations, hosting limits and staffing before you shortlist. The main takeaway is that free tiers, data residency and in-house operating capacity change the answer more often than feature lists do.

ScenarioBest fitWhy
A marketing site that needs free heatmaps and recordings, with no product analytics neededMicrosoft ClarityFree with no traffic limits or sampling. Heatmaps cap at 100,000 page views each, and consent is required for EEA, UK and Swiss visitors.
A team already reporting in Google's ecosystem with GA4 or BigQueryGoogle AnalyticsNative BigQuery export. Standard properties export up to 1 million events a day, so check volume. Exports incur BigQuery storage and processing charges.
A product team that wants analytics, flags and surveys in one suitePostHog CloudProduct analytics, session replay, feature flags and surveys in one product. SSO and audit logs are sold as paid platform packages.
An EU-based team facing consent and residency reviewPostHog Cloud EU (Frankfurt)Frankfurt hosting is offered. Confirm the consent design with your privacy team, since Clarity needs valid consent before recording EU visitors.
A team with no engineers to run servers and a need for product analyticsPostHog CloudSelf-hosting is officially unsupported, so Cloud removes server operation. The free plan covers 1 million events a month with 1 project.
A team that must keep behavioral data on its own servers and has in-house operations skillsPostHog self-hosted (hobby)MIT-licensed Docker Compose install. PostHog recommends Cloud above about 100k events a month and offers no customer support for self-hosted instances.

Microsoft Clarity vs Google Analytics vs PostHog: what is free and what is paid

Microsoft Clarity is free, and Microsoft's Clarity FAQ states that it is free forever with no paid version to upgrade to, no traffic limits and no sampling. The license cost is zero, so the costs that remain are consent handling, data retention planning, export engineering and the privacy review your team will run. This page does not establish a self-hosted option or a source license for Clarity, so confirm license terms with Microsoft before you plan around either.

  • No license fee: Clarity has no paid tier, so there is no upgrade path to budget for. The trade-off is that you cannot buy more retention or features from the same product.
  • Retention limits: Recordings are kept 30 days from the time of recording. Favorite recordings and a random sample are kept for up to 9 months. Longer evidence needs your own export process.
  • Heatmap cap: Heatmaps are limited to 100,000 page views each, which matters most for high-traffic pages you want to compare over time.
  • Consent requirements: From October 31, 2025, Clarity enforces consent signals for visitors from the European Economic Area, the United Kingdom and Switzerland, and Consent Mode is enabled by default for them. Without valid consent, session recordings and behavioral analytics are limited there, so consent tooling is part of the running cost.
  • Export limits: The Data Export API returns dashboard metrics in JSON for the previous 1 to 3 days, allows 10 requests per project per day, up to three dimensions per request and 1,000 rows without pagination. Plan any warehouse feed around these limits.

Before you budget, confirm the current FAQ terms, where your data is stored and which Microsoft entity you contract with for your region, and get the license position for any self-hosted or exported use in writing from Microsoft.

Microsoft Clarity vs Google Analytics vs PostHog side by side on limits and hosting

This table sets Microsoft Clarity, Google Analytics and PostHog side by side on licensing, hosting, consent, retention, export and API limits, and support. Read each row against your regions, data volume and plan tier, since caps differ by product and edition. The main takeaway: Clarity and Google Analytics are hosted services whose export and API caps matter most, while PostHog is the only option here with a self-hostable path, and that path is officially unsupported.

FactorMicrosoft ClarityGoogle AnalyticsPostHog
LicenseFree Microsoft service under Microsoft's terms. Confirm license terms and any code access.Hosted service under Google's terms. Confirm usage terms with Google before relying on it.MIT Expat, except the ee/ directory under a separate license.
Hosting locationMicrosoft Azure. EU customers contract with Microsoft Ireland Operations Limited.Google-operated. Data from these regions is collected on servers based there before processing.PostHog Cloud in US (Virginia) or EU (Frankfurt) regions.
Self-hostingConfirm with Microsoft whether any self-hosted option exists beyond the hosted service.No self-hosted edition. Confirm deployment options and terms with Google.Free Docker Compose hobby deployment under MIT, officially unsupported.
Free tierFree forever, with no traffic limits, no sampling and no paid version.Standard GA4 is free; Analytics 360 is the paid enterprise edition.Free plan: 1 project, 1-year retention, first 1 million analytics events monthly free.
Consent for EEA, UK and Swiss visitsConsent signals enforced since October 31, 2025. Consent Mode on by default; recordings need valid consent.No IP addresses logged from these users. Regional location and device data can be disabled per property.Confirm cookie and consent setup for these visitors with PostHog before launch.
RetentionRecordings kept 30 days; favorites and a random sample up to 9 months.GA4 standard keeps user and event data 2 or 14 months; signals default to 26 months.Free plan 1 year; Pay-as-you-go 7 years.
Export optionsData Export API for dashboard metrics. Confirm whether any other export option exists.Daily BigQuery cap of 1 million events on standard. Streaming has no cap; Google Analytics Help lists $0.05 per GB.Confirm export formats and bulk options for your plan with PostHog.
API limitsData Export API: 1 to 3 days of data, 10 requests per project daily, 1,000 rows, no pagination.Data API: 200,000 core tokens per day for standard properties.Confirm API rate limits and query quotas for your plan with PostHog.
Support modelConfirm support tiers and response terms with Microsoft before depending on it.Standard help resources. Enterprise-level support and SLAs come with paid Analytics 360.Cloud plans for hosted use. Self-hosted deployments are officially unsupported, with no PostHog support.

Where analytics data is stored and what consent changes

For Clarity, the storage location is set by Microsoft's contract terms, but consent behavior depends on where your visitors are. Clarity data is stored in the Microsoft Azure cloud service. EU customers contract with Microsoft Ireland Operations Limited, which has standard contractual clauses with Microsoft Corporation in the United States. From October 31, 2025, Clarity enforces consent signal requirements for visits from the European Economic Area, the United Kingdom and Switzerland, and Consent Mode is enabled by default for those visitors, so cookies are set only after valid consent. Without proper consent, Clarity limits data collection in consent-required jurisdictions, and session recordings and behavioral analytics need valid consent there. Confirm that your consent management platform passes the consent signal to Clarity, because a banner that does not pass it will leave recordings limited in those regions. Microsoft's Clarity Consent Mode documentation covers the setup steps.

Google Analytics handles EU, Swiss and UK traffic with controls you set in the property, and the choice affects what your privacy notice can say. Google states that Google Analytics does not log or store IP addresses from users in those regions. Device data from those regions is collected on servers based there before it is forwarded for processing. Properties can disable granular location and device data per region, so you can reduce what is collected from a region without changing the property for everyone else. Test the settings in your own tag configuration and record which data points remain, because that list is what your legal team will need to review. Retention is a separate decision: GA4 standard properties keep user-level and event data for 2 or 14 months, and signals expire after 26 months by default, so set the period deliberately. The Google Analytics EU-focused data and privacy guide is the natural starting point for this review.

PostHog's residency is set by where you deploy it. PostHog Cloud offers two hosting regions, US (Virginia) and EU (Frankfurt), so choose the region when you create the project and record that choice in your data map. A self-hosted instance keeps the data it collects in infrastructure you operate, whether that is a cloud account, a data center or an air-gapped network, which moves storage control to your team. It also moves consent gating, access control, upgrades and backups to your team, because PostHog's self-host documentation states that self-hosted deployments are officially unsupported. Before you pick between Cloud and self-hosting, ask your legal and privacy team which region and hosting model they will accept, and confirm the consent flow in your SDK configuration. Conclusions about residency, consent and lawful basis belong to your legal and privacy team. DeployOpen does not issue audit reports or certifications; independent auditors and certification bodies do.

How to choose: the decision path from recordings to product analytics

The path starts with one question: does the team need session recordings or heatmaps only? A yes points to Microsoft Clarity, but EEA, UK and Swiss visitors need a consent check first. Otherwise, the next question is whether Google reporting or BigQuery export matters, which leads to Google Analytics and its retention and export limits. Teams that need flags, surveys and experiments in one suite reach PostHog. From there, the choice is PostHog Cloud in the US or EU region, or self-hosting, which first checks expected volume and whether an officially unsupported deployment is acceptable.

Decision path from session recordings to self-hosted PostHog.

What drives the running cost of each platform

Each platform puts its running cost in a different place: a metered usage line, a sales quote, a server and staff time, or a BigQuery pipeline. The cards separate one-time work from recurring spend and name what moves each figure. Build your cost model from them before you compare feature lists.

Clarity: consent and export work

Clarity carries no license fee. Microsoft's FAQ says it is free forever, with no traffic limits, no sampling and no paid version to upgrade to. The recurring cost is internal work. Clarity enforces consent signal requirements for visitors from the European Economic Area, the United Kingdom and Switzerland, and without valid consent it limits collection there, so your team owns the consent setup. If you need history beyond the short export window, plan around the Data Export API, which returns only the previous 1 to 3 days.

Export requests per project
10 per day
Clarity FAQ

Google Analytics: BigQuery export charges

The standard tier is Google's non-enterprise edition, so the cost you control most is BigQuery. Every export carries BigQuery storage and processing costs, and those recur for as long as you keep the tables and keep querying them. Streaming export has no volume limit, but Google's help page attaches a per-GB charge to it. Standard properties also cap the daily export at 1 million events. A free BigQuery sandbox covers small exports, but exports beyond its limits are billed. Ask your data team for a monthly storage and query estimate based on your event volume.

Streaming export charge
$0.05 per GB
BigQuery export help

Analytics 360: a sales quote

Analytics 360 is Google's paid enterprise edition, and Google lists no price on its page, so the number comes from a sales quote. Ask what the fee covers and how long it is committed. Google markets service level agreements across collection through attribution and BigQuery daily export, plus unsampled results and enterprise support, so get each commitment in writing. Compare the daily export ceiling and the Data API quota with your own volumes. Because BigQuery storage and processing still apply to exports, confirm whether any of those costs sit inside the quote.

Events exportable daily
20 billion
Analytics 360 page

PostHog Cloud: usage and packages

PostHog Cloud is metered. The first block of analytics events each month is free, and usage above that is billed, so your running cost follows event volume and the products you switch on. Platform packages for SSO, audit logs, custom roles and project permissions are sold separately, so a regulated team should price them into the quote from the start. Choose the US (Virginia) or EU (Frankfurt) region before you go live. Ask whether the free allowance applies per product or across the suite, and get the metering rule for each product in writing.

Free analytics events monthly
1 million
PostHog pricing

PostHog self-hosted: staff time

The hobby deployment is free under the MIT license and installs with the deploy-hobby script on Docker Compose. The hardware recurs, and PostHog recommends a server with 4 vCPU, 16 GB of RAM and more than 30 GB of storage. The larger line is staff time. PostHog states that self-hosted deployments are officially unsupported and that it offers no customer support for infrastructure questions, so upgrades, backups and incidents fall to your team. The README advises moving to Cloud once event volume passes its scale guidance. Premium features in the ee directory need a PostHog license on a self-hosted instance.

Events per month
100k
Self-host docs

Switching cost and retention

Switching cost is mostly one-time, but teams underbudget it. Retention windows decide how much history you can carry: GA4 standard properties keep event data for 2 or 14 months, and Clarity recordings last 30 days. Export before data expires. Google's Universal Analytics history was permanently deleted when access ended in the week of July 1, 2024. The largest hidden task is re-instrumenting events: every tag, custom event and dashboard must be rebuilt in the new tool and checked against the old numbers. Ask each vendor which export formats it offers and whether exports include event definitions.

Default GA4 signals expiry
26 months
Data retention help

What implementing each platform involves

Clarity is the lightest of the three to start, and most of its effort sits in consent. Engineers add the Clarity tag to every page that should record. For visitors from the European Economic Area, the United Kingdom and Switzerland, Clarity enforces consent signal requirements from October 31, 2025, and Consent Mode is on by default for those visits. Your privacy owner should confirm that the consent platform sends a valid signal, because valid consent is needed for session recordings and behavioral analytics there. If you need history beyond the export window, schedule a daily job: the Data Export API returns dashboard metrics for only the previous 1 to 3 days, allows 10 requests per project per day and caps responses at 1,000 rows without pagination.

Google Analytics asks for more decisions early, and several are hard to undo. Create a GA4 property and data stream, then choose 2 or 14 months for the standard retention period, based on how far back your analysts need to explore, since Google says this setting affects explorations and funnel reports only. If you will export raw events, set up BigQuery export early. The free BigQuery sandbox accepts exports, but exports beyond sandbox limits incur charges, and all exports carry storage and processing costs. Streaming export adds $0.05 per GB, according to Google's help documentation, and daily export from a standard property is capped at 1 million events. If older data matters, check Universal Analytics history first: UA data access ended the week of July 1, 2024, and unexported data was permanently deleted, so confirm whether your team holds any UA exports before planning a move to GA4.

Start the PostHog evaluation on the free Docker Compose hobby deployment, installed with the deploy-hobby script and sized from vendor guidance of 4 vCPU, 16 GB of RAM and more than 30 GB of storage. Engineers then instrument events, and feature flags and surveys build on that work. Check the ee directory license before relying on premium features: code in the ee directory needs a PostHog license on a self-hosted instance, while posthog-foss is fully free. The README expects open-source installs to stay near 100k events per month and recommends PostHog Cloud above that, in US (Virginia) or EU (Frankfurt) regions. Self-hosting is officially unsupported, and new Kubernetes deployments of the paid self-hosted product are no longer supported. Ask for a written scope with timelines first, and name who fills each role: engineers for instrumentation, a privacy owner for consent and retention, and operators for any self-hosted server.

Questions buyers ask about cost, effort and what the work needs

How much does each platform cost to run?

Clarity has no license fee. Microsoft's Clarity FAQ says it is free forever, with no traffic limits, no sampling and no paid version to upgrade to. For standard Google Analytics 4, confirm current terms with Google before you budget. Analytics 360 is Google's paid enterprise edition, with service level agreements and no published price, so buyers are directed to sales. PostHog Cloud's pricing page says the first 1 million analytics events are free each month, and paid plans add projects and longer data retention. Self-hosting the hobby deployment has no license fee under MIT, but the server recurs. PostHog's self-host documentation recommends 4 vCPU, 16 GB of RAM and more than 30 GB of storage. Recurring costs in every model include hosting, storage, BigQuery charges where you export data, and staff time. Ask any vendor or partner for a written quote that separates one-time work from monthly costs.

Can we run PostHog ourselves at no license cost, and what does the ee license change?

Yes, for the code outside the ee directory. The PostHog repository is MIT Expat licensed except for content in ee/, which has its own license in ee/LICENSE. The README says premium features from ee on a self-hosted instance require a PostHog license, so those features carry a license cost. If you need fully free software, the README points to posthog-foss, a repository purged of all proprietary code and features, so it omits the features covered by the proprietary terms. Self-hosted deployments are officially unsupported, and PostHog offers no customer support for product or infrastructure questions on them, so the free license comes with your own operating responsibility. Have counsel compare ee/LICENSE with the features you plan to enable, and confirm which repository your team will deploy from before you start.

How long does implementation take and what does it need from our team?

Timing depends on scope, and no duration can be given without one. The main drivers are the products you turn on (product analytics, session replay, feature flags, surveys), the hosting target, SSO and access control, consent setup, the event volume you expect, and how much history you migrate from an existing tool. The PostHog README says open-source deployments should scale to about 100k events per month and recommends PostHog Cloud above that, which changes the work. From your side, expect to name an owner, grant access to cloud accounts and tag management, assign an engineer to instrument events, and have a privacy reviewer sign off on consent and data handling. DeployOpen works on fixed-scope engagements agreed in writing before work starts. Ask for a written scope with deliverables, the dependencies on your team and dated milestones before you commit.

Can we keep our history if we leave Clarity or Google Analytics?

You can keep history, but only if you export it before it expires. Clarity keeps recordings for 30 days from the time of recording, keeps favorite recordings and a random sample for up to 9 months, and limits heatmaps to 100,000 page views each. Its Data Export API returns dashboard metrics for the previous 1 to 3 days only, allows 10 requests per project per day and caps responses at 1,000 rows without pagination, so a bulk archive needs a schedule set up early. In Google Analytics 4 standard properties, user-level and event data is kept for 2 or 14 months, and Analytics 360 adds 26, 38 and 50 month options. The retention setting applies only to explorations and funnel reports, so standard aggregated reports sit outside it. Google signals data expires after 26 months by default. Set up BigQuery export early, since standard properties have a daily limit of 1 million events and all exports carry BigQuery storage and processing costs. Google's Universal Analytics shutdown permanently deleted unexported data, so treat every expiry date as a deadline.

Does using Clarity or Google Analytics meet EU consent rules?

Whether your setup meets EU consent rules is a judgment for your privacy team and counsel, not for the analytics vendor. Clarity now enforces consent signal requirements for visitors from the European Economic Area, the United Kingdom and Switzerland, starting October 31, 2025. Consent Mode is enabled by default for those visitors and sets cookies only after valid consent. Microsoft's Clarity FAQ says that without proper consent, Clarity limits data collection there, and valid consent is needed for session recordings and behavioral analytics. Microsoft also states that EU customers contract with Microsoft Ireland Operations Limited, which has standard contractual clauses with Microsoft Corporation. Google states that Google Analytics does not log or store IP addresses from EU, Swiss or UK users, and properties can disable granular location and device data by region. Your team should document each decision and keep the evidence. DeployOpen prepares systems, controls and evidence for compliance assessments, but it issues no certifications or audit reports. Independent auditors and certification bodies do that work.

Can our own team run this without outside help?

For many teams, basic installs are within reach. Adding a tag or script to a site and checking that events arrive is routine work for an engineer. Self-hosting PostHog is a heavier load. PostHog states that self-hosted deployments are officially unsupported and offers no customer support for product or infrastructure questions there, so your team must own upgrades, backups, hardening, incident response and on-call for the stack. Before you choose the self-hosted path, confirm that the operations skills and capacity exist in-house. A common split is an internal owner for day-to-day operations, with a partner covering planning, hardening and documentation under a written scope. DeployOpen plans, implements, hardens, backs up, upgrades, documents and supports self-hosted platforms inside your own infrastructure, on fixed scope agreed in writing, with ongoing support available as a retainer. Confirm the handover terms, including who holds the runbooks, before work starts.

How DeployOpen helps you choose and implement without favoring a platform

DeployOpen is a Chainscore Labs company that plans, implements and supports self-hosted open-source platforms inside the client's own infrastructure. We do not start from a preferred tool here, because Microsoft Clarity and Google Analytics are hosted services and PostHog is the option with a documented self-hosted deployment, so the right answer depends on data location, consent obligations and who will operate the system.

How we scope

  • The written scope names the tools in play, the sites or apps measured and the consent flows covered.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Clarity and Google Analytics are hosted services, so confirm in the written scope which configuration and export work is included.

How we build

  • For self-hosted PostHog, build work covers deployment, hardening, backups and the integrations named in the scope.
  • Event tracking plans should be written down before tags go live, so that comparisons between tools are valid.
  • Consent setup is checked per region, including the EEA, UK and Swiss requirements that apply to Clarity.

How we hand over

  • Handover documents which data leaves the organization, where it is stored and who holds the contract.
  • Retention settings are written out per tool, including Clarity's 30-day recording window and GA4's 2 or 14 month options.
  • Runbooks for self-hosted PostHog name who owns upgrades, backups and incidents, since PostHog offers no customer support on self-hosted instances.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, quoted from the written scope.
  • Retainers can cover upgrades for the self-hosted PostHog option, which otherwise falls to your own team.
  • Confirm each vendor's current support terms before you commit, since DeployOpen does not set them.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.