Sending Langfuse LLM metrics to PostHog

Connecting self-hosted Langfuse to PostHog brings LLM usage, cost and feedback into product analytics so teams can test whether LLM feature use relates to retention or conversion. This page covers the method, setup, mapping, security and failure points.

On this page

Sending Langfuse LLM metrics to PostHog: what the integration answers

Product and data teams often want to know whether engagement with an LLM feature relates to retention or conversion, but the telemetry that shows how that feature is used sits in Langfuse, while the retention and conversion data sits in product analytics. Langfuse's documented PostHog integration forwards LLM metrics captured in Langfuse into PostHog dashboards, so the two data sets can be read side by side. The integration answers questions such as whether users who run LLM-backed actions return more often, whether token usage and cost per user or per session move with conversion, and which model or prompt versions are linked to better or worse user outcomes. It does not answer whether the model output was correct; that stays in Langfuse evaluations.

The integration is configured inside Langfuse, not in PostHog. On a self-hosted instance, the PostHog connection is set up in the Langfuse project settings, and the PostHog credentials are stored encrypted using the instance's ENCRYPTION_KEY, so that key must be managed and backed up as part of the Langfuse platform. Before enabling anything, confirm with your Langfuse operators which project or projects will export, and which PostHog project and host will receive the data. Also confirm whether your PostHog deployment is PostHog Cloud or a self-hosted instance, because self-hosted PostHog is unsupported by PostHog for customer support questions.

The data model and event naming are the team's design work. The integration carries metrics that Langfuse captures, but the team decides which user and session identifiers are used to join events to product accounts, which event names appear in PostHog, and which properties are kept for analysis. Those choices determine whether a retention or conversion question can be answered at all. Agree on a shared identifier scheme between the application, Langfuse and PostHog, and check the naming in a test project before production traffic is sent. Confirm the exact fields and event names the integration emits against the current Langfuse PostHog integration documentation, since they may change between releases.

What you need before connecting Langfuse to PostHog

The integration joins two systems that each hold part of the picture: Langfuse holds the LLM traces, token usage and cost, and PostHog holds the product events about retention and conversion. Settle the Langfuse instance, the PostHog project and host, the network path and an analytics owner before you open any configuration screen.

A working self-hosted Langfuse instance

Confirm that your self-hosted Langfuse runs with Langfuse Web and Langfuse Worker healthy and that traces from your applications already appear in the UI. The integration stores PostHog credentials inside Langfuse, so the instance must be stable before you add them. Record the ENCRYPTION_KEY value in your secrets store, because Langfuse uses it to encrypt integration credentials such as PostHog keys. Losing or changing that key leaves stored credentials unreadable.

Encryption docs

ENCRYPTION_KEY under change control

Treat the encryption key as a long-lived secret tied to your database backups. If you restore Langfuse PostgreSQL from backup into a new environment, the restored integration records only decrypt with the same key. Confirm who can read the key, how it is rotated and where it is backed up before PostHog credentials are entered. Ask your platform team to document this procedure alongside the rest of the Langfuse runbook.

A PostHog project and API key

Create or choose the PostHog project that will receive LLM metrics, and create a project API key for the Langfuse connection. Use a project separate from production product analytics only if your analysts want that isolation, and decide that before data arrives, since historical events cannot be selectively deleted once imported. Scope the key to the project it needs, and record who owns its rotation.

PostHog host: US, EU or self-hosted

Choose where PostHog runs. PostHog Cloud offers two regions, US (Virginia) and EU (Frankfurt), and the host you select must match the project where the key was created. A self-hosted PostHog instance is a separate decision: its documentation states that self-hosted deployments are officially unsupported and that PostHog offers no customer support for them. Pick the region with your data residency rules in mind, and confirm the host URL your Langfuse configuration will use.

PostHog pricing

Egress from web and worker containers

