Version Description
- Fixed: "json_encode() expects parameter 2 to be long, string given" on PHP 5.3 instances
- Fixed: Fatal PHP error in cart if you enabled taxes to be included in your cart
Download this release
Release Info
Developer | duracelltomi |
Plugin | DuracellTomi's Google Tag Manager for WordPress |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 1.3.1
- duracelltomi-google-tag-manager-for-wordpress.php +2 -2
- integration/woocommerce.php +1 -1
- public/frontend.php +1 -1
- readme.txt +10 -1
duracelltomi-google-tag-manager-for-wordpress.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Google Tag Manager for Wordpress
|
4 |
-
Version: 1.3
|
5 |
Plugin URI: https://duracelltomi.com/google-tag-manager-for-wordpress/
|
6 |
Description: The first Google Tag Manager plugin for WordPress with business goals in mind
|
7 |
Author: Thomas Geiger
|
@@ -10,7 +10,7 @@ Text Domain: duracelltomi-google-tag-manager
|
|
10 |
Domain Path: /languages
|
11 |
*/
|
12 |
|
13 |
-
define( 'GTM4WP_VERSION', '1.3' );
|
14 |
define( 'GTM4WP_PATH', plugin_dir_path( __FILE__ ) );
|
15 |
|
16 |
$gtp4wp_plugin_url = plugin_dir_url( __FILE__ );
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Google Tag Manager for Wordpress
|
4 |
+
Version: 1.3.1
|
5 |
Plugin URI: https://duracelltomi.com/google-tag-manager-for-wordpress/
|
6 |
Description: The first Google Tag Manager plugin for WordPress with business goals in mind
|
7 |
Author: Thomas Geiger
|
10 |
Domain Path: /languages
|
11 |
*/
|
12 |
|
13 |
+
define( 'GTM4WP_VERSION', '1.3.1' );
|
14 |
define( 'GTM4WP_PATH', plugin_dir_path( __FILE__ ) );
|
15 |
|
16 |
$gtp4wp_plugin_url = plugin_dir_url( __FILE__ );
|
integration/woocommerce.php
CHANGED
@@ -186,7 +186,7 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
|
|
186 |
if ( ! $woocommerce->cart->prices_include_tax ) {
|
187 |
$cart_total = $woocommerce->cart->cart_contents_total;
|
188 |
} else {
|
189 |
-
$cart_total = $woocommerce->cart->cart_contents_total + $
|
190 |
}
|
191 |
$dataLayer["ecomm_totalvalue"] = (float)$cart_total;
|
192 |
}
|
186 |
if ( ! $woocommerce->cart->prices_include_tax ) {
|
187 |
$cart_total = $woocommerce->cart->cart_contents_total;
|
188 |
} else {
|
189 |
+
$cart_total = $woocommerce->cart->cart_contents_total + $woocommerce->cart->tax_total;
|
190 |
}
|
191 |
$dataLayer["ecomm_totalvalue"] = (float)$cart_total;
|
192 |
}
|
public/frontend.php
CHANGED
@@ -539,7 +539,7 @@ function gtm4wp_wp_header_end() {
|
|
539 |
});';
|
540 |
}
|
541 |
|
542 |
-
if ( version_compare( PHP_VERSION, '5.
|
543 |
$dl_json_data = json_encode( $gtm4wp_datalayer_data, JSON_UNESCAPED_UNICODE );
|
544 |
} else {
|
545 |
$dl_json_data = json_encode( $gtm4wp_datalayer_data );
|
539 |
});';
|
540 |
}
|
541 |
|
542 |
+
if ( version_compare( PHP_VERSION, '5.4.0' ) >= 0 ) {
|
543 |
$dl_json_data = json_encode( $gtm4wp_datalayer_data, JSON_UNESCAPED_UNICODE );
|
544 |
} else {
|
545 |
$dl_json_data = json_encode( $gtm4wp_datalayer_data );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://duracelltomi.com/
|
|
4 |
Tags: google tag manager, tag manager, gtm, google, adwords, google adwords, adwords remarketing, remarketing, google analytics, analytics
|
5 |
Requires at least: 3.4.0
|
6 |
Tested up to: 4.5.2
|
7 |
-
Stable tag: 1.3
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
@@ -281,6 +281,11 @@ If you or your social plugin inserts the Facebook buttons using IFRAMEs (like So
|
|
281 |
|
282 |
== Changelog ==
|
283 |
|
|
|
|
|
|
|
|
|
|
|
284 |
= 1.3 =
|
285 |
|
286 |
Major changes to the Enhanced Ecommerce implementation of the WooCommerce integration!
|
@@ -432,6 +437,10 @@ Please report all bugs found in my plugin using the [contact form on my website]
|
|
432 |
|
433 |
== Upgrade Notice ==
|
434 |
|
|
|
|
|
|
|
|
|
435 |
= 1.3 =
|
436 |
|
437 |
Major changes and improvements in the enhanced ecommerce implementation for WooCommerce. If you are already using this beta feature, please read the changelog before upgrading!
|
4 |
Tags: google tag manager, tag manager, gtm, google, adwords, google adwords, adwords remarketing, remarketing, google analytics, analytics
|
5 |
Requires at least: 3.4.0
|
6 |
Tested up to: 4.5.2
|
7 |
+
Stable tag: 1.3.1
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
281 |
|
282 |
== Changelog ==
|
283 |
|
284 |
+
= 1.3.1 =
|
285 |
+
|
286 |
+
* Fixed: "json_encode() expects parameter 2 to be long, string given" on PHP 5.3 instances
|
287 |
+
* Fixed: Fatal PHP error in cart if you enabled taxes to be included in your cart
|
288 |
+
|
289 |
= 1.3 =
|
290 |
|
291 |
Major changes to the Enhanced Ecommerce implementation of the WooCommerce integration!
|
437 |
|
438 |
== Upgrade Notice ==
|
439 |
|
440 |
+
= 1.3.1 =
|
441 |
+
|
442 |
+
Quickfix release for 1.3: major changes and improvements in the enhanced ecommerce implementation for WooCommerce. If you are already using this beta feature, please read the changelog before upgrading!
|
443 |
+
|
444 |
= 1.3 =
|
445 |
|
446 |
Major changes and improvements in the enhanced ecommerce implementation for WooCommerce. If you are already using this beta feature, please read the changelog before upgrading!
|