WordPress.org

Ready to get started?Download WordPress

Plugin Directory

DuracellTomi's Google Tag Manager for WordPress

The first Google Tag Manager plugin for WordPress with business goals in mind.

Google Tag Manager (GTM) is Google's free tool to everyone to be able to manage your analyitcs, PPC and other code snipetts using an intuitive web UI.

This plugin can place the necessary container code snippet into your website so that you do not need to edit your theme files.

Basic data included

Google Tag Manager for WordPress (aka GTM4WP or GTM 4 WP) builds a so called dataLayer variable for you. Using this you can manage your tags very easily since you can fire them using rules that include

  • post/page titles
  • post/page dates
  • post/page category names
  • post/page tag names
  • post/page author names
  • post types
  • post count on the current page + in the current category/tag/taxonomy
  • logged in status
  • logged in user role
  • search data
  • browser data (name, version, engine) (!)
  • OS data (name, version) (!)
  • device data (type, manufacturer, model) (!)

(!) Data is provided using the WhichBrowser library: http://whichbrowser.net/

Use search data to generate Analytics events when an empty search result is being shown. This is useful to see what people are searching for that is not available on your site (for example a product).

Use post count to generate Analytics events when an empty result is being shown. This can be useful to catch empty (product) categories.

Tag Manager Events

This plugin can fire several Tag Manager events so that you can include special tags when

  • the visitor clicks on an outbound link
  • the visitor clicks on a download link
  • the visitor clicks on an email link
  • the visitor moves between elements of a form (comment, contact, etc.)
  • the visitor clicks on a Facebook like/share (limited feature) or Twitter button

Link URLs are included in the Tag Manager event so that you can use them for example in a Google Analytics event tag.

Scroll tracking

Fire tags based on how the visitor scrolls from the top to the bottom of a page. You can track this as Analytics events and/or fire remarketing/conversion tags to if you want to track micro conversions. Separate readers (who spend a specified amount of time on a page) from scrollers (who only scroll through within seconds)

Scroll tracking is based on the solution originally created by

  • Nick Mihailovski
  • Thomas Baekdal
  • Avinash Kaushik
  • Joost de Valk
  • Eivind Savio
  • Justin Cutroni

Oroginal script: http://cutroni.com/blog/2012/02/21/advanced-content-tracking-with-google-analytics-part-1/

Google AdWords remarketing

Google Tag Manager for WordPress can add every dataLayer variable as an AdWords remarketing custom parameter list. Using this you can create more sophisticated remarketing lists.

Blacklist & Whitelist Tag Manager tags and macros

To increase security on your website, you can whitelist and blacklist tags and macros. This means you can disable certain tags from being fired or prevent the use of certain macro types from being used regardless of your current Tag Manager setup.

If your Google account is being hacked that is associated with your Google Tag Manager account, an attacker could easily execute malware on your website without accessing its code on your hosting server.

By blacklisting custom HTML tags and/or custom JavaScript macros for example you can have a more secure Tag Manager container if you do not use those kind of elements.

Integration

Google Tag Manager for WordPress can integrate with several popular plugins.

  • Contact Form 7: fire an event after a successful form submission
  • WooCommerce:
    • fire event when visitors ads a product to your cart
    • include transaction data to be sent to Google/Universal Analytics
    • include necessary remarketing tags for Google AdWords Dynamic Remarketing

More integration to come!

Requires: 3.0.1 or higher
Compatible up to: 3.8.3
Last Updated: 2014-2-28
Downloads: 5,163

Ratings

5 stars
5 out of 5 stars

Support

6 of 11 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,1,1
100,2,2 100,1,1
100,2,2 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1