Coming from OpenPanel
FlarePanel keeps OpenPanel's tracking protocol, so the OpenPanel SDKs work unchanged. Create a project in FlarePanel, then change two things: the client ID and the API URL.
import { OpenPanel } from '@openpanel/web';
export const op = new OpenPanel({
clientId: 'YOUR_FLAREPANEL_CLIENT_ID',
apiUrl: 'https://api.flarepanel.dev',
trackScreenViews: true,
});import { OpenPanelComponent } from '@openpanel/nextjs';
<OpenPanelComponent
clientId="YOUR_FLAREPANEL_CLIENT_ID"
apiUrl="https://api.flarepanel.dev"
scriptUrl="https://flarepanel.dev/op1.js"
trackScreenViews={true}
/><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>The script tag version needs no apiUrl: FlarePanel's op1.js sends to https://api.flarepanel.dev by default.
What carries over
track, identify, increment, decrement, revenue | Same calls and payloads |
Screen views, outgoing links, data-track attributes | Same options |
| Server SDKs with a client secret | Same headers (openpanel-client-id, openpanel-client-secret) |
Existing OpenPanel data is not imported. See What works today for the reports that are still being moved over.
FlarePanel's own @flarepanel/* packages have the same API and will be published to npm; until then the @openpanel/* packages are the way to install from npm.