Facebook Pixel Creates Validation Errors on Google Search Console
-
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 -->
- The topic ‘Facebook Pixel Creates Validation Errors on Google Search Console’ is closed to new replies.