The integration sends data from Langfuse to PostHog over HTTPS, so outbound traffic must leave the Langfuse containers. Confirm that the Langfuse Web and Worker containers can reach your chosen PostHog host through any proxy, firewall or egress policy in place. If you run PostHog yourself, confirm the route to that internal host as well. Test the connection from inside the cluster or VM, not from your laptop, since a successful test elsewhere proves nothing about the containers.

A named owner for the analytics model

Assign one person to own the definitions that join LLM usage and cost to PostHog events, such as which user identifier is used, which features count as LLM features and how cost is attributed. Without this owner, dashboards drift between teams and retention comparisons become hard to defend. Agree on the owner and on who approves changes to event names and identifiers before the first data flows.

How to configure the Langfuse PostHog integration on a self-hosted instance

This sequence connects a self-hosted Langfuse instance to a PostHog project so LLM metrics captured in Langfuse appear alongside product analytics, with each step confirmed before the next begins.

  1. Confirm the encryption key is set and backed up

    The platform engineer responsible for the Langfuse deployment checks that the ENCRYPTION_KEY environment variable is set on the web and worker containers, since Langfuse uses it to encrypt integration credentials such as PostHog keys. Store a copy of the key in your organization's secrets manager with restricted access, because credentials saved under a key that is later lost cannot be decrypted. The step is done when the key is present in the running configuration and a recovery copy exists outside the cluster or VM.

  2. Create the PostHog project API key

    In the PostHog project that will receive the LLM metrics, a product or platform owner creates a project API key and records the host that matches the PostHog deployment. If you use PostHog Cloud, the host depends on the region the project lives in, and the PostHog Cloud regions are US (Virginia) and EU (Frankfurt). If you run PostHog yourself, use the host address of that instance. The step is done when you can see the key in the project settings and have noted which project and host it belongs to.

  3. Open the PostHog integration settings in Langfuse

    A Langfuse project administrator signs in to the self-hosted Langfuse UI, opens the project settings and navigates to the integrations section where PostHog is listed. Confirm the exact menu path against Langfuse's PostHog documentation, since interface labels can change between releases. The step is done when the PostHog integration form is visible for the correct Langfuse project.

  4. Enter the PostHog credentials and host

    Paste the PostHog project API key and host into the integration form and save. Langfuse stores the key encrypted with the ENCRYPTION_KEY confirmed in the first step. Check that the host has no trailing path errors and that the key is not shared in tickets, chat or screenshots. The step is done when the integration shows as saved or enabled without a validation error.

  5. Send a test trace from a non-production application

    From a development or staging application that already sends traces to this Langfuse project, make one LLM call that includes a user identifier and a session identifier, so that the resulting metric can be matched to a person in PostHog. Use a clearly named test user so the event is easy to filter and remove later. The step is done when the trace appears in the Langfuse UI with its model, token usage and cost fields populated.

  6. Confirm the metric arrives in PostHog

    Open the PostHog project, use the event explorer or a new insight to search for the LLM metric names the integration writes, and filter by the test user identifier. Allow for the delay between sending and visibility, and confirm the expected properties such as model and token counts are present. Compare the value with the trace in Langfuse. The step is done when the test event matches the Langfuse trace on model, user and usage values.

  7. Record the configuration and confirm with the vendor

    Document the Langfuse project, PostHog project and host, the key owner, the location of the encryption key backup and the test results in your runbook. Before rolling the integration out to production traffic, confirm with Langfuse's PostHog documentation and with your PostHog plan that the features, event limits and hosting arrangement match your needs. PostHog states that self-hosted deployments are unsupported for customer support, so plan any self-hosted PostHog troubleshooting internally. The step is done when the runbook entry is reviewed by the owners of both systems.

How LLM metrics move from Langfuse into PostHog

The diagram starts with an application sending traces to Langfuse Web, which hands events to the Langfuse Worker for processing into ClickHouse. The integration reads the LLM metrics Langfuse captured and forwards them to PostHog, where they sit beside product events from your own users. The boundary between your self-hosted Langfuse network and the PostHog host is the point to check: confirm which fields leave your network, and where ENCRYPTION_KEY protects the stored PostHog credentials.

