Quick start
Get Nohmo tracking your users in under 2 minutes. Drop in the script, send your first event, link your first user.
Create a project
Sign in to your Nohmo account and create a new project, or use the API:
curl -X POST https://api.nohmo.com/v1/projects \-H "Authorization: Bearer YOUR_API_KEY" \-H "Content-Type: application/json" \-d '{"name": "My App", "domain": "myapp.com"}'
You'll receive a project_id like proj_a8x2kqthat you'll use in your script tag.
Add the script tag
Drop the Nohmo script into the <head> of your HTML. Device tracking starts immediately — no additional config needed to start fingerprinting devices.
<scriptsrc="https://cdn.nohmo.com/n.js"data-project="proj_xxxx"></script>
Send your first event
Call tracker.send() with an event name and any data object. Events are batched automatically — no performance impact on your app.
tracker.send('car_viewed', {carId: car.id,price: car.price,})
Link users at login
After login or signup resolves, call tracker.linkUser()with the user's ID and email. All prior anonymous events from that device are immediately linked.
// after login resolvesawait tracker.linkUser(user.id, user.email)
Note: Every event that device fired before this call — page views, clicks, anything — is retroactively attached to the user. Nothing is lost.