Skip to content

analyticsftw/gtmforwordpressamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

gtmforwordpressamp

Installing support for Google Tag Manager in Accelerated Mobile Pages for Wordpress

This uses your Wordpress theme's functions.php file to output a Google Tag Manager snippet and dataLayer adapted for the AMP format, which does not support JavaScript by default. It is highly recommended to use a child theme for this.

Requirements

PHP5.5 or later

Wordpress 4.6 or later - http://www.wordpress.org/latest.zip

AMP for Wordpress plugin by Automattic - https://wordpress.org/plugins/amp/

For reference

For more details on Google Tag Manager, visit the Developer Reference at https://developers.google.com/tag-manager/quickstart

For more details on AMP support in Google Analytics, visit https://developers.google.com/analytics/devguides/collection/amp-analytics/

For more details on AMP support in Google Tag Manager, visit https://www.simoahava.com/analytics/accelerated-mobile-pages-via-google-tag-manager/

You can extend this function by leveraging other contextual Wordpress elements and functions. Refer to the Wordpress Codex (knowledge base) at https://codex.wordpress.org/Developer_Documentation

About

Installing support for Google Tag Manager in Accelerated Mobile Pages for Wordpress

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages