Опис
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!
Встановлення
- Upload
google-tag-manager.phpto the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to
Settings>Generaland 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.
Відгуки
Учасники та розробники
“Google Tag Manager” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:
УчасникиПерекладіть “Google Tag Manager” на вашу мову.
Цікавитесь розробкою?
Перегляньте код, перегляньте сховище SVN або підпишіться на журнал розробки за допомогою RSS.
Журнал змін
1.0.4
- Security: escape option value on output in settings field.
- Standards: update
register_setting()to array form; usesanitize_text_fieldinstead ofesc_attron save. - Standards: replace
add_filterwithadd_actionforadmin_inithook. - Standards: rename class to
Google_Tag_Manager(UpperCamelCase). - Standards: extract HTML from translatable string in settings field.
- Performance: raise
wp_headpriority to 1 so GTM snippet loads as early as possible. - Housekeeping: update Plugin URI to https and current path.
1.0.3
- Add support for the new
wp_body_openhook in core.
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