Thread Starter
scits
(@scits)
I was able to solve this as follows:
- Disable PYS and Meta Pixel cookies in functions.php:
add_filter( 'pys_disable_all_cookie', '__return_true', 10, 2 );
add_filter( 'pys_disable_facebook_by_gdpr', '__return_true', 10, 2 );
- Disable existing Meta Pixel code in Google Tag Manager
- Create a new Custom HTML Tag with the following code:
<script>
pys.Facebook.loadPixel();
</script>
Under consent settings -> Additional Consent Checks -> Require additional consent for tag to fire -> ad_storage
Seems to work nicely so far 👍
Meta doesn’t recommend sending only API events. Browser events are usually better when it comes to user matching.
And it’s not a good idea to have the pixel installed by something else because events deduplication will not work.
Thread Starter
scits
(@scits)
Hi @pixelyoursite
The above-mentioned method loads the Pixel through the PYS plugin, the deduplication seems to work.