Version Description
- Fixed: PHP error in enhanced ecommerce implementation when using layered nav widget
Download this release
Release Info
Developer | duracelltomi |
Plugin | DuracellTomi's Google Tag Manager for WordPress |
Version | 0.8.1 |
Comparing to | |
See all releases |
Code changes from version 0.8 to 0.8.1
duracelltomi-google-tag-manager-for-wordpress.php
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Google Tag Manager for Wordpress
|
4 |
-
Version: 0.8
|
5 |
Plugin URI: http://www.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
|
8 |
Author URI: http://www.duracelltomi.com/
|
9 |
*/
|
10 |
|
11 |
-
define( 'GTM4WP_VERSION', '0.8' );
|
12 |
define( 'GTM4WP_PATH', plugin_dir_path( __FILE__ ) );
|
13 |
define( 'GTM4WP_TEXTDOMAIN', 'gtm4wp-lang' );
|
14 |
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Google Tag Manager for Wordpress
|
4 |
+
Version: 0.8.1
|
5 |
Plugin URI: http://www.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
|
8 |
Author URI: http://www.duracelltomi.com/
|
9 |
*/
|
10 |
|
11 |
+
define( 'GTM4WP_VERSION', '0.8.1' );
|
12 |
define( 'GTM4WP_PATH', plugin_dir_path( __FILE__ ) );
|
13 |
define( 'GTM4WP_TEXTDOMAIN', 'gtm4wp-lang' );
|
14 |
|
integration/woocommerce.php
CHANGED
@@ -19,8 +19,10 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
|
|
19 |
$sumprice = 0;
|
20 |
$product_ids = array();
|
21 |
$product_impressions = array();
|
22 |
-
|
23 |
-
|
|
|
|
|
24 |
$product = get_product( $oneproductid );
|
25 |
|
26 |
$product_price = $product->get_price();
|
@@ -35,6 +37,11 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
|
|
35 |
$product_ids[] = "'" . $oneproductid . "'";
|
36 |
|
37 |
$product_impressions[] = "{'name': '" . str_replace( "'", "\\'", $product->get_title() ) . "', 'id': '" . $oneproductid . "', 'price': '" . $product_price . "', 'category': '" . str_replace( "'", "\\'", $product_cat ) . "', 'position': " . ($i+1) . " }";
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
|
40 |
if ( $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCREMARKETING ] ) {
|
19 |
$sumprice = 0;
|
20 |
$product_ids = array();
|
21 |
$product_impressions = array();
|
22 |
+
$_temp_product_id_list = $woocommerce->query->filtered_product_ids;
|
23 |
+
|
24 |
+
$i = ($first-1);
|
25 |
+
foreach( $_temp_product_id_list as $itemid => $oneproductid ) {
|
26 |
$product = get_product( $oneproductid );
|
27 |
|
28 |
$product_price = $product->get_price();
|
37 |
$product_ids[] = "'" . $oneproductid . "'";
|
38 |
|
39 |
$product_impressions[] = "{'name': '" . str_replace( "'", "\\'", $product->get_title() ) . "', 'id': '" . $oneproductid . "', 'price': '" . $product_price . "', 'category': '" . str_replace( "'", "\\'", $product_cat ) . "', 'position': " . ($i+1) . " }";
|
40 |
+
|
41 |
+
$i++;
|
42 |
+
if ( $i>$last ) {
|
43 |
+
break;
|
44 |
+
}
|
45 |
}
|
46 |
|
47 |
if ( $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCREMARKETING ] ) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://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.0.1
|
6 |
Tested up to: 4.0
|
7 |
-
Stable tag: 0.8
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
@@ -244,6 +244,10 @@ If you or your social plugin inserts the Facebook buttons using IFRAME-s (like S
|
|
244 |
|
245 |
== Changelog ==
|
246 |
|
|
|
|
|
|
|
|
|
247 |
= 0.8 =
|
248 |
|
249 |
* Updated: Added subtabs to the admin UI to make room for new features :-)
|
@@ -310,6 +314,10 @@ If you or your social plugin inserts the Facebook buttons using IFRAME-s (like S
|
|
310 |
|
311 |
== Upgrade Notice ==
|
312 |
|
|
|
|
|
|
|
|
|
313 |
= 0.8 =
|
314 |
|
315 |
This version instroduces Enhanced E-commerce implementation for WooCommerce. Please note that this
|
4 |
Tags: google tag manager, tag manager, gtm, google, adwords, google adwords, adwords remarketing, remarketing, google analytics, analytics
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 0.8.1
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
244 |
|
245 |
== Changelog ==
|
246 |
|
247 |
+
= 0.8.1 =
|
248 |
+
|
249 |
+
* Fixed: PHP error in enhanced ecommerce implementation when using layered nav widget
|
250 |
+
|
251 |
= 0.8 =
|
252 |
|
253 |
* Updated: Added subtabs to the admin UI to make room for new features :-)
|
314 |
|
315 |
== Upgrade Notice ==
|
316 |
|
317 |
+
= 0.8.1 =
|
318 |
+
|
319 |
+
Bugfix release for WooCommerce users with Enhanced Ecommerce enabled
|
320 |
+
|
321 |
= 0.8 =
|
322 |
|
323 |
This version instroduces Enhanced E-commerce implementation for WooCommerce. Please note that this
|