Who this is for Brands whose creator links go straight to their own site,
for example
https://yoursite.com/?a=megan1, and who report sales with
Create affiliate sale.
Shopify stores do not need this. The Growi storefront script already records
their clicks.How it works
- A visitor lands on your site with
?a=<creator tag>in the URL. - Your site gives the visitor an anonymous ID (a first-party cookie) if they do not have one.
- Your server calls Create page views with the tag and the visitor ID.
- Within a few minutes the creator sees the click on their campaign Revenue page as Page Views and Unique Clicks.
1. Report the click from your server
Report once per landing that carries ana tag. Do not report every page the visitor opens afterwards.
app/api/growi-click/route.ts (Next.js)
a parameter:
2. Check it
Open one of your creator links in a private window, then call the endpoint by hand with the same tag. A201 with "created": 1 means the click was recorded. "unmatched": 1 means the tag is not one of your creators.
3. Backfill past clicks (optional)
If you have your own log of past visits with the creator tag and a time, send them to the same endpoint in batches of up to 500 withoccurred_at set. Sending a batch twice does not double count.
Good to know
- Sales attribution does not change. You keep reporting sales the same way.
- Creators keep their current links. Clicks on links that are already posted count from the moment your site starts reporting them.
- Page views have their own limit of 1,000 requests per hour per API key and never slow down your sale reports.