Script that auto deletes visitors cookies on a website to clear first click attribution for affiliate marketing

2317085

Newbie
Joined
Apr 27, 2026
Messages
1
Reaction score
0
Looking for a script that I can paste onto my lander that will instantly clear cookies from previous clicks that the visitor had to our affiliated software (it's popular) to clear out first click attribution and also other affiliate links that they might have clicked on.

We usually use incognito mode for this but it still messes up attribution.

Please let me know! :))
 
I’d be careful with this because clearing someone else’s affiliate cookies from a lander is probably going to look shady to networks and merchants. Attribution fights happen all the time, but wiping prior clicks can get accounts banned fast. I’d rather fix tracking with proper UTMs, server-side events, or a clean funnel than risk building something that screams policy violation.
 
highly recommend looking into proper S2S or using clean tracking parameters instead
 
Back
Top