Tracking - Start Session
Called by the SPA on FIRST page load per visit. Records a site_session row with landing + attribution + parsed device + geo, upserts the site_visitor row by cookie token, and sets two httpOnly cookies on the response so subsequent /page-view calls work without the SPA managing tokens explicitly.
Idempotent-ish: a repeat call within the same visit generates a NEW site_session (that's the definition of "new visit"), reusing the visitor cookie if present.
─── Cookies set on response ──────────────────────────── juju_tracking_visitor httpOnly, 1-year, SameSite=Lax juju_tracking_session httpOnly, session, SameSite=Lax
─── Failure semantics ────────────────────────────────── Always 200 unless the request itself is unparseable. Tracking is best-effort; page rendering must never be gated on this endpoint.
Request
- Base URL: https://api.juju.com
- URL: https://api.juju.com/api/v1/tracking/session
- Auth: none declared
Request body
Response
Session recorded (or silently skipped). Cookies set on response.
Example response
{
"errors": []
}Changes
No recorded changes to this operation across all 1 revision of this API.