Quick start

Get Nohmo tracking your users in under 2 minutes. Drop in the script, send your first event, link your first user.

1

Create a project

Sign in to your Nohmo account and create a new project, or use the API:

bash
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.

2

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.

html
<script
src="https://cdn.nohmo.com/n.js"
data-project="proj_xxxx">
</script>
3

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.

javascript
tracker.send('car_viewed', {
carId: car.id,
price: car.price,
})
4

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.

javascript
// after login resolves
await 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.