· Guides
Moving from OpenPanel to FlarePanel
FlarePanel speaks the OpenPanel tracking protocol, so switching is mostly a new client ID and API URL. Here is how to switch the SDK, the script tag and server tracking, and what to check afterwards.
By FlarePanel team
FlarePanel started as a fork of OpenPanel and keeps its tracking protocol. The OpenPanel SDKs you already ship work with FlarePanel unchanged: you give them a FlarePanel client ID and point them at FlarePanel’s API. This guide walks through each kind of install and the few things worth checking afterwards.
1. Create a project
Sign up at dashboard.flarepanel.dev, name your project and pick its type: website, app or backend. The dashboard shows your client ID and, once, a client secret. Save the secret now if you track from a server; browsers only need the client ID.
2. Change the client ID and API URL
That is the whole change for most installs. With the @openpanel/web SDK:
import { OpenPanel } from '@openpanel/web';
export const op = new OpenPanel({
clientId: 'YOUR_FLAREPANEL_CLIENT_ID',
apiUrl: 'https://api.flarepanel.dev',
trackScreenViews: true,
});With @openpanel/nextjs, also point scriptUrl at FlarePanel’s copy of the script:
import { OpenPanelComponent } from '@openpanel/nextjs';
<OpenPanelComponent
clientId="YOUR_FLAREPANEL_CLIENT_ID"
apiUrl="https://api.flarepanel.dev"
scriptUrl="https://flarepanel.dev/op1.js"
trackScreenViews={true}
/>The script tag
Keep the window.op stub as it is, change the client ID, and load op1.js from flarepanel.dev. FlarePanel’s op1.js sends to https://api.flarepanel.dev by default, so the script tag needs no apiUrl.
<script>
/* ...the same window.op stub... */
window.op('init', { clientId: 'YOUR_FLAREPANEL_CLIENT_ID' });
</script>
<script src="https://flarepanel.dev/op1.js" defer async></script>Server-side tracking
Server SDKs send the same headers as before, openpanel-client-id and openpanel-client-secret. Swap in your FlarePanel client ID and secret and set the API URL. If you call the HTTP API directly, the endpoint is POST https://api.flarepanel.dev/track with the same body shape.
Self-hosting
If you run FlarePanel on your own Cloudflare account, use your own API domain as apiUrl everywhere above instead of api.flarepanel.dev.
3. Optional: switch to the FlarePanel packages
You do not have to change packages, but FlarePanel publishes its own on npm: @flarepanel/web, @flarepanel/nextjs, @flarepanel/sdk and the rest. They have the same API, export both the OpenPanel and FlarePanel names, and send to https://api.flarepanel.dev without an apiUrl. The SDKs are MIT licensed.
// before
import { OpenPanel } from '@openpanel/web';
// after: same class, a FlarePanel name is also exported
import { FlarePanel } from '@flarepanel/web';
export const op = new FlarePanel({
clientId: 'YOUR_FLAREPANEL_CLIENT_ID',
trackScreenViews: true,
});In Next.js, @flarepanel/nextjs exports FlarePanelComponent and useFlarePanel alongside the OpenPanel names, and loads https://flarepanel.dev/op1.js by default.
What carries over
track,identify,increment,decrementandrevenue: same calls and payloads.- Screen views, outgoing links and
data-trackattributes: same options. - Server SDKs with a client secret: same headers.
What does not carry over
Your existing OpenPanel data is not imported. FlarePanel starts counting from the first event it receives, and your OpenPanel history stays where it is. If you have history in Umami, Mixpanel or Amplitude, FlarePanel can import it under a project’s Settings → Imports.
What to check after switching
- The first event. Keep the onboarding page open and load your site. The dashboard confirms the first event within a couple of seconds, then the event list, live visitors and the overview fill in.
- Your domains. Browser requests are accepted without a client secret only when their
Originmatches one of the project’s domains. If events from your site are refused, check that its domain is listed on the project. - Revenue. Revenue sent from the browser without a client secret is refused unless the project allows it. We recommend sending revenue from your server once the payment succeeds.
- Server secrets. Replace the OpenPanel client secret in every server environment. Keep it out of browser and app code.
- Batch senders. Tracking is limited to 600 requests per minute per IP address, and identical request bodies within one second count once. A backend that sends a lot from one address should stay under that.
- Feature coverage. FlarePanel is in early access. Check What works today for the reports and integrations you rely on.
Why switch
FlarePanel runs entirely on Cloudflare: Workers, Durable Objects, D1, R2 and Queues, with no servers or databases to run. You can use the hosted service, which starts with a 30-day free trial, or deploy the same AGPL-3.0 code to your own Cloudflare account. If you would rather keep a server, the same code also runs with Docker. The architecture post has the details.
Try it
Create a project, change the client ID and URL in a staging build first, and watch the first event arrive. The reference for every option is in Coming from OpenPanel and SDK options.