Google Tag Manager for WordPress free WordPress plugin
Description
Google Tag Manager (GTM) is Google’s free tool for everyone to manage and deploy analytics and marketing tags as well as other code snippets using an intuitive web UI. To learn more about this tool, visit the official website. This plugin places the GTM container code snippets onto your wordpress website so that you do not need to add this manually. Multiple containers are also supported! The plugin complements your GTM setup by pushing page meta data and user information into the so called data layer. Google’s official help pages includes more details about the data layer. You can also add your Google Optimize container with the recommended code setup Some parts of the plugin require PHP 5.6 newer. PHP 7.0 or newer is recommended. Please note that PHP 5.6 is nearing its end of life cycle thus it is recommended to upgrade. If you are not sure which version you are using, please contact your hosting provider for support. GTM container code placement The original GTM container code is divided into two parts: The first part is a javascript code snippet that is added to the section of every page of the website. This part is critical to enable all features of GTM, and this plugin helps to place this part correctly on your site. The second part is an iframe snippet that acts as a failsafe/fallback should users’ JavaScript be disabled. Google recommends – for best performance – to place this code snippet directly after the opening tag on each page. Albeit not ideal, it will work when placed lower in the code. This plugin provides a code placement option for the second code snippet. Inherently, WordPress does not offer a straight-forward solution to achieve this, however Yaniv Friedensohn showed me a solution that works with most themes
Features
Cost:
Free
Provider:
Thomas Geiger
Popularity:
High
WPMarket

