Someone buys a Pro subscription on our website.
How do we know where they came from?
Was it Google ads. Was it a newsletter?
It's a hard question to answer!
Here's how we do it. (A small 🧵)
For example, on Product Hunt when you click on "Visit" it redirects to your page with a ref=producthunt parameter in the URL.
We capture that value and store it in the browser for later.