Browse developer documentation
Browser tracking
Collect a cookieless pageview
The c.js transport for a website already configured for aggregate measurement.
/api/v1/cookielessAccess: Public · no authentication · Permission details
JSON request body
| Field | Type | Description |
|---|---|---|
siteIdRequired | string | Public website ID, starting site_. |
visitorEstimates | string | Only daily is accepted, and only used when daily estimates are enabled in saved settings. Values: daily. |
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/cookieless" \
-H "Origin: https://shop.example.com" \
-H "Content-Type: application/json" \
--data '{
"siteId": "site_example"
}'Response
Illustrative response. This endpoint returns raw JSON. Optional coverage, notes and continuation fields vary by report.
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the aggregate pageview was recorded. |
{
"ok": true
}Behavior and limits
Prefer the c.js snippet returned for the site's saved aggregate mode. The JSON body is limited to 256 characters and rejects other keys.
A matching browser Origin header is required. A server-side cURL call without that header returns 403. The example must add Origin: https://shop.example.com for the example website.
No visitor ID, path, email, referrer, goal or payment fields are accepted. Daily visitor estimation requires both saved opt-in and visitorEstimates: daily. Bot user agents return 202 with { ok: true, ignored: bot }.
| HTTP status | Meaning |
|---|---|
| 400 | Invalid body, aggregate mode not enabled, or pageview not accepted. |
| 403 | Origin does not match the website or a subdomain. |
| 503 | Pageview could not be recorded. |