13 ms·
Nice work! Have you considered using localStorage instead of sessionStorage so it works across browser tabs as well?
by dmkii 6y ago
Nice work! Have you considered using localStorage instead of sessionStorage so it works across browser tabs as well?
- nitrogen 6y agoDoes thay difference have implications under GDPR or California's new law?
- dmkii 6y agoNo, 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.
- gk1 6y agoI 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 :)