Metrics flow from Langfuse across the trust boundary into PostHog dashboards.

Which Langfuse fields map to PostHog events and properties

This table compares the LLM metrics Langfuse captures with the event and property shapes you would send to PostHog. Confirm each exact field name in the Langfuse documentation before you build the mapping, because names are not fixed here. The main takeaway is that the user identifier decides whether LLM usage can be joined with retention and conversion data at all.

Langfuse metricPostHog event or property (to confirm)Analysis use and check
Token usage (input and output)Numeric properties on the LLM generation eventSum per user and feature to see how usage relates to retention
Cost per generationNumeric property holding the calculated costOnly as accurate as the model pricing configured in Langfuse, so verify it
LatencyDuration property on the generation eventCompare response speed with return visits and conversion steps
Model nameString property identifying the model usedSplit feature usage by model during rollouts and model changes
User identifierDistinct ID on the event, set to the product's own user IDMust match your product user ID or the join with retention and conversion data fails
Session identifierSession-level property on each LLM eventGroup LLM calls into product sessions, and confirm how PostHog handles session fields
Feedback scores (ratings, thumbs)Event or property per score, using consistent score namesLink user satisfaction signals to later retention or conversion
Trace or feature nameFeature label property on the eventAttribute usage, cost and feedback to the specific product feature

Choosing identifiers and what personal data reaches PostHog

A pseudonymous user ID is an opaque value that your application already uses to identify a person, such as an internal account number or a random UUID, with no direct personal meaning outside your systems. Used as the distinct ID that Langfuse attaches to traces, it lets PostHog group LLM usage, cost and feedback by user while keeping names and contact details out of the analytics store. The trade-off is that the mapping back to a person lives in your own systems, so analysts need a controlled lookup when they want to contact someone or explain a result.

  • Stable across sources: the same ID must be used by the product events PostHog already receives and by the Langfuse user field, or cohorts will not join.
  • Minimal exposure: PostHog holds no name or email, which narrows what a breach or access request can reveal.
  • Lookup control: the mapping table stays in your identity or account system, under your existing access rules.
  • Rotation risk: if IDs are reissued, historical joins break, so decide the lifecycle before going live.
  • Support cost: support staff need a documented way to translate an ID into an account.

Confirm that the ID is not derived from an email address or other personal data, and that your policy classifies it as pseudonymous rather than personal data.

Securing the Langfuse to PostHog connection

The Langfuse to PostHog connection carries a credential, sends data from your trace store to a third-party analytics host, and can be changed by anyone with the right Langfuse role. Each card below covers one control that keeps that path narrow, observable and under your own administration.

Protect the PostHog key at rest

The PostHog API key is stored in Langfuse encrypted with ENCRYPTION_KEY, so the key is only as safe as the management of that encryption key. Confirm where ENCRYPTION_KEY is kept, who can read it, and that it is included in your backups, because a restored database without the matching encryption key cannot decrypt the stored integration credentials. Losing or rotating this key without a plan breaks the integration silently.

Encryption docs

Scope the PostHog key to least privilege

Create a dedicated PostHog credential for this integration rather than reusing a personal or administrator key. Check in PostHog which permissions the chosen key type grants and whether it can read or change projects beyond the analytics ingestion the integration needs. Record the key owner, its project, and the date it was issued so a departing employee does not leave an orphaned credential behind.

Restrict egress to the chosen PostHog host

Limit outbound traffic from the Langfuse Worker and Web containers to the one PostHog host your team selected, whether that is a PostHog Cloud region or your own PostHog instance. Network policies, firewall rules or an egress proxy should block other destinations so a misconfigured host value cannot send data elsewhere. Test the rule by confirming the integration still delivers events and that connections to other hosts fail.

Review what content is forwarded

Decide which fields leave Langfuse before enabling the integration. Metrics such as token usage, cost, latency and feedback answer the retention and conversion questions, but prompt and completion text usually adds personal data to a third-party analytics system. Walk through a sample of traces with your privacy and security reviewers, and confirm whether the PostHog data flow needs its own entry in your records of processing.

