Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

172
Views
Removing facebook pixel cookies with JS

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?

enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!