Optimizely Experimentation vs PostHog

Optimizely Experimentation fits teams that want a vendor-run platform. Self-hosted PostHog fits teams that keep flags, experiments and analytics in their own infrastructure and can operate it, because PostHog does not support self-hosted instances.

On this page

Optimizely Experimentation vs PostHog: which fits your team?

Choose Optimizely Experimentation when you want a vendor-run platform and your renewal, MAU bill or data residency rule can be met under Optimizely's hosting and support model. Optimizely publishes no prices for its experimentation products and packages every plan individually, so a renewal starts with a written quote that states the MAU count it is based on. Feature Experimentation counts a unique user ID once per month when that user triggers at least one decision or tracking event, and disabled flags and targeted delivery rules do not currently count. Optimizely's Experimentation Events Export gives you daily Parquet files, so confirm with Optimizely which storage locations are available for your data region before you rely on it for analysis or exit.

Self-hosted PostHog fits teams that want feature flags, experiments, product analytics, session replay and surveys in one tool inside their own infrastructure, and that can run it without vendor support. PostHog's self-host documentation states that self-hosted deployments are officially unsupported and that PostHog does not offer customer support for product, infrastructure or other questions on self-hosted instances, so your engineers own upgrades, backups and incident response. The PostHog repository is MIT licensed except for the ee/ directory, and premium features from that directory need a PostHog license on a self-hosted instance. Teams that need fully free software can review the posthog-foss repository, which is purged of proprietary code, before committing to a feature set.

Three questions decide the fit. First, do experiments need to sit beside product analytics and session replay, so a test result can be read against the same user journeys? If they do, PostHog keeps flags, experiments and behavior data in one tool, while a team that only needs rollouts and statistical reads may not need that extra scope. Second, who will operate the platform? A self-hosted PostHog needs an in-house team that can run it without vendor help, and PostHog sells SSO, audit logs, custom roles and project permissions as platform packages, so list the access controls your compliance team requires and check which of them you would need to license. Third, compare MAU billing with event volume at your traffic. Pull your monthly unique user count and your monthly analytics event count, then price both models against those figures before you choose.

Which scenarios favor Optimizely Experimentation and which favor PostHog?

This table compares which scenarios suit Optimizely Experimentation and which suit self-hosted PostHog. Read each row as a default, then check the condition in the third column that would reverse it. The main takeaway: PostHog fits teams that want experiments beside analytics and replay and can run it themselves, while Optimizely fits teams that want a vendor-operated platform. Warehouse-native analysis and visual web testing are better handled by GrowthBook, covered in the Optimizely vs GrowthBook comparison.

ScenarioBetter fit and whyWhen the better fit changes
Optimizely renewal with a large MAU countOptimizely, because PostHog's open-source guidance tops out near 100k events per month.Moves to PostHog if you can use PostHog Cloud on a paid plan, or if your event volume is far below 100k per month.
Experiments that must sit beside product analytics and session replayPostHog, which lists product analytics, session replay, feature flags and experiments in one product set.Optimizely, if analytics and replay stay in another tool and you need only flags and experiments.
Team with no operations capacityOptimizely, because self-hosted PostHog is officially unsupported and offers no customer support for infrastructure questions.PostHog Cloud, which removes hosting work, if a hosted service in the US or EU region meets your requirements.
Data that must stay in your infrastructurePostHog, self-hosted, since event data stays on servers you control. Premium ee/ features need a PostHog license.Optimizely, if your rules accept vendor hosting and you need no analytics beside experiments.
Marketing teams running web tests with a visual editorNeither as a primary tool. GrowthBook's visual editor is the closer match, covered in the Optimizely vs GrowthBook comparison.Optimizely Web Experimentation, if the team already runs snippet tests and accepts its per-visitor MAU billing.
Warehouse-native analysisGrowthBook, which runs read-only queries against your warehouse, covered in the Optimizely vs GrowthBook comparison.Optimizely, if you analyze its daily Parquet event export in your own tooling and accept one-year retention.

Which PostHog code can you run for free?