Control who can change the integration

Restrict the Langfuse project role that can create, edit or delete the PostHog integration to a small set of administrators. Changing the destination host or key is the quickest way to redirect telemetry, so treat it like any other configuration change. Project-level RBAC roles and audit logs that show integration changes require an Enterprise license key, so confirm which of these your team needs before deciding on the edition.

License key docs

Keep an audit trail of changes

Record every create, update and delete of the PostHog integration, along with the actor and time, and store those records outside the Langfuse instance they describe. Audit logs in self-hosted Langfuse are an Enterprise feature, so without that license the team needs another way to review configuration changes, such as infrastructure-as-code review or a change ticket for each edit. Check the trail monthly against the approved owners list.

Running PostHog yourself changes the support picture

Choosing where PostHog runs is a support decision as much as a hosting decision. PostHog's self-host documentation describes self-hosted deployments as officially unsupported, and states that PostHog does not offer customer support for product, infrastructure or other questions on self-hosted instances. Your team, or a partner you contract separately, carries the upgrades, the troubleshooting and the data stores. The free hobby deployment, installed with a deploy-hobby script under the MIT license, recommends a server equivalent to 4 vCPU, 16 GB of RAM and more than 30 GB of storage. Confirm those figures against the current PostHog self-host documentation before you size anything, because the hardware is only the starting point for the people who will operate it.

Volume is the second constraint. The PostHog README says open-source deployments should scale to approximately 100k events per month and recommends moving to PostHog Cloud above that level. Langfuse feeds PostHog only the LLM metrics you choose to forward, so the event count depends on how many traces, generations or feedback events your integration sends. Measure that volume during a pilot rather than assuming it. The docs also state that new Kubernetes deployments of the paid self-hosted product are no longer supported, so a Kubernetes-based plan for a larger PostHog footprint needs a different route. Ask PostHog to confirm the current options before you commit.

Licensing adds a third decision. The PostHog LICENSE file applies MIT Expat terms except for the ee/ directory, and the README says premium features from that directory on a self-hosted instance require a PostHog license. If you need fully free software, the posthog-foss repository is purged of proprietary code and features. Choose one of three paths deliberately: PostHog Cloud (US or EU region, with SSO, audit logs and custom roles sold as platform packages), a self-hosted hobby instance that your team operates, or posthog-foss. Each option changes who answers support questions and which features you can use, so record the choice before the Langfuse integration is configured.

Analyzing LLM features against retention and conversion in PostHog

Can PostHog show whether users who use an LLM feature retain better?

Yes, a retention dashboard can compare users who triggered LLM events in Langfuse with users who did not, once those events reach PostHog as user-identified events. The dashboard needs a stable user identifier that matches the one in your product analytics events, a defined "engaged" event (for example, at least one LLM call in the first week), and a retention window that fits your product's usage rhythm. It cannot prove that the LLM feature causes retention. Users who try AI features are often already more active, so a gap may reflect who chose to engage rather than what the feature did. Use a holdout group or a staged rollout with feature flags if you need a stronger claim, and confirm that your identifier mapping is applied consistently on both sides before reading any result.

How do I measure conversion after a user runs an LLM feature?

Build a funnel in PostHog that starts with an LLM-related event brought in from Langfuse and ends with your conversion event, such as a paid upgrade or a completed purchase, with a time window you set in advance. The funnel needs the same user identity on both events and a clear definition of what counts as the LLM step. It cannot establish causation, because users who are close to buying may use the assistant more often for the same reason they convert. Treat the result as a signal to test. Compare against users who reached the same point in the flow without LLM use, and record the window length and exclusions so the analysis can be repeated.

How do I calculate cost per active user by cohort?

