Optimization

email_get_email_revenue

Read-only revenue attribution from the independently operated PostHog API.

read email_get_email_revenue

Read-only revenue attribution from the independently operated PostHog API. Currently unavailable while website analytics is disabled: returns configured:false without calling PostHog. When enabled, reads the company's connected PostHog project, plus the per-utm_campaign breakdown and total revenue for the same window. Attribution is LAST touch: a purchase is credited to the session an email link opened, so revenue landing in a later session is not counted — say so when quoting the number. Returns configured:false when PostHog or the revenue event isn't set up.

Parameters

ParameterTypeRequiredDescription
daysintegerNoLookback window in days.
projectIdstringNoTarget company (project id) — required on project-scoped tools. Call email_list_projects to enumerate companies.

On this page