PostHog's repository is licensed under the MIT Expat license, with one exception: content in the ee/ directory is covered by a separate license in ee/LICENSE. Code outside ee/ can be run, modified and redistributed under MIT terms, and you can read the full terms in PostHog's LICENSE file. Premium features from ee/ on a self-hosted instance require a PostHog license, so running them without one falls outside the free terms. For a fully free route, PostHog points to the posthog-foss repository, which it describes as purged of all proprietary code and features. Before you commit to a design, map every flag and experiment feature you use to either ee/ or the open code. Confirm each mapping with PostHog in writing, because the boundary is set by directory and directory contents can change between releases. Give the mapping a named owner, record it in your architecture document, and rerun it whenever you upgrade.

Optimizely's licensing is split across three pieces. Its Feature Experimentation SDKs are open source, both server-side and client-side, and they bucket users in memory inside your applications. Optimizely Rollouts is the free plan, with free flags and one A/B test, which suits a proof of concept more than a production program. Optimizely Agent, a REST API service for Feature Experimentation, is licensed under Apache 2.0 and runs as a Docker container or from source, with optional Redis pub/sub for multiple nodes. These licenses cover the code. The hosted platform that stores your flag configuration, decision data and MAU billing remains under Optimizely's commercial terms. Ask Optimizely which parts of your current setup depend on that platform and which run from open code, so your exit plan separates them early. Budget the engineering work of replacing the hosted layer, since the free Rollouts allowance does not carry a production program.

How do Optimizely Experimentation and PostHog compare on flags and experiments?

This table compares Optimizely Experimentation with self-hosted PostHog across flags, experiments, SDKs, analytics, data export, access controls and licensing. Where a detail needs checking, the cell tells you to confirm it with the vendor before you rely on it. The main takeaway is that PostHog combines analytics, replay and experiments in one largely MIT-licensed codebase, while Optimizely sells its products on individually packaged plans that need a quote.

CapabilityOptimizely ExperimentationSelf-hosted PostHog
Feature flags and rolloutsFeature Experimentation flags with open-source SDKs that bucket users in memory. Optimizely Rollouts is a free plan with free flags and one A/B test.Feature flags are a listed PostHog product. Confirm targeting, percentage rollouts and evaluation behavior against the current docs.
Experiment analysisExperimentation is a core product. Confirm the statistical methods, such as frequentist or sequential, with the vendor.Experiments are a listed PostHog product. Confirm the statistical methods and how results are calculated before relying on them.
Client and server SDKsOpen-source server and client SDKs that bucket users in memory. Legacy Full Stack has been sunset, so confirm your SDK path.Confirm the SDK languages and whether OpenFeature providers exist for your stack before committing.
Product analyticsConfirm with the vendor which analytics features are included beyond experiment reporting.Product analytics and web analytics are core listed products, alongside data pipelines.
Session replayConfirm with the vendor whether session replay is offered and under which plan.Session replay is a listed PostHog product, alongside error tracking, surveys and logs.
Web experiment editingWeb Experimentation is a separate product billed per unique visitor who loads the snippet. Confirm the editor features.Confirm whether PostHog offers a visual web experiment editor and what it needs on your pages.
Data exportDaily Parquet events export kept one year. S3 delivery stops from November 30, 2026. EU customers use Google Cloud Storage only.Self-hosted event data stays in the databases you run. Confirm export formats and warehouse connectors with the vendor.
SSO and audit logsConfirm SSO, audit logs and role controls in the written plan before you sign.SSO, audit logs and custom roles are sold as platform packages on PostHog Cloud. Confirm what the self-hosted license covers.
LicensingCommercial plans with no published prices; request a demo for a quote. Optimizely Agent, a separate REST service, is Apache 2.0.MIT except the ee/ directory. Premium ee features on self-hosted instances need a PostHog license.

Where flag and event data sits under each option

Data location, hosting model and access controls decide who can read flag and event data and where it is kept. The five points below show what each option stores and where, so you can check them against your residency rules and contract terms before choosing.

Event data location and regions