Divide the LLM spend that Langfuse records for a cohort by the number of active users in that cohort during the same period. The inputs are the cost property captured on each trace or generation, a cohort definition such as signup month or plan tier, and an active-user definition that matches your product analytics. Costs depend on the model pricing you configured in Langfuse, including any custom model prices, so confirm those prices are current before comparing periods. The figure cannot show whether spend is efficient, since a high cost per user may come with higher retention or revenue. Pair it with the retention and conversion views before deciding whether to change models, limits or prompts.

How can I track feedback score trends by release in PostHog?

Plot the average or share of positive user feedback against the release version attached to each trace, so each release appears as a separate point on a trend line. This requires that feedback scores from Langfuse arrive with a release or version property, and that your app sends the same version string it uses in Langfuse. Feedback is sparse and self-selected, so the trend reflects only users who chose to rate responses. It cannot prove that a release caused a change, because the user mix, traffic source or underlying data may have shifted between releases. Check response volume per release before reading small changes, and keep the score definition fixed across releases.

What does session-level LLM usage show that event counts do not?

Session-level views group LLM calls by the session identifier that Langfuse records, so you can see how many model calls a user makes in one visit, how long sessions run, and whether a session ends with a feedback event or a conversion. This needs session identifiers that match across Langfuse and PostHog, which means your application must pass the same session value to both systems. It cannot show intent or whether the answers helped, since a long session may mean a confusing product or a productive one. Use session views to find where users loop or abandon, then read sample traces in Langfuse to understand the cause.

Does a retention or conversion gap prove the LLM feature works?

No. A dashboard shows an association in your data, not an effect of the feature. Selection bias is the main risk: power users try new features first, and teams often launch assistants to the most engaged segment. Other changes in the same period, such as pricing, onboarding or marketing campaigns, can move the same metrics. Record the release dates, flag rollouts and campaigns alongside the charts, and use a controlled rollout with a comparison group if the decision depends on causation. A well-labeled dashboard with its limits stated is more useful to a steering group than a single headline percentage.

Can my team run this analysis without DeployOpen, and what would a partner add?

Your team can build these dashboards without a partner if it has someone who can own the event schema, identifiers and cost definitions, and who can run the self-hosted PostHog instance. PostHog states that self-hosted deployments are officially unsupported and that it does not offer customer support for product or infrastructure questions on them, so your team carries that responsibility. A partner can help define the event contract with Langfuse and PostHog, configure the integration with encryption keys handled through ENCRYPTION_KEY, and document the analysis definitions. Ask any partner to confirm the scope in writing, including who maintains the PostHog instance after handover.

Common failures when Langfuse metrics do not reach PostHog

This table lists the failures teams most often hit when Langfuse data does not appear in PostHog, with the likely cause and the fix for each. Work through the rows in order, since host and key problems hide the others, and check identifiers and time settings before you change the integration.

SymptomLikely causeFix
No data arrives in PostHogPostHog host is missing or points at the wrong region or instanceConfirm the PostHog host in the Langfuse integration settings matches your self-hosted PostHog URL or the correct PostHog Cloud region (US or EU), then send a test event.
Requests are rejected for the projectThe PostHog project API key is for a different project or lacks needed permissionsCreate or copy a project key from the intended project, store it in Langfuse so it is encrypted with ENCRYPTION_KEY, and confirm the key's scope with your PostHog admin.
Langfuse cannot reach PostHog at allEgress from the Langfuse Worker or Web containers is blocked by firewall, proxy or network policyAllow outbound HTTPS from the Langfuse hosts to the PostHog endpoint, add any required proxy settings, and test from inside the same network segment as Langfuse.
Events exist but cannot be matched to users or featuresIdentifiers sent from Langfuse (such as user or session IDs) differ from the IDs your product analytics usesAgree one identifier scheme with the product team, pass the same user identifier in Langfuse trace metadata, and check a sample event in PostHog against a known product user.
Duplicate events after reconfigurationIntegration was re-enabled or re-pointed while earlier exports remained, so the same traces were sent twiceCount events per trace ID before and after the change, remove the duplicates you can identify, and document a single active configuration for the instance.
Charts disagree with Langfuse totalsDashboard time zone differs from the time zone used when Langfuse traces were countedSet the PostHog project time zone deliberately, align date ranges in both tools, and compare totals for the same window before drawing conclusions.
Older LLM data is missing from retention analysisRetention window in your PostHog plan is shorter than the period you want to analyzeCheck the data retention setting on your PostHog plan or self-hosted deployment, and decide the analysis window before the integration starts sending data.

