Quickstart
Get from zero to your first event in the dashboard in about five minutes.
-
Get your write key.
In the Origamy dashboard, create a JavaScript source (or open an existing one) and copy its write key. The write key identifies your source and authorizes the SDK to send events — it is safe to expose in the browser.
-
Paste the snippet.
Add this to your site’s
<head>, before any code that callsorigamy.*. It stubs the API, queues calls, and loads the full engine asynchronously — nothing blocks your page render.<script>(function() {window.origamy = window.origamy || [];var methods = ["load", "track", "page", "identify", "alias", "group"];for (var i = 0; i < methods.length; i++) {(function(method) {window.origamy[method] = function() {window.origamy.push([method].concat(Array.prototype.slice.call(arguments)));};})(methods[i]);}var cdnHost = window.__origamyCdnHost || "https://cdn.origamy.io";var script = document.createElement("script");script.type = "text/javascript";script.async = true;script.src = cdnHost.replace(/\/$/, "") + "/v1/analytics.min.js";var firstScript = document.getElementsByTagName("script")[0];firstScript.parentNode.insertBefore(script, firstScript);})();origamy.load("YOUR_WRITE_KEY");origamy.page();</script> -
Track something.
Identify the user when you know who they are, and track the actions you care about:
origamy.identify("user_123", {email: "ada@example.com",plan: "pro",});origamy.track("Signed Up", {plan: "pro",referrer: "producthunt",}); -
Verify it arrived.
Open Live Events in the Origamy dashboard. Your
page,identify, andtrackcalls should appear within a few seconds. If nothing shows up, check the browser console — the SDK logs delivery errors, andorigamy.load("KEY", { debug: true })makes it verbose.
Other ways to install
Section titled “Other ways to install”Track from your backend with the Node.js, Go, or PHP SDK:
import { New, Track } from "@origamy/node-sdk";
const client = New(process.env.ORIGAMY_WRITE_KEY);client.enqueue(new Track({ userId: "user-123", event: "Signed Up" }));await client.close();Send events from any backend or tool that can make an HTTP request — see the Ingestion API for the full reference.
curl https://events.origamy.io/v1/track \ -u "YOUR_WRITE_KEY:" \ -H "Content-Type: application/json" \ -d '{ "anonymousId": "anon-1", "event": "Signed Up", "properties": { "plan": "pro" }, "timestamp": "2026-07-02T12:00:00Z" }'Self-hosted data planes
Section titled “Self-hosted data planes”If your workspace runs a self-hosted (BYOD) data plane, events go to your gateway instead of Origamy Cloud. Point the SDK at it when you load:
origamy.load("YOUR_WRITE_KEY", { apiHost: "https://events.your-domain.com",});Everything else — the API, the event spec, the dashboard — works the same.
Next steps
Section titled “Next steps”- Web SDK reference — every method and configuration option
- Event spec — what an event looks like on the wire
- Ingestion API — server-side and batch delivery
