Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

Visitor tracking

2 routes. Paths are relative to https://api.intersink.com/v1.

All groups

Visitor report for a channel (managers)

GET/visitor/stats

Needs a signed-in user (Bearer token or access_token cookie).

Site visits for a channel I manage: totals, by day, sources, places, devices, pages.

Parameters

NameTypeDescription
channel_idrequiredstring, query
daysnumber, queryOne of: 7, 30, 90.

Response

200. The payload in data is not described in the spec yet.

Track a new or returning anonymous visitor

POST/visitor/track

Public: no sign-in needed.

Parameters

NameTypeDescription
x-refstring, header

Request body application/json

FieldTypeDescription
device_idstringThe browser's random id, sent only after the visitor allowed analytics. Stored as a keyed hash per channel, never as sent. At most 100 characters.
channel_idstringChannel ID where the visit originated
countrystringVisitor country (can be populated via frontend or backend)
citystringVisitor city
utm_sourcestringUTM Source for marketing tracking
utm_mediumstringUTM Medium for marketing tracking
utm_campaignstringUTM Campaign for marketing tracking
pathstringPage path that was viewed, e.g. /shop/p/mug At most 300 characters.
referrerstringdocument.referrer (only its host is kept) At most 500 characters.

Response

200. The payload in data is not described in the spec yet. Visitor tracked successfully