• When facebook pixel code is added to the backend Analytics section, it generates an amp-img tag on the markup inside the head tag. And this causes the following error inside google search console:

    Tag or text which is only allowed inside the body section found outside of the body section.

    The code that entering the facebook pixel code in the backend generates on the frontend inside head is:

    <!-- Facebook Pixel Code --><!--noscript--><amp-img height="1" width="1" src="https://www.facebook.com/tr?id=[ID-GOES-HERE]&ev=PageView&noscript=1" class="amp-wp-enforced-sizes" layout="intrinsic"></amp-img><!--/noscript--><!-- End Facebook Pixel Code -->

Viewing 1 replies (of 1 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    We don’t add that code at all. It seems like either you are manually adding it or somebody else is adding this one. Because our output is in the <amp-pixel> format and it works perfectly.

    Have you enabled it properly from the options?

    Are you using any other plugins related to the FB pixel?

Viewing 1 replies (of 1 total)
  • The topic ‘Facebook Pixel Creates Validation Errors on Google Search Console’ is closed to new replies.