What drives the cost and effort of this integration

The cost of sending Langfuse metrics to PostHog falls into four buckets, and only some of them are paid to PostHog. The first is the Langfuse hosting itself: compute for Langfuse Web and Worker, PostgreSQL, ClickHouse, Redis or Valkey and blob storage, all in your own cloud account or data center. Those costs recur monthly and grow with trace volume, because the ClickHouse and storage footprint scales with what Langfuse ingests. The second is PostHog. If you use PostHog Cloud, the first 1 million analytics events each month are free, and the Free plan includes 1 project and 1-year data retention. The Pay-as-you-go plan raises this to 6 projects and 7-year retention, so the plan you pick depends on how many events you send and how long you need history. SSO, audit logs and custom roles are sold as platform packages, so ask whether your security team needs them before you commit to a plan. The third is the analytics model: deciding which Langfuse fields become PostHog events and properties, how user identifiers are mapped, and how cost and feedback are compared with retention and conversion. This design work is one-time but usually needs revisiting when product questions change. The fourth is ongoing maintenance, including keeping the integration credentials current and checking event volume against plan limits.

Ask the vendor and any partner for a written quote that separates one-time work (architecture, integration configuration, dashboard and cohort design, testing of event mapping) from recurring work (hosting, PostHog subscription, monitoring and periodic review of the analytics model). For the PostHog portion, confirm the expected monthly event count, the number of projects and retention period, and which platform packages are required. Also confirm whether your data residency needs point to the US (Virginia) or EU (Frankfurt) Cloud region, since that choice is part of the plan decision. Ask whether the quote covers the Langfuse ENCRYPTION_KEY handling for stored PostHog credentials, because losing that key affects every saved integration. If you are considering a self-hosted PostHog instead, note that its self-host documentation states such deployments are officially unsupported and that PostHog does not offer customer support for them, so you would carry that support burden in-house.

Effort scales most with the number of distinct analytics questions and with how well your Langfuse data is already structured. Clean user and session identifiers, consistent model names and reliable feedback scores reduce rework, while free-text metadata and inconsistent tagging push effort into cleanup. Plan one short validation cycle before building dashboards: send a limited set of traces, confirm the events arrive as intended, and check counts against Langfuse. Decide early who owns the event schema, because changes to it affect every chart and retention analysis built on top. Budget for a periodic review, since new LLM features and a growing event count both change the cost picture over time.

Questions buyers ask about connecting Langfuse to PostHog

Is the Langfuse to PostHog integration free to use?

The integration itself is part of Langfuse's open source feature set, and Langfuse states that all core features and APIs are available in the MIT-licensed open source version without limits. Your costs come from the infrastructure you run for both products and from any PostHog plan you choose. On the PostHog side, the pricing page says the first 1 million analytics events are free every month on Cloud, and the Free plan includes 1 project and 1-year data retention. Ask for a written cost breakdown that separates Langfuse hosting, PostHog hosting or Cloud usage, and any licensed features you need, because a self-hosted PostHog deployment is not the same cost model as Cloud.

Can our team configure the PostHog integration without outside help?

A team that already runs self-hosted Langfuse and has an owner for PostHog can usually configure the connection itself, because the work is mostly entering PostHog credentials in Langfuse and checking that metrics appear in PostHog dashboards. The harder part is deciding which metrics, user identifiers and feedback signals should be compared against retention and conversion, and making sure those identifiers match across both systems. Outside help is most useful when that data model needs design, when the two platforms run in different networks, or when the team must document the setup for a compliance review. Confirm your own skills against the Langfuse integration docs before deciding.

How long does setup take for a self-hosted analytics model?

