Hacker News new | ask | show | jobs
by dmkii 2222 days ago
Nice work! Have you considered using localStorage instead of sessionStorage so it works across browser tabs as well?
2 comments

I did consider it recently, but decided against it as it would mix last-touch with last-tagged-touch attribution. If you fail to tag a campaign link it would be good for the conversion to not have data, so you recognize the error and tag the link.

If I were to do localStorage I would only do it if the first touch and last touch tags (even if empty) were saved as separate values. That just means slightly more coding which I haven’t gotten around to. Pull requests welcome :)

Does thay difference have implications under GDPR or California's new law?
No, it’s stored on the user’s own computer only. You could put an expiry date in there as well so you don’t accidentally use it after, say, 90 days.