H&F with AMP
-
Hello, long time user of your plugin; thanks
I have added AMP and using Twenty Twenty theme;
1. I a getting following error from AMP:
Error code
DISALLOWED_TAG
Invalid markup
<script>
Element name
script
Parent element
head
Text content(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,’script’,’dataLayer’,’GTM-WLC5B79′);Sources
#1 Type: Plugin
Name: Head, Footer and Post Injections (header-footer)
Function: hefo_wp_head_post()
Action: wp_head (priority 11)
Location: plugin.php:1582. I have copied the code for Google Tags from Header section to AMP section of your H&F and I my Google Tags are not being acknowledged by Google Tags Assistant.
Kindly advise.
TIA
The topic ‘H&F with AMP’ is closed to new replies.