Developers
Web JS/TS: quickstart
Install and first-use steps for sending events to Feralin with Web JS/TS. Code samples come from the SDK's own README and statuses from the capability record.
Install
@feralin/web 0.1.0 is published on npm; install it with your package manager using the command below.
npm install @feralin/webFirst use
<script src="https://feralin.com/sdk/feralin.iife.js" defer></script>
<script>
window.addEventListener("load", () => {
feralin.initialize({
projectKey: "pk_live_…", // yalnız public anahtar
collectUrl: "https://feralin.com/collect",
consent: { analytics: true, advertising: false }, // consent yoksa olay üretilmez
});
});
</script>import { initialize, track } from "@feralin/web";
initialize({ projectKey: "pk_live_…", collectUrl: "https://feralin.com/collect", consent: { analytics: true } });
track("signup_completed", { plan: "growth" });Code samples are taken as they are from packages/sdk-web/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 | Supported |
| Attribution | Partial |
| Deep links | Planned |
| Revenue | Partial |
| Error capture | Partial |
| Session replay | Partial |
| 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.