I've implemented the facebook pixel widget using NuxtJS, however I believe this question should be agnostic.
In order to comply with GDPR, I'm allowing my users to opt out of facebook pixels tracking. Stopping the tracking works fine, but for some reason I can't delete the actual cookies. I tried various methods for removing them using my plugin, or manually using document.cookie. Unfortunately I receive no error messages from the console, so I really can't tell what's going on. This is on localhost on a development server.
For example, I tried this:
document.cookie = "wd=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=facebook.com"
My workaround so far as to use location.reload() as the cookies seem to be sessionbased (even though the expiry says otherwise for some) Thoughts?