Optimizely's Experimentation Events Export delivers daily Parquet files with one row per decision or conversion event, and Optimizely keeps them for one year. Customers on EU data servers can use Google Cloud Storage only, and Optimizely has stated that S3 delivery ends on November 30, 2026, so confirm which bucket your export uses now. PostHog Cloud offers US (Virginia) and EU (Frankfurt) regions, and self-hosting keeps events on servers you choose. Ask each vendor where backups, logs and support access sit, along with the primary store.

Events export docs

Hosting models and support

Optimizely runs its service for you under individually packaged plans. PostHog offers three paths: PostHog Cloud, a free Docker Compose hobby install under the MIT license, and a paid self-hosted product. The hobby install suggests 4 vCPU, 16 GB of RAM and more than 30 GB of storage, and PostHog's README advises moving to Cloud above about 100k events per month. PostHog states it does not provide customer support for self-hosted instances, so your team carries upgrades, uptime and incident response.

Self-host docs

Identity and access controls

PostHog sells SSO, audit logs, custom roles and project permissions as platform packages, so price them in before a security review asks for them. Optimizely's pricing page publishes no figures, so confirm which SSO, audit log and role controls its plan includes. Check who can change flag rules in production, whether audit entries cover flag edits, and whether SSO is enforced for every admin account on each platform.

Optimizely pricing

Optimizely Agent as a REST option

Optimizely Agent exposes a REST API for Feature Experimentation under the Apache 2.0 license. It runs as a Docker container or from source, and optional Redis pub/sub coordinates multiple nodes. Self-hosting it places the service inside your network, but you still need to confirm the configuration source it reads flags from and how that configuration stays current. Your platform team would also own the container, the Redis layer and their upgrades.

Agent repository

Compliance evidence and ownership

You own the controls and the evidence that show they operate, whether you run Optimizely, PostHog Cloud or self-hosted PostHog. Independent auditors and certification bodies issue the reports and certifications. DeployOpen prepares the systems, controls and evidence your assessment needs, but it does not issue attestations. Ask each vendor for its own assurance documents and map them to your control set before signing.

How the decision path sorts a team toward Optimizely or self-hosted PostHog

It starts with one question: must experiments sit next to product analytics and session replay? If yes, the team checks whether it can run self-hosted PostHog, since PostHog's self-host documentation says it is officially unsupported and offers no customer support. If it can, the next check is the license: features in the ee directory need a PostHog license, so teams that need fully free software should look at the posthog-foss repository. If experiments can stand apart from analytics, the path moves to GrowthBook for warehouse-native analysis or its visual editor for web tests. Where a vendor-run platform and an existing Optimizely program both fit, the diagram keeps the team on Optimizely.

Decision path from analytics needs to the three possible homes for experiments.

What each option costs to run, one-time and recurring

Each option charges for different things: plan fees, usage units, hosting, people and one-time migration work. Event volume, environments, retention, SSO packages and on-call coverage move these totals, and MAUs and events are different units to model against your own traffic. Ask for a written quote that splits one-time from recurring costs and separates hosting from people.

Optimizely plans are individually packaged

Optimizely's pricing page publishes no prices for its experimentation products and states that every plan is individually packaged, with buyers directed to request a demo. Recurring fees depend on the contract, the products you buy and the MAU volume it covers. Ask for each product, support tier and add-on as a separate line so you can see which charges renew every year and which, if any, are one-time.

Optimizely pricing page

Feature Experimentation bills unique users

Feature Experimentation counts one MAU per month for each unique user ID that triggers at least one decision or tracking event. Disabled flags and targeted delivery rules do not currently count, so flag volume alone does not drive the bill. Model this against your own user IDs, using a month of decision and event counts from your logs before you compare quotes.

MAU counting docs

Web Experimentation bills every visitor

Web Experimentation counts each unique visitor who reaches a page where the snippet loads as an MAU, de-duplicated by user ID, even when no experiment or event runs on that page. A sitewide snippet therefore raises the count for marketing pages that are never tested. Confirm where the snippet is installed and how many pages it reaches before you agree on a volume.

PostHog Cloud charges by event volume

