Create page views
Records link clicks (page views) on a custom website and attributes them to campaign creators. Send one page view per request, or up to 500 in a page_views array.
POST
Records link clicks on a custom (non-Shopify) website and attributes them to campaign creators. Use it when creator links point straight at your own site, for example
https://yoursite.com/?a=megan1.
Shopify stores do not need this endpoint. The Growi storefront script records their clicks.
Once page views are flowing, creators see Page Views and Unique Clicks on their campaign Revenue page. Brand reports that show link clicks pick them up within about 15 minutes. See Custom website click tracking for a full walkthrough.
Request body
Send one page view as a flat object, or up to 500 in apage_views array.
Behavior
- Call it from your server. The API key must never reach the browser.
- Unknown tags are skipped, not rejected. They are counted in
unmatchedand listed inunmatched_campaign_affiliate_ids. - Safe to retry. A page view with an explicit
occurred_atis recorded once per creator,visitor_uidandoccurred_at. Repeats are counted induplicates. - Malformed requests record nothing. A missing
visitor_uid, a missing tag, a bad date, an empty array or more than 500 page views returns422with one error per bad row. - Own rate limit. Up to 1,000 requests per hour per API key, with no 2-second wait between requests. Page views do not use up the budget of your other API calls, and your other calls do not use up this one.
- Send people, not bots. Skip link-preview fetchers, crawlers and prefetch requests before you call the endpoint.
Response fields
The status is
201 when at least one page view was recorded and 200 when the request was valid but nothing new was recorded.
Authorizations
Body
application/json
- Option 1
- Option 2
Response
The request was valid but nothing new was recorded (every page view was a duplicate or had an unknown tag)