Draft Example content for planning the Kwik docs. Endpoints, fields and events are placeholders until they ship.
ModuleData 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
- 1Install the pixelOne script on your store, first-party data from day one.
- 2Attribute every orderCodes, links, redirects and lifetime credit.
- 3Read the reportsWho carries your revenue, and when to reward them.
Settings
| Field | Type | What it does |
|---|---|---|
attribution_window | days | How long a click or code keeps credit. |
ltv_mode | enum | personal, referred or true (both). |
group_by | enum[] | ambassador_type, campaign, module. |
Events
Kwik sends these to your webhook URL. See Webhooks for the payload and signatures.
| Event | When it fires |
|---|---|
order.attributed | An order was tied to a source. |
fraud.flagged | An order or account was flagged for review. |
Example request
True lifetime value by campaign.
curl https://api.kwik.com/v1/reports/ltv?group_by=campaign \
-H "Authorization: Bearer $KWIK_API_KEY" {
"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 →