The first 1 million analytics events each month are free on the Free plan, which includes 1 project and 1-year data retention. The Pay-as-you-go plan raises this to 6 projects and 7-year retention, and per-event rates and platform packages such as SSO, audit logs and custom roles are listed on the pricing page. Model retention and project count first, since the paid plan raises both and they are the levers that move the bill most.

PostHog pricing page

Self-hosted PostHog servers and staff

The core repository is MIT licensed, so there is no license fee for that code, but the ee/ directory uses a separate license and its premium features need a PostHog license on a self-hosted instance. The docs recommend a server equivalent to 4 vCPU, 16 GB of RAM and more than 30 GB of storage, and you pay for that hosting, plus backups, upgrades and staff time. PostHog does not offer customer support for self-hosted instances, so on-call coverage is your cost.

Self-host docs

One-time migration and parallel run

Importing history is one-time work: PostHog's managed migrations pull Mixpanel or Amplitude data by API or from JSONL files in S3, and each direct import covers at most one year with no deduplication. Imports sent with the historical_migration flag avoid ingestion fees, but a paid product analytics plan is required for the import features, and imported events cannot be selectively deleted. Plan for both platforms to run during overlap, so the Optimizely bill continues until cutover.

Managed migrations docs

What running each option takes from your team

Optimizely runs the hosted Feature Experimentation platform, so your team does not operate the decision service, the data stores or the upgrade cycle. Your effort goes into three areas: wiring the SDKs into each application, governing who creates and changes flags and experiments, and moving the data it exports into your analytics. Optimizely bills on monthly active users, so flag design and tracking choices also shape the invoice, and engineering and finance should review them together before rollout.

  • SDK integration: Engineers add the open-source server and client SDKs to each service and front end, then test bucketing, fallback values and behavior when the network is unavailable.
  • Flag governance: Assign owners, naming rules, environments and approval steps, and set a removal date for each flag so stale flags do not accumulate.
  • Export handling: Schedule a job for the daily Experimentation Events Export, which Optimizely retains for one year before deleting files. S3 delivery stops starting November 30, 2026, so confirm which storage location your pipeline reads.
  • Metric ownership: Name one team to define conversion events and review experiment results, so product, engineering and data teams read the same numbers.

Before you plan the export job, ask Optimizely in writing which delivery location and retention terms apply to your account and region.

What moving from Optimizely Experimentation to PostHog involves

