sdk

POST /sdk/track/visit

Adds traffic data to the system

Request

  • Base URL
    https://api.goaffpro.com/v1
  • URL
    https://api.goaffpro.com/v1/sdk/track/visit
  • Auth
    API key in header x-goaffpro-public-token

Request body

idstring

A visit ID to send with subsequent requests to maintain the session. For first session pass id as null

locationstring

The landing page URL

refstring

Referral code of this visit

referrerstring

Referring URL

Response

unknown required

Example response

{
  "id": "1231212",
  "location": "https://mystore.com/landing.html?ref=abcxyz",
  "referrer": null,
  "ref": "abcxyz"
}

Changes

No recorded changes to this operation across all 7 revisions of this API.