Skip to developer documentation
Browse developer documentation
API documentation / Browser tracking

Browser tracking

Collect a cookieless pageview

The c.js transport for a website already configured for aggregate measurement.

POST/api/v1/cookieless

Access: Public · no authentication · Permission details

JSON request body

JSON request fields
FieldTypeDescription
siteIdRequiredstringPublic website ID, starting site_.
visitorEstimatesstringOnly 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 request
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.

Response fields
FieldTypeDescription
okbooleanWhether the aggregate pageview was recorded.
JSON response
{
  "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 statusMeaning
400Invalid body, aggregate mode not enabled, or pageview not accepted.
403Origin does not match the website or a subdomain.
503Pageview could not be recorded.