Developers
React / Next.js: quickstart
Install and first-use steps for sending events to Feralin with React / Next.js. Code samples come from the SDK's own README and statuses from the capability record.
Install
@feralin/react 0.1.0 is published on npm; install it with your package manager using the command below.
npm install @feralin/web @feralin/reactFirst use
import { FeralinProvider, useFeralin } from "@feralin/react";
function SatinAl() {
const feralin = useFeralin();
return <button onClick={() => feralin.track("order_completed", { order_id: "ord_1" })}>Satın al</button>;
}
export function App() {
return (
<FeralinProvider projectKey="pk_live_…" collectUrl="https://collect.example.com" consent={{ analytics: true }}>
<SatinAl />
</FeralinProvider>
);
}import { FeralinScript } from "@feralin/react/next";
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="tr">
<body>
<FeralinScript projectKey="pk_live_…" collectUrl="https://collect.example.com" />
{children}
</body>
</html>
);
}Code samples are taken as they are from sdks/web-react/README.md; comments inside may be in Turkish. You create the project key in the dashboard.
Capabilities
| Capability | Status |
|---|---|
| Event sending | Supported |
| Batch sending | Supported |
| Consent handling | Supported |
| Identity | Partial |
| Attribution | Partial |
| Deep links | Planned |
| Revenue | Partial |
| Error capture | Partial |
| Session replay | Planned |
| Tracing | Planned |
Verification chain
| Link | Status |
|---|---|
| Source | Passed |
| Build | Passed |
| Test | Passed |
| Registry publication | Passed |
| Clean install | Passed |
| Event receipt | Passed |
| Documentation | Passed |
| Super Admin proof | Not started |
Passed means local evidence: source, build and tests ran. Registry publication and Super Admin proof are separate links; the SDK is not called ready until each has passed.