Browse developer documentation
Browser tracking
Collect standard browser activity
The standard tracker transport for pageviews, goals and identity calls. Prefer the official t.js installation.
/api/v1/collectAccess: Public · no authentication · Permission details
JSON request body
| Field | Type | Description |
|---|---|---|
siteIdRequired | string | Public website ID. |
visitorIdRequired | string | Observed visitor identifier, up to 64 characters. |
eventType | string | Activity type. Values: pageview, custom_goal, identify. Default: |
urlPath | string | Page path, up to 500 characters. Default: |
referrer | string | Optional recorded acquisition context. |
utmSource | string | Optional recorded acquisition context. |
utmMedium | string | Optional recorded acquisition context. |
utmCampaign | string | Optional recorded acquisition context. |
utmContent | string | Optional recorded acquisition context. |
utmTerm | string | Optional recorded acquisition context. |
clickIdType | string | Optional recorded acquisition context. |
rootDomain | string | Validated against the request Origin/Referer host for subdomain navigation. |
eventName | string | Goal name, up to 120 characters. |
email | string | Identity email, only with the site's authorized identity collection. |
metadata | object | Optional event properties. |
Request examples
Examples run from your server or terminal. Configure ATTRIBOO_TOKEN privately for authenticated requests. Replace example website IDs and values with your own. The examples make real requests when you run them.
curl -X POST "https://www.attriboo.com/api/v1/collect" \
-H "Content-Type: application/json" \
--data '{
"siteId": "site_example",
"visitorId": "v_example",
"eventType": "pageview",
"urlPath": "/pricing",
"referrer": "https://www.google.com/"
}'Response
Illustrative response. This endpoint returns raw JSON. Optional coverage, notes and continuation fields vary by report.
| Field | Type | Description |
|---|---|---|
ok | boolean | Request accepted. |
channelGroup | string | Classified channel. |
sourceName | string | Classified source. |
{
"ok": true,
"channelGroup": "Organic Search",
"sourceName": "Google Organic"
}Behavior and limits
Public website IDs are not API credentials. Never attach a workspace key to a browser collection request.
Use t.js to coordinate consent, local exclusions, visitor identity, SPA navigation and checkout behavior. Call this transport only after applying the site's tracking and consent choices; a raw request does not implement the browser's consent UI.
The tracker sends a text/plain JSON body with fetch keepalive to avoid a preflight; application/json bodies are also parsed. Browser requests supply Origin/Referer for hostname handling. The cURL body shows the contract, not a substitute for a real browser installation.
Bot user agents return HTTP 202 with { ok: true, ignored: bot }. Other accepted events can still be excluded or dropped by collection controls. A 200 response is not proof a visit was retained.
| HTTP status | Meaning |
|---|---|
| 400 | Invalid body or activity could not be recorded. |
| 404 | Unknown website. |