This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Mokusiga Google Tag Manager

Description

This is a Plugin to insert Google Tag Manager (GTM) into your WordPress site.
The GTM tag is inserted into the footer by default, using the wp_footer() hook.
A custom hook can also be used instead.

The plugin allows the user to choose the container ID to use, and also change the
dataLayer name. There is one extra option to add into the datalayer on whether the current user is a logged in user. Other custom datalayer variables can be added, and these will be added to the generated code.

Author website is http://mokusiga.com/google-tag-manager-a-wordpress-plugin/

Arbitrary section

Screenshots

  • Admin page screenshot for the Google Tag Manager

FAQ

How can I place the GTM code to immediately after the tag?

see http://mokusiga.com/wordpress/google-tag-manager/#gtm_location_head

What is my Container ID?

see http://mokusiga.com/wordpress/google-tag-manager/#gtm_container_id

Where do I set the GTM code? What is the location of the script?

see http://mokusiga.com/wordpress/google-tag-manager/#gtm_location

What is the dataLayer name?

see http://mokusiga.com/wordpress/google-tag-manager/#gtm_datalayer_name

How do I use the dataLayer?

see http://mokusiga.com/wordpress/google-tag-manager/#gtm_using_datalayer

What is my dataLayer variable for logged in users?

see http://mokusiga.com/wordpress/google-tag-manager/#gtm_datalayer_loggedin

What is my dataLayer variable for the Word Press version?

see http://mokusiga.com/wordpress/google-tag-manager/#gtm_datalayer_wp_version

What are custom dataLayer variables I can add?

see http://mokusiga.com/wordpress/google-tag-manager/#gtm_datalayer_custom

Changelog

1.2.2

  • Added a space in the GTM code. To validate against HTML5
  • Custom Datalayer text not saving correctly. Fixed
  • Added new custom datalayer variable to set WP version.
  • Using stripslashes() for the datalayer text. WP is adding slashes automatically.

1.2.1

  • Updated Readme file and version number

1.2

  • Fixed datalayer show logged in users bug

1.1.1

  • Fixed SVN upload mistake

1.1

  • Fixed Datalayer Name

1.0

  • First Version

0.1

  • First Draft

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code