DocsModulesData And Tracking

Draft Example content for planning the Kwik docs. Endpoints, fields and events are placeholders until they ship.

Module

Data And Tracking

First-party tracking with the Kwik Pixel, attribution by code, link and redirect, and reporting on true lifetime value by customer, ambassador type and campaign.

How it works

  1. 1Install the pixelOne script on your store, first-party data from day one.
  2. 2Attribute every orderCodes, links, redirects and lifetime credit.
  3. 3Read the reportsWho carries your revenue, and when to reward them.

Settings

FieldTypeWhat it does
attribution_windowdaysHow long a click or code keeps credit.
ltv_modeenumpersonal, referred or true (both).
group_byenum[]ambassador_type, campaign, module.

Events

Kwik sends these to your webhook URL. See Webhooks for the payload and signatures.

EventWhen it fires
order.attributedAn order was tied to a source.
fraud.flaggedAn order or account was flagged for review.

Example request

True lifetime value by campaign.

GET/reports/ltv?group_by=campaign
curl https://api.kwik.com/v1/reports/ltv?group_by=campaign \
  -H "Authorization: Bearer $KWIK_API_KEY"
Response · 200
{
  "group_by": "campaign",
  "rows": [
    { "campaign": "spring_vip", "customers": 412, "true_ltv": 286.40 },
    { "campaign": "giveaway_lambo", "customers": 1290, "true_ltv": 174.10 }
  ]
}

Looking for the product view? See Data And Tracking on the platform →