The sequence inventories what Optimizely runs today, carries conversion data and user identity across, rebuilds flags and experiments in PostHog, and retires Optimizely only after both systems agree. Each step closes with a check you can verify before moving on. Much of the work sits in code call sites and historical data.

  1. Inventory flags, experiments, audiences and SDK calls

    Export the list of every flag, experiment and audience in Optimizely Feature Experimentation and Web Experimentation, with status and any recorded owner. Mark which items are live, which are disabled and which can be dropped. Then search the codebase for every Optimizely SDK initialization, decision call, tracking call and web snippet, and record the file, service and environment for each. The step is done when someone outside the migration team can read the inventory and name the owner of every flag and every call site.

  2. Export decision and conversion events

    Pull the Experimentation Events Export, which delivers daily Parquet files with one row per decision or conversion event and retains each file for one year before deleting it. Optimizely has stopped S3 delivery starting November 30, 2026. Data from June 2026 onward is in Google Cloud Storage, while earlier data stays only in S3, so copy the S3 history now and confirm the GCS path for your account. If your account is on an EU data server, Google Cloud Storage is the only option. The step is done when every experiment in scope has a complete file set with row counts matching the Optimizely reports.

  3. Map Optimizely user IDs to PostHog identities

    Decide how each Optimizely user ID maps to a PostHog distinct ID, including logged-in users, anonymous visitors and any account-level keys. Optimizely counts monthly active users per unique user ID and buckets users on the ID your code passes, so a mapping that changes IDs between systems will split one person into two in your results. Write the mapping as a table, keep it in version control, and apply the same rule in flag evaluation code and in the event pipeline. The step is done when a sample of test users shows each Optimizely ID resolving to exactly one PostHog identity, with any exceptions documented.

  4. Recreate flags and experiments in PostHog

    Rebuild each flag with its targeting rules, rollout percentages and variant keys in PostHog, then rebuild each experiment with the same goals, metric definitions and exposure events. Keep variant keys identical to Optimizely's where possible, so code and dashboards do not change during the parallel run. No Optimizely import is documented, so confirm with PostHog whether a configuration import exists before you plan around one. The step is done when every flag and experiment in the inventory exists in PostHog with a named owner and a definition reviewed by the analyst who will read its results.

  5. Swap SDK calls and check OpenFeature support

    Replace each Optimizely SDK call from the inventory with the PostHog SDK call for the same language or platform, keeping flag keys and default values unchanged. For vendor independence, confirm whether PostHog supports the OpenFeature layer for your stack, since OpenFeature providers translate between application code and the flag system. Read the OpenFeature documentation to see how providers work. If PostHog has no provider for a language you run, decide whether to call its SDK directly or keep a thin wrapper you own. The step is done when a search of the build finds no remaining Optimizely calls and staging traffic evaluates every flag through PostHog.

  6. Run both systems in parallel and reconcile

    Run PostHog and Optimizely side by side for each experiment, with each user exposed to one system only so that exposures are not double counted. Compare daily exposure counts, variant splits and conversion totals against the exported Optimizely files, then document each gap by cause, such as identity mapping, event timing, bot filtering or a difference in statistical method. Statistical methods may differ between the two products, so confirm each method and match raw counts before comparing computed lifts. The step is done when each active experiment has a written reconciliation note agreed by the product owner and the analyst.

  7. Import historical analytics where supported

    Import past analytics only through a path PostHog documents. Its managed migrations bring historical events in from Mixpanel or Amplitude, using API credentials or JSONL files in an S3 bucket, and it publishes guides for Google Analytics and Heap. An Optimizely import is not documented, so confirm it with PostHog before you assume one. Historical imports need a paid product analytics plan, each direct import job covers at most one year of data, and imported events cannot be selectively deleted, so set the scope and plan before you start. The check is a sample of imported counts matched against the source system.

  8. Cut over and archive exports

    After each experiment passes reconciliation, switch production traffic to PostHog flags and remove the Optimizely SDK code in the same release, so no code path evaluates two systems. Keep the Optimizely account available until the exported files, reports and configuration snapshots are in your own storage, with checksums and an index that maps each file to its experiment. Set retention on the archive to match your records policy. The step is done when production no longer calls Optimizely, the archive index is complete and the owner has signed off the closure.

What do buyers ask before moving from Optimizely Experimentation to PostHog?

What does self-hosted PostHog cost to run?

Self-hosting removes the software license fee for the open-source stack, but you still pay for servers, storage, backups and staff time. PostHog's self-host documentation describes a free Docker Compose (hobby) deployment under the MIT license, installed with a deploy-hobby script, and recommends a server equivalent to 4 vCPU, 16 GB of RAM and more than 30 GB of storage. Storage and compute grow with event volume and retention, so cost rises as traffic does. The largest recurring line is usually people, because someone must patch, back up, monitor and upgrade the stack. PostHog does not offer customer support for self-hosted instances, so there is no vendor to call when something breaks. Ask your team to cost the servers, storage, backups and on-call hours, and to state the event volume and retention period behind each figure. Premium features in the ee directory also require a PostHog license.

How long does a move from Optimizely to PostHog take?

The timeline depends on how many feature flags, experiments and SDK integrations you run, so no single duration fits every team. Count each flag and its targeting rules, each experiment with its metrics and audience, and each application that calls the Optimizely SDK or snippet, because each one needs a PostHog equivalent and a test. A small set of simple flags moves quickly. Flags shared across many services, custom bucketing, and server and client code paths that must agree take longer to verify. Historical data follows its own track. PostHog's documented migration paths cover Mixpanel and Amplitude, with guides for Google Analytics and Heap, so confirm with PostHog whether an Optimizely path exists before you plan around one. Ask any implementation partner for a written scope and timeline that starts from this inventory.

Can our team run self-hosted PostHog without outside help?

