AMP – Custom JavaScript is not allowed. Search Console

Posted in: Newsmag
Post count: 9

AMP – Custom JavaScript is not allowed. Page errors in all blog posts within google console reporting.

How to Fix?

Post count: 35449

Hi,

This message appear because you set a custom JavaScript for ads and this is not allowed in custom JavaScript section, please remove the code from there.
The codes for auto ads need to be set only in analytics -> https://i.imgur.com/bRcp2zK.png or in mobile theme > amp analytics -> https://i.imgur.com/gxVsaOe.png
That looks like an AMP error message
https://www.ampproject.org/docs/troubleshooting/validation_errors#custom-javascript-is-not-allowed
Also please check a similar topic -> https://forum.tagdiv.com/topic/custom-javascript-is-not-allowed/
-> https://forum.tagdiv.com/topic/a-mandatory-amp-html-tag-is-missing-from-this-document/
Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.