No supplied figure gives a setup duration, so treat any number you hear as unverified until it is tied to a written scope. The main drivers are whether PostHog runs as Cloud or self-hosted, how many LLM features and events you send, how many user identifiers must be aligned with product events, and how much analysis you want in dashboards. Self-hosted PostHog adds platform work: PostHog's self-host documentation recommends a server equivalent to 4 vCPU, 16 GB of RAM and more than 30 GB of storage for its hobby deployment, and it describes open-source deployments as suited to roughly 100k events per month before it recommends moving to Cloud. Ask a partner to show the sequence and dependencies before committing to a timeline.

What data leaves the Langfuse environment when the integration is on?

The integration sends LLM metrics that Langfuse captures, such as usage, cost and feedback, into PostHog dashboards. Prompt and completion content, user identifiers and session data are not automatically in scope for PostHog analysis, but you should confirm exactly which fields the integration maps before enabling it, because identifiers and feedback text can carry personal data. Review the mapping against your data classification and your retention rules in both systems. Credentials for the PostHog connection are encrypted in self-hosted Langfuse using the ENCRYPTION_KEY, so protect that key with the same care as your database credentials.

Is self-hosted PostHog supported if we choose that model?

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. Its README also says premium features in the ee directory on a self-hosted instance require a PostHog license, and that teams needing fully free software should look at the posthog-foss repository. New Kubernetes deployments of its paid self-hosted product are no longer supported. Your internal team or a partner would carry operational responsibility, so confirm license terms and the support model in writing before you choose self-hosted PostHog.

What happens to our history if we change the integration later?

Changing the configuration controls what Langfuse sends from that point forward. It does not by itself remove events already stored in PostHog, so plan for historical data separately. PostHog's documentation says there is no way to selectively delete event data once imported, and that its managed migration import jobs cover at most one year of data per direct job and are not deduplicated. Historical imports from other tools also need a paid product analytics plan to unlock the import features. Decide before go-live which date ranges you need, whether you will backfill, and how you will avoid duplicate counts when comparing periods.

What should we prepare before asking a partner for a quote?

A useful quote request starts with the decisions that set scope. Prepare a short list of the questions the analysis must answer, such as whether LLM usage relates to retention or conversion, and the features whose usage you want to compare. Describe your Langfuse deployment, including where it runs and whether it already captures cost and user feedback. State whether PostHog will be Cloud or self-hosted, your expected event volume, your data classification and any retention or deletion rules. Include who will own dashboards after handover and what documentation your compliance team expects. Ask for a fixed-scope proposal with deliverables and timelines agreed in writing before work starts.

How DeployOpen scopes and delivers the Langfuse to PostHog integration

DeployOpen starts by agreeing in writing which Langfuse metrics will reach PostHog, which PostHog questions they must answer, and where each system runs. We then configure both sides in your infrastructure, test the data path and hand over a documented setup your team can operate.

How we scope

  • Written scope names the Langfuse metrics to export, such as token usage, cost and feedback scores, and the PostHog events they map to.
  • We confirm which PostHog deployment you run or plan to use, since self-hosted PostHog is officially unsupported without a support agreement.
  • We record who owns the PostHog project keys, the ENCRYPTION_KEY handling and the retention period agreed for analysis data.

How we build

  • We configure the Langfuse PostHog integration on your self-hosted instance with project credentials stored encrypted in Langfuse.
  • We test that sample traces, costs and feedback arrive in PostHog and that user and session identifiers match across both systems.
  • We build the retention and feature-adoption analyses your product and finance teams asked for, then review them against the written scope.

How we hand over

  • You receive a runbook covering configuration, credential rotation, the metric mapping and the known limits of the data path.
  • Deliverables include the configured integration, dashboard definitions and a short note on which PostHog plan features your analysis relies on.
  • We walk your engineers and analysts through the setup and how to confirm data is still flowing after upgrades to either product.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing of the data path are available as a retainer.
  • Quotes follow from the written scope, so ask for a breakdown of configuration, testing, dashboard work and recurring support.

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.