Meta pixel issues

Description

It seems the Meta Pixel is firing only on the home page based on the chrome extension debugger.

The implementation is using the cookie consent manager and GTM. GA seems to work well but not the Meta Pixel.

I know Meta has an error in the console, but if I move the pixel code to the website head the pixel fires on all pages which means there is an implementation issue somewhere

Site URL

Required: Please provide a staging/production URL where we can see the issue

Steps to Reproduce

  1. Load the website
  2. Load any other screen
  3. Check the console

Expected Behavior

Pixel fires correctly

Actual Behavior

Pixel only fires on the home screen.
Go to programmes screen and you will see it is not firing

Video/Screenshots

Required: Please provide a short screen recording showing the issue
Sorry not sure where to upload screenshots but the issue is easy to replicate but just loading the screen

Additional Context

  • Browser: Version 137.0.7151.120 (Official Build) (arm64)
  • Device: Desktop

NDA Notice: If you’re under an NDA, please feel free to send us a Direct Message/Email with the above information.

Hey @savvas!

The issue may come from a line within the Meta Pixel code. With how the scripts are triggered, this line revokes all previously granted consent:

fbq('consent', 'revoke');

This means Meta will stop tracking events for that user session.
You can simply remove this line from the script, and all events will continue to be tracked as expected.