Install The Tracking Snippet

Add a domain, paste one script tag, and verify that events are arriving.

Everything in User Activity, every behavioural audience in a campaign, and every number in Insights comes from one script tag on your site.

Add The Domain

  1. 1Go to User Activity → Setup and press Add source.
  2. 2Enter the domain you want to track. One tracked source per domain.
  3. 3Behavly generates a write key for that source and embeds it in a snippet.

The snippet is a single async script tag:

<script async src="https://behavly.io/t.js" data-pid="YOUR_WRITE_KEY"></script>

Paste it into the <head> of your site. It is async, so it does not block rendering.

Install It On Your Signed-In Pages

The most common installation mistake is putting the snippet only on the marketing site. Behavly is about what your signed-in users do. If the snippet is not on your logged-in application pages, the Identified Users list stays empty no matter how much traffic you have.

Verify It

The Setup tab. Each tracked domain shows its test status; the code icon in the Actions column copies that source's snippet.
The Setup tab. Each tracked domain shows its test status; the code icon in the Actions column copies that source's snippet.

Press Test script. Behavly polls until it sees one of two things: real events arriving from that write key, or the snippet present in your page's HTML. A source then shows one of four states.

StateWhat it means
Not testedThe source was added but never verified. Behavly has not looked yet.
Awaiting eventsVerified — the snippet was found — but no events have arrived. Normal for a minute or two after install; suspicious after an hour.
TestedVerified and receiving events. This is the healthy state.
PausedYou stopped ingestion for this source. Existing data is kept; new events are dropped.

Clicking a domain in the list opens analytics for just that source.

Identity

You do not call an identify function. The snippet detects a signed-in session on its own and attaches the activity to that person. There is no behavly.identify() step to wire up.

View-only members can read the tracked sites and their snippets, but cannot add, test or delete a source.

Still stuck? Ask Copilot from inside the app — it can explain any part of Behavly, though it cannot see your data. Or email hello@behavly.io.