AMP Plugin Header and Footer

Posted in: Newspaper
Post count: 38

I’m planning to add Google Tag Manager for AMP Pages. Google wants to add a header and footer snippet to implement TagManager for AMP. I don’t see any option to add the same on the current AMP plugin. Would you please tell me, which AMPPlugin file, and where can I add:

1, Snippet before the header
2, Snippet before the closing body

Really appreciated the help. Ref: AMP & Tag Manager setup guide

Post count: 35449

Hi,

I order to add this code in AMP file you’ll need to edit the html-start.php and html-end.php
header wp-content/plugins/td-amp/templates/html-start.php -> https://www.screencast.com/t/f8CuClXhOjy
body wp-content/plugins/td-amp/templates/html-end.php -> https://www.screencast.com/t/rvhIQ4JE

Hope this will help you!
Thank you.

Post count: 38

Thank you, that works.

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