A team can run it alone if it has the skills and staff time to own the stack after go-live. The required skills fall into three groups:

  • Platform: container deployment, Linux, database administration, backups, restores and monitoring
  • Security: access control, SSO configuration, patching, secrets handling and audit log review
  • Analytics: event schemas, flag and experiment design, and metric definitions

Beyond skills, you need a written runbook for install, backup, restore and rollback, plus a named owner for upgrades who tests each release in a non-production environment first. PostHog's self-host documentation says self-hosted deployments are officially unsupported, so this ownership sits entirely with your team. If any of these gaps exist, DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted platforms inside your own infrastructure under a written scope, and supports them through retainers.

Does a free self-hosted PostHog deployment fit our event volume?

It fits small volumes, so count your monthly events before you commit. The PostHog README says open-source deployments should scale to approximately 100k events per month and recommends moving to PostHog Cloud above that. PostHog's pricing page says the first 1 million analytics events are free every month on Cloud, and that the Free plan includes 1 project and 1-year data retention. These are different offers: the 100k figure is guidance for running the open-source stack, and the 1 million figure is a hosted free allowance. Above 100k events a month, the comparison shifts toward Cloud or toward paying for larger infrastructure and staff time. Count every event source you plan to send, including experiment exposures, and confirm with PostHog how flag requests are metered on each option.

Does PostHog replace the Optimizely Web snippet and visual editor?

Treat this as an open question and confirm it before you assume a replacement. The features you need to verify are a page snippet that loads on every page and a visual editor that lets non-engineers build web variants without code changes. Ask PostHog in writing whether its experiments support both, how the page snippet is loaded, and which plans or packages include each feature. Also confirm how the Optimizely Web setup counts visitors, because the snippet counts toward monthly active users on every page where it loads. If your tests are code-driven and run through feature flags, the migration path is simpler. If marketing staff edit variants in a browser today, plan for either a separate tool or a rebuild as code, and test any editor against your client-side-rendered pages before cutover.

How do we keep Optimizely event history before the contract ends?

Export the Experimentation Events Export to storage you control now, because Optimizely retains the files for one year before deleting them. The export delivers daily Parquet files with one row per decision or conversion event, and each day's file is available the next day by 13:00 UTC. Optimizely stopped delivering through Amazon S3 starting November 30, 2026. Google Cloud Storage holds data from June 2026 onward, while earlier data stays only in S3, and customers on EU data servers can use GCS only. Build an archive job that copies files into your own storage, records file dates and row counts, and keeps the schema documentation with them. Start with the oldest files still available, because anything past the one-year window is no longer retained by Optimizely. Ask your legal and compliance owners how long the archive must be kept. Optimizely's export documentation lists the current delivery details.

How DeployOpen helps evaluate, implement and migrate

DeployOpen works through Optimizely Experimentation vs PostHog as a set of written, fixed-scope steps carried out inside your own cloud accounts, data centers or air-gapped network. We plan, implement, test and document whichever self-hosted platform fits your flags, experiments and data requirements. Scope, deliverables and timelines are agreed in writing before work starts.

How we scope

  • Inventory every Optimizely feature flag, experiment, audience and metric, with owners and the systems that read them.
  • Map each Optimizely SDK, snippet and events export to its PostHog equivalent, with gaps listed in writing.
  • Agree scope, deliverables and timeline in writing before work starts, including which PostHog features need a paid self-hosting license.

How we build

  • Deploy the chosen platform in your infrastructure and confirm which SSO and audit features your license includes.
  • Rebuild flag targeting and experiment metrics in PostHog, then run both systems in parallel on a sample of traffic.
  • Size the PostHog server against your event volume, given open-source deployments should scale to about 100k events per month.

How we hand over

  • Documentation of flag and experiment configuration, event schema and data flows, written for your compliance and security reviewers.
  • Runbooks for upgrades, backups and restores of the PostHog stack, so your team knows who owns each task.
  • A cutover checklist covering SDK swaps, retired Optimizely keys, and what data you exported before your Optimizely contract ends.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Confirm who answers product and infrastructure questions, since PostHog does not offer customer support for self-hosted instances.
  • Upgrades of the PostHog stack can run under a retainer, with the scope and frequency agreed in writing.

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.