Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

174
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda