Version Description
- Add support for the new
wp_body_openhook in core.
Download this release
Release Info
| Developer | georgestephanis |
| Plugin | |
| Version | 1.0.3 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.2 to 1.0.3
- google-tag-manager.php +3 -2
- readme.txt +6 -3
google-tag-manager.php
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
/*
|
| 3 |
Plugin Name: Google Tag Manager
|
| 4 |
Plugin URI: http://wordpress.org/extend/plugins/google-tag-manager/
|
| 5 |
-
Description: This is an implementation of the
|
| 6 |
-
Version: 1.0.
|
| 7 |
Author: George Stephanis
|
| 8 |
Author URI: http://stephanis.info
|
| 9 |
License: GPLv2 or later
|
|
@@ -16,6 +16,7 @@ class google_tag_manager {
|
|
| 16 |
public static function go() {
|
| 17 |
add_filter( 'admin_init', array( __CLASS__, 'register_fields' ) );
|
| 18 |
add_action( 'wp_head', array( __CLASS__, 'print_tag' ) );
|
|
|
|
| 19 |
add_action( 'genesis_before', array( __CLASS__, 'print_noscript_tag' ) ); // Genesis
|
| 20 |
add_action( 'tha_body_top', array( __CLASS__, 'print_noscript_tag' ) ); // Theme Hook Alliance
|
| 21 |
add_action( 'body_top', array( __CLASS__, 'print_noscript_tag' ) ); // THA Unprefixed
|
| 2 |
/*
|
| 3 |
Plugin Name: Google Tag Manager
|
| 4 |
Plugin URI: http://wordpress.org/extend/plugins/google-tag-manager/
|
| 5 |
+
Description: This is an implementation of the Tag Management system from Google. It adds a field to the existing General Settings page for the ID, and if specified, outputs the tag management javascript in the page footer.
|
| 6 |
+
Version: 1.0.3
|
| 7 |
Author: George Stephanis
|
| 8 |
Author URI: http://stephanis.info
|
| 9 |
License: GPLv2 or later
|
| 16 |
public static function go() {
|
| 17 |
add_filter( 'admin_init', array( __CLASS__, 'register_fields' ) );
|
| 18 |
add_action( 'wp_head', array( __CLASS__, 'print_tag' ) );
|
| 19 |
+
add_action( 'wp_body_open', array( __CLASS__, 'print_noscript_tag' ) ); // Core's new implementation! https://make.wordpress.org/themes/2019/03/29/addition-of-new-wp_body_open-hook/
|
| 20 |
add_action( 'genesis_before', array( __CLASS__, 'print_noscript_tag' ) ); // Genesis
|
| 21 |
add_action( 'tha_body_top', array( __CLASS__, 'print_noscript_tag' ) ); // Theme Hook Alliance
|
| 22 |
add_action( 'body_top', array( __CLASS__, 'print_noscript_tag' ) ); // THA Unprefixed
|
readme.txt
CHANGED
|
@@ -3,12 +3,12 @@ Contributors: georgestephanis
|
|
| 3 |
Donate link: http://www.charitywater.org/donate/
|
| 4 |
Tags: google, tag manager, tag management, analytics, theme hook alliance, genesis
|
| 5 |
Requires at least: 2.7
|
| 6 |
-
Tested up to: 4.
|
| 7 |
-
Stable tag: 1.0.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 11 |
-
The Google Tag Manager plugin adds a field to the existing General Settings page for the ID and outputs the javascript
|
| 12 |
|
| 13 |
== Description ==
|
| 14 |
|
|
@@ -32,6 +32,9 @@ Two possibilities: First, you haven't yet specified the ID in the admin panel, o
|
|
| 32 |
|
| 33 |
== Changelog ==
|
| 34 |
|
|
|
|
|
|
|
|
|
|
| 35 |
= 1.0.2 =
|
| 36 |
* Switch to the new split-format for Google Tag Manager javascript and iframe format.
|
| 37 |
* Add support for Genesis and Theme Hook Alliance themes to echo the iframe sooner in the dom.
|
| 3 |
Donate link: http://www.charitywater.org/donate/
|
| 4 |
Tags: google, tag manager, tag management, analytics, theme hook alliance, genesis
|
| 5 |
Requires at least: 2.7
|
| 6 |
+
Tested up to: 5.4.1
|
| 7 |
+
Stable tag: 1.0.3
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 11 |
+
The Google Tag Manager plugin adds a field to the existing General Settings page for the ID and outputs the javascript to make it work.
|
| 12 |
|
| 13 |
== Description ==
|
| 14 |
|
| 32 |
|
| 33 |
== Changelog ==
|
| 34 |
|
| 35 |
+
= 1.0.3 =
|
| 36 |
+
* Add support for the new `wp_body_open` hook in core.
|
| 37 |
+
|
| 38 |
= 1.0.2 =
|
| 39 |
* Switch to the new split-format for Google Tag Manager javascript and iframe format.
|
| 40 |
* Add support for Genesis and Theme Hook Alliance themes to echo the iframe sooner in the dom.
|
