Revenue attribution
Attribute Polar Checkout Links without code
The script adds the visitor id to Polar Checkout Links as reference_id when they're clicked, and the webhook brings it back with the order.
Polar Checkout Links (https://buy.polar.sh/polar_cl_…) work with no code. When a visitor clicks one, the SuprAnalytics script adds ?reference_id=<their visitor id> to the link; Polar copies it into the order's metadata, and the webhook brings it back to SuprAnalytics.
<a href="https://buy.polar.sh/polar_cl_XXXXXXXX">Buy now</a> <!-- clicked: https://buy.polar.sh/polar_cl_XXXXXXXX?reference_id=6f1c… -->
- The webhook must be set up first.
- Links that already have a
reference_idare left alone. - SuprAnalytics only accepts a
reference_idthat is a visitor it has seen, so your own reference ids are never mistaken for one. - To stop the script changing links, add
supr-polar="false"to it.
AI agent or LLM? Read this page as Markdown