Hoppa till innehållet

Analytics

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.

2 calls POST Base URL https://api.erp.fluit.cloud/ecom

Authentication, error codes, rate limits, idempotency and pagination apply to every call and are documented once under Getting started.

POST /analytics/event

Track a purchase funnel step

Records that a visitor took a step in the purchase funnel, named as the GA4 e-commerce event: view_item, add_to_cart, begin_checkout, add_shipping_info, add_payment_info or purchase. Cookie-free; ignored when the channel's analytics is off or the visitor is a bot. Called server-side from ecom-frontend.

Body required

Field Type
step string · nullable

Responses

204 Empty 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.

Standard errors: 400 Errors

Examples

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

Base URL https://api.erp.fluit.cloud/ecom.

POST /analytics/pageview

Track page view

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

Body required

Field Type
pagePath string · nullable
referrer string · nullable
statusCode integer
utmCampaign string · nullable
utmContent string · nullable
utmMedium string · nullable
utmSource string · nullable
utmTerm string · nullable

Responses

204 Empty 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.

Examples

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

Base URL https://api.erp.fluit.cloud/ecom.