Can you provide more details on how you are adding the Facebook pixel to your website?
Are you adding it directly to your theme? Using a plugin? Or using something like Google Tag Manager?
Thread Starter
pakino
(@pakino)
Thanks for the reply. I use a plugin, it’s called Pixel Caffeine. By inspecting the code, the script is inserted into the <head>
You need to wrap the pixel with our helper functions.
If you are doing this through a plugin, if this plugin doesn’t provide a filter you can use or if Facebook doesn’t provide a way to opt out like GA does, the only solution is for you to add this manually, without the plugin.
Thread Starter
pakino
(@pakino)
thanks for the reply, I think I will insert manually.
I would need another help if possible.
I followed the guide at this link
https://gdpr-wp.com/knowledge-base/enabling-or-disabling-functionality-based-on-consent-and-cookies/
to block analytics cookies. When I load the site these are not installed and that’s okay. But when the user accepts using the I Agree button cookies are installed _ga and _gid although they have not been accepted as cookies
Can you share your site with me @pakino?