# 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](https://supranalytics.app/docs/polar.md) must be set up first.
- Links that already have a `reference_id` are left alone.
- SuprAnalytics only accepts a `reference_id` that 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.

---

This page on the web: https://supranalytics.app/docs/polar-checkout-links
Every documentation page: https://supranalytics.app/docs.md
