Skip to main content

Guide

When cookies expire
and scripts get blocked

After a partner link, Safari keeps a cookie set from JavaScript for 24 hours. Selgeo does not wait for a cookie: it matches the click to the Stripe payment on the server.

Why affiliate links lose sales on Safari

Since 2019, WebKit caps cookies that a script sets on your domain at seven days, and at 24 hours when the visitor arrives from another site with a query string in the URL. A partner link is exactly that. A B2B buyer who pays after a two-week trial is no longer linked to the partner.

What server-side matching changes

The snippet registers the click with Selgeo when it lands and keeps a click ID for the browser session. The click ID goes into the Stripe payment. Payment Links add it automatically; Checkout needs one field. From then on the record sits next to the payment in Stripe, and renewals, refunds and disputes follow it with nothing needed in the browser.

What it does not solve

  • The click ID lives for the browser tab session. The click must reach Stripe in that visit — a checkout, or a trial started at checkout. A visitor who comes back days later in a new tab, without the partner link, is not linked by the script.
  • An ad blocker can block any tracking script, ours included. If the script does not load, that click is not recorded.

What still works in both cases

  • Promo codes: a partner's code at Stripe Checkout credits the partner without any script.
  • Your own backend: read the ?ref= value from the landing URL on your server and pass it to Stripe yourself.

Questions

Short answers

What does a trial do to attribution?

A trial started through Stripe Checkout is recorded against the partner at once. The first paid invoice later pays the partner, with nothing needed in the browser.

How long does the attribution window last?

You set it per programme. The window is counted on our server, not in the browser.

What about Firefox and Chrome?

Their limits differ. Matching on the Stripe payment does not depend on any browser's cookie rules.

Try it on your own
Stripe test mode

Start free trial

14-day free trial, no card.