Hoppa till innehållet

Analys

Page-view ingestion for the tenant's own storefront reporting, feeding the SEO and traffic views inside Fluit. It records what your storefront tells it; it is not a public analytics service.

1 anrop POST Bas-URL https://api.erp.fluit.cloud/ecom

Autentisering, felkoder, rate limits, idempotens och paginering gäller alla anrop och står samlade under Kom igång.

POST /analytics/pageview

Track page view

Records a page view for analytics. Called server-side from ecom-frontend.

Body krävs

Fält Typ
pagePath string · nullable
referrer string · nullable
statusCode integer
utmCampaign string · nullable
utmContent string · nullable
utmMedium string · nullable
utmSource string · nullable
utmTerm string · nullable

Svar

204 Tom body.
429 Rate limit exceeded. Wait the number of seconds given in Retry-After. The body is problem-shaped application/json, not application/problem+json. This API sends no X-RateLimit-* headers — the quota is discovered here.
  • Retry-After — Seconds to wait before retrying.

Exempel

curl
curl -X POST "https://api.erp.fluit.cloud/ecom/analytics/pageview" \
  -H "X-Tenant-Id: $FLUIT_TENANT_ID" \
  -H "X-Channel: web" \
  -H "Content-Type: application/json" \
  -d @body.json

Bas-URL https://api.erp.fluit.cloud/ecom.