このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

Google Tag Manager

説明

You can sign up for a Google Tag Manager account here.

This plugin makes it even easier to use Google Tag Manager, adding all the code itself — all you need to do is provide the Account ID!

インストール

  1. Upload google-tag-manager.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Settings > General and set the ID from your Google Tag Manager account.

FAQ

Installation Instructions
  1. Upload google-tag-manager.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Settings > General and set the ID from your Google Tag Manager account.
Why isn’t the output displaying?

Two possibilities: First, you haven’t yet specified the ID in the admin panel, or second, your theme is missing a <?php wp_footer(); ?> call.

評価

2017年3月19日
Does what it says, inserts just the GTM code at the right time at the right location. Fell in love with the simplicity of this plugin, wonder why it does not show up in top when looking for GTM plugin for WP. Had to mess around with so many other plugins before I found it. All other related plugins are too complex, and slows down the site as well. This plugin does what its supposed to do and nothing else 🙂 "LESS is MORE" Kudos to the author for such a beautiful implementation. One suggestion though, if there would have been a single "do_action" with some custom action, before printing the GTM code, could make it easier to add some custom JS variables, if needed, to pass along to GTM, rather than printing them at wp_head with priority 9.
2017年2月10日
I'm trying to follow some youtube tutorials on GTM. They say to install the code manually, however, I use a child theme and I don't know how to insert the code via functions php file. There are other GTM plugins, but they have so many options and things I'm afraid they will interfere with the tutorials. From reading the description, it sounds like the only thing your plugin does is insert the GTM code in the correct places. It doesn't do anything else, am I correct?
2017年1月27日
I know there's been a lot of frustration with this plugin in the past, but after making the plugin author aware of Google's change to how the Tag Manager scripts should be loaded, he's updated the plugin and it works great. I've tested version 1.0.2 of the plugin by dynamically injecting a Google Analytics script through the Google Tag Manager (which didn't work properly in version 1.0.1) and it now works perfectly!
2016年10月22日
Although not updated it still works. Adding the Google Tag Manager ID in general settings loads the HTML script. The general advice is to load it right after <body> but this plugin loads it much further down. So probably you might need to check your theme if you want it loaded earlier.
2016年9月3日
Would give it 0/5 as the app does not behave as it should. Puts the code snippet in the wrong place and Google can't use it.
8件のレビューをすべて表示

貢献者と開発者

Google Tag Manager はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Google Tag Manager” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.0.2

  • Switch to the new split-format for Google Tag Manager javascript and iframe format.
  • Add support for Genesis and Theme Hook Alliance themes to echo the iframe sooner in the dom.

1.0.1

  • Change to static methods to avoid errors in some versions of php

1.0

  • Initial Public Release