Black Friday: Sumly for life, one payment from $79 · until 1 Declifetime from $79 →

Import your PostHog history into Sumly

Moving from PostHog, on its US or EU cloud or self-hosted? Give Sumly a personal API key that can only read, and it brings the project's page views, app screens and events as visits, as if its own script and SDK had counted them.

The demo runs on our own apps, with example numbers.

What you get

Every page view, app screen and event from PostHog as visits, each person as one visitor with the user id they were identified by.

The months before Sumly, filled in

Only the days before Sumly's own numbers come in. A day Sumly counted itself is never replaced, and Remove takes the import out again.

Moved in three steps

A key that can only read, used once.

  1. 1

    In PostHog, open Settings › Personal API keys and create a key with Query: Read and Project: Read only, for that project or its organization.

  2. 2

    In Sumly, open the project in Projects and integrations, then Tracking › Import earlier history and choose PostHog. Paste the key and press Find projects: Sumly finds whether it is on the US or the EU cloud. A self-hosted PostHog needs its address too.

  3. 3

    The import runs in the background and the page follows it. A large project goes on in parts, and waits when PostHog asks it to.

What you see once it is in

PostHog next to every other project and provider, on the same pages.

Visitors, people, sessions, journeys, funnels, retention and events reach back before Sumly, for the website and the apps.

Filters work on those days as on any other.

Home

Revenue per 1,000 visitors and conversion for those months.

Counts toward your plan

Nothing: imported visits never count toward your plan. Plans →

What you don't get

Feature flags and experiments are not imported: make each flag again in Visitors › Flags with the same key and rollout, and the same people stay in. Surveys, recordings, dashboards and cohorts stay in PostHog.

The details

What is read
  • $pageview as a page view, $screen as an app screen, and every event your site or app sent itself, with its own plain properties
  • Each event's source, referrer and utm tags, country, region, city, device, browser, system and app version, and whether it came from the iOS, Android, React Native or web SDK
  • People: PostHog's person as one visitor across their devices, with the user id $identify gave them and the e-mail and name set on them
  • Up to 25 months back, as long as Sumly keeps visits
How it is read
  • Through PostHog's query API (HogQL), one query at a time, ordered by time and read a page after the last row, as PostHog asks for large reads.
  • A stretch too heavy for one query is read again in smaller parts. When PostHog's limit for the key is reached, the import waits as long as PostHog says and goes on from the last row.
  • Only the days before Sumly's own numbers, and never a day Sumly already has. On the day Sumly started, only the hours before its first own visit.
  • The key is kept encrypted while the import runs and deleted when it is done.
Good to know
  • PostHog's own housekeeping events are left out: page leaves, autocaptured clicks, app opened and backgrounded, feature flag calls, surveys and recordings.
  • Payments are not traced to imported screens or pages: that starts the day Sumly's SDK and your payment connections run.
  • PostHog says its query API is not meant for exports, so a very large project takes a while. It reads at the pace PostHog allows.

PostHog questions

Which key does it need?

A personal API key (it starts with phx_) with Query: Read. Project: Read lets Sumly list the projects; without it, give the project's id from PostHog › Settings › Project. The project token (phc_…) your app sends with cannot read, so it does not work here.

Does it work with PostHog EU and self-hosted?

Yes. Sumly tries the US and the EU cloud with the key and reads from the one that knows it. For a self-hosted PostHog, give the address you open it at.

Can I undo the import?

Yes. Import history lists it with Remove, which takes out the visits and people it brought and leaves Sumly's own alone.

How do I move the app itself?

Swap the SDK calls one for one. The install guides From PostHog on iOS, Android, React Native and Flutter show each PostHog call next to Sumly's, and how to run both for a week to compare.

Other integrations

Try it with your own projects

Sign in with Google or a code by e-mail and connect your first project. The first 14 days of a paid plan are free, with no card.

Start free

Or look around first: open the live demo.

Page names first, then what the pages say