DuracellTomi's Google Tag Manager for WordPress - Version 1.16.1

Version Description

  • Fixed: GTM ID not properly set in noscript tag (probably fixes some 403 errors with firewalls too)
Download this release

Release Info

Developer duracelltomi
Plugin Icon 128x128 DuracellTomi's Google Tag Manager for WordPress
Version 1.16.1
Comparing to
See all releases

Code changes from version 1.16 to 1.16.1

duracelltomi-google-tag-manager-for-wordpress.php CHANGED
@@ -11,7 +11,7 @@
11
  * Plugin Name: GTM4WP
12
  * Plugin URI: https://gtm4wp.com/
13
  * Description: The first Google Tag Manager plugin for WordPress with business goals in mind
14
- * Version: 1.16
15
  * Requires at least: 3.4.0
16
  * Requires PHP: 5.6
17
  * Author: Thomas Geiger
@@ -25,7 +25,7 @@
25
  * WC tested up to: 6.6
26
  */
27
 
28
- define( 'GTM4WP_VERSION', '1.16' );
29
  define( 'GTM4WP_PATH', plugin_dir_path( __FILE__ ) );
30
 
31
  global $gtp4wp_plugin_url, $gtp4wp_plugin_basename;
11
  * Plugin Name: GTM4WP
12
  * Plugin URI: https://gtm4wp.com/
13
  * Description: The first Google Tag Manager plugin for WordPress with business goals in mind
14
+ * Version: 1.16.1
15
  * Requires at least: 3.4.0
16
  * Requires PHP: 5.6
17
  * Author: Thomas Geiger
25
  * WC tested up to: 6.6
26
  */
27
 
28
+ define( 'GTM4WP_VERSION', '1.16.1' );
29
  define( 'GTM4WP_PATH', plugin_dir_path( __FILE__ ) );
30
 
31
  global $gtp4wp_plugin_url, $gtp4wp_plugin_basename;
public/frontend.php CHANGED
@@ -689,11 +689,11 @@ function gtm4wp_get_the_gtm_tag() {
689
  }
690
 
691
  foreach ( $_gtm_codes as $one_gtm_id ) {
692
- $gtm_id = preg_match( '/^GTM-[A-Z0-9]+$/', $one_gtm_id );
693
-
694
- $_gtm_tag .= '
695
- <noscript><iframe src="https://' . $_gtm_domain_name . '/ns.html?id=' . $gtm_id . $_gtm_env . '"
696
- height="0" width="0" style="display:none;visibility:hidden" aria-hidden="true"></iframe></noscript>';
697
  }
698
 
699
  $_gtm_tag .= '
689
  }
690
 
691
  foreach ( $_gtm_codes as $one_gtm_id ) {
692
+ if ( preg_match( '/^GTM-[A-Z0-9]+$/', $one_gtm_id ) ) {
693
+ $_gtm_tag .= '
694
+ <noscript><iframe src="https://' . $_gtm_domain_name . '/ns.html?id=' . $one_gtm_id . $_gtm_env . '"
695
+ height="0" width="0" style="display:none;visibility:hidden" aria-hidden="true"></iframe></noscript>';
696
+ }
697
  }
698
 
699
  $_gtm_tag .= '
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: google tag manager, tag manager, gtm, google, adwords, google adwords, goo
5
  Requires at least: 3.4.0
6
  Requires PHP: 5.6
7
  Tested up to: 6.0.0
8
- Stable tag: 1.16
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl.html
11
 
@@ -235,6 +235,10 @@ https://gtm4wp.com/how-to-articles/how-to-exclude-admin-users-from-being-tracked
235
 
236
  == Changelog ==
237
 
 
 
 
 
238
  = 1.16 =
239
 
240
  This plugin version does not add or update any functionality.
@@ -807,6 +811,10 @@ Please report all bugs found in my plugin using the [contact form on my website]
807
 
808
  == Upgrade Notice ==
809
 
 
 
 
 
810
  = 1.16 =
811
 
812
  Maintenance release with lots of code updates without adding functionality.
5
  Requires at least: 3.4.0
6
  Requires PHP: 5.6
7
  Tested up to: 6.0.0
8
+ Stable tag: 1.16.1
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl.html
11
 
235
 
236
  == Changelog ==
237
 
238
+ = 1.16.1 =
239
+
240
+ * Fixed: GTM ID not properly set in noscript tag (probably fixes some 403 errors with firewalls too)
241
+
242
  = 1.16 =
243
 
244
  This plugin version does not add or update any functionality.
811
 
812
  == Upgrade Notice ==
813
 
814
+ = 1.16.1 =
815
+
816
+ Bugfix release
817
+
818
  = 1.16 =
819
 
820
  Maintenance release with lots of code updates without adding functionality.