Version Description
Fixed: PHP warning message on WooCommerce cart page Fixed: Better compatibility with WooCommerce 2.6.x :-)
Download this release
Release Info
Developer | duracelltomi |
Plugin | DuracellTomi's Google Tag Manager for WordPress |
Version | 1.6.1 |
Comparing to | |
See all releases |
Code changes from version 1.6 to 1.6.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.6
|
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.6' );
|
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.6.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.6.1' );
|
14 |
define( 'GTM4WP_PATH', plugin_dir_path( __FILE__ ) );
|
15 |
|
16 |
$gtp4wp_plugin_url = plugin_dir_url( __FILE__ );
|
integration/woocommerce.php
CHANGED
@@ -248,7 +248,11 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
|
|
248 |
|
249 |
if ( $order->get_items() ) {
|
250 |
foreach ( $order->get_items() as $item ) {
|
251 |
-
|
|
|
|
|
|
|
|
|
252 |
|
253 |
$product_id = $product->get_id();
|
254 |
$_product_cats = get_the_terms($product->id, 'product_cat');
|
@@ -814,7 +818,7 @@ function gtm4wp_woocommerce_add_prod_data( $add_to_cart_link ) {
|
|
814 |
}
|
815 |
|
816 |
$GLOBALS["gtm4wp_cart_item_proddata"] = '';
|
817 |
-
function gtm4wp_woocommerce_cart_item_product_filter( $product, $cart_item, $cart_id ) {
|
818 |
global $gtm4wp_options;
|
819 |
|
820 |
$product_id = $product->get_id();
|
248 |
|
249 |
if ( $order->get_items() ) {
|
250 |
foreach ( $order->get_items() as $item ) {
|
251 |
+
if ( version_compare( $woocommerce->version, "3.0", ">=" ) ) {
|
252 |
+
$product = $item->get_product();
|
253 |
+
} else {
|
254 |
+
$product = $order->get_product_from_item( $item );
|
255 |
+
}
|
256 |
|
257 |
$product_id = $product->get_id();
|
258 |
$_product_cats = get_the_terms($product->id, 'product_cat');
|
818 |
}
|
819 |
|
820 |
$GLOBALS["gtm4wp_cart_item_proddata"] = '';
|
821 |
+
function gtm4wp_woocommerce_cart_item_product_filter( $product, $cart_item="", $cart_id="" ) {
|
822 |
global $gtm4wp_options;
|
823 |
|
824 |
$product_id = $product->get_id();
|
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, facebook ads, facebook remarketing, facebook pixel
|
5 |
Requires at least: 3.4.0
|
6 |
Tested up to: 4.7.3
|
7 |
-
Stable tag: 1.6
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
@@ -271,6 +271,11 @@ If you or your social plugin inserts the Facebook buttons using IFRAMEs (like So
|
|
271 |
|
272 |
== Changelog ==
|
273 |
|
|
|
|
|
|
|
|
|
|
|
274 |
= 1.6 =
|
275 |
|
276 |
* Fixed: do not block product list item clicks if ad blocker is enabled
|
@@ -478,6 +483,10 @@ Please report all bugs found in my plugin using the [contact form on my website]
|
|
478 |
|
479 |
== Upgrade Notice ==
|
480 |
|
|
|
|
|
|
|
|
|
481 |
= 1.6 =
|
482 |
|
483 |
If you are using WooCommerce and enhanced ecommerce, please add gtm4wp.changeDetailViewEEC to the ecommerce helper trigger
|
4 |
Tags: google tag manager, tag manager, gtm, google, adwords, google adwords, adwords remarketing, remarketing, google analytics, analytics, facebook ads, facebook remarketing, facebook pixel
|
5 |
Requires at least: 3.4.0
|
6 |
Tested up to: 4.7.3
|
7 |
+
Stable tag: 1.6.1
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
271 |
|
272 |
== Changelog ==
|
273 |
|
274 |
+
= 1.6.1 =
|
275 |
+
|
276 |
+
Fixed: PHP warning message on WooCommerce cart page
|
277 |
+
Fixed: Better compatibility with WooCommerce 2.6.x :-)
|
278 |
+
|
279 |
= 1.6 =
|
280 |
|
281 |
* Fixed: do not block product list item clicks if ad blocker is enabled
|
483 |
|
484 |
== Upgrade Notice ==
|
485 |
|
486 |
+
= 1.6.1 =
|
487 |
+
|
488 |
+
Bugfix release.
|
489 |
+
|
490 |
= 1.6 =
|
491 |
|
492 |
If you are using WooCommerce and enhanced ecommerce, please add gtm4wp.changeDetailViewEEC to the ecommerce helper trigger
|