Facebook Pixel page view warning, error, firing twice?

Facebook Pixel page view warning, error, firing twice?

What to do if you get a Facebook Pixel page view warning, error, or if the code is firing twice?

If your Facebook Pixel Page View action is firing twice, it can happen for a few reasons.

Mostly it happens if you have some extra code in your page that is creating some weird behavior.

What you need to look into your page is to see if you have any iframe or script tags.


Mostly iframes, because that will create a page within a page, so basically, the page view Facebook pixel code will trigger twice.

To debug, just remove everything from under your /head tag and check with the browser Facebook pixel addon / plugin if the page view is firing twice.

If it fires just once, it means that somewhere in the body tag, there is a html / javascript / php code that is making the pixel code to fire twice.

If it still fires twice, look above the ending of the /head tag for any code that you think that might create this issue with the pixel code to fire twice.


Edit, remove whatever you can find and try again.

The page view Facebook pixel code should only fire once now.

Regarding error, warnings in the browser console, you can just ignore those as they always appear when using a Facebook pixel code.

Hopefully, now you know what to do regarding the Facebook Pixel page view warnings, errors or if the code is firing twice?

If you need more help, please leave in the comments.

Add a comment: