DuracellTomi's Google Tag Manager for WordPress - Version 0.9.1

Version Description

  • Fixed: PHP error message: missing get_shipping function using WooCommerce 2.3.x
Download this release

Release Info

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

Code changes from version 0.9 to 0.9.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.9
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.9' );
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.9.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.9.1' );
12
  define( 'GTM4WP_PATH', plugin_dir_path( __FILE__ ) );
13
  define( 'GTM4WP_TEXTDOMAIN', 'gtm4wp-lang' );
14
 
integration/woocommerce.php CHANGED
@@ -158,7 +158,7 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
158
  }
159
 
160
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
161
- $dataLayer["ecommerce"] = "-~-{'purchase': {'actionField': {'id': '" . $order->get_order_number() . "', 'affiliation': '" . get_bloginfo( 'name' ) . "', 'revenue': '" . $order->get_total() . "', 'tax': '" . $order->get_total_tax() . "', 'shipping': '" . $order->get_shipping() . "'}, ";
162
  }
163
 
164
  $_products = array();
158
  }
159
 
160
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
161
+ $dataLayer["ecommerce"] = "-~-{'purchase': {'actionField': {'id': '" . $order->get_order_number() . "', 'affiliation': '" . get_bloginfo( 'name' ) . "', 'revenue': '" . $order->get_total() . "', 'tax': '" . $order->get_total_tax() . "', 'shipping': '" . $order->get_total_shipping() . "'}, ";
162
  }
163
 
164
  $_products = array();
public/frontend.php CHANGED
@@ -449,7 +449,7 @@ function gtm4wp_wp_footer() {
449
  function gtm4wp_wp_body_open() {
450
  global $gtm4wp_options;
451
 
452
- if ( GTM4WP_PLACEMENT_CUSTOM == $gtm4wp_options[ GTM4WP_OPTION_GTM_PLACEMENT ] ) {
453
  gtm4wp_the_gtm_tag();
454
  }
455
  }
449
  function gtm4wp_wp_body_open() {
450
  global $gtm4wp_options;
451
 
452
+ if ( GTM4WP_PLACEMENT_BODYOPEN == $gtm4wp_options[ GTM4WP_OPTION_GTM_PLACEMENT ] ) {
453
  gtm4wp_the_gtm_tag();
454
  }
455
  }
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.1
7
- Stable tag: 0.9
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
@@ -246,6 +246,10 @@ If you or your social plugin inserts the Facebook buttons using IFRAME-s (like S
246
 
247
  == Changelog ==
248
 
 
 
 
 
249
  = 0.9 =
250
 
251
  * Added: visitorId dataLayer variable with the ID of the currently logged in user to track userID in Google Analytics
@@ -332,6 +336,10 @@ If you or your social plugin inserts the Facebook buttons using IFRAME-s (like S
332
 
333
  == Upgrade Notice ==
334
 
 
 
 
 
335
  = 0.9 =
336
 
337
  Many bug fixes, important fixes for WooCommerce users
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.1
7
+ Stable tag: 0.9.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
246
 
247
  == Changelog ==
248
 
249
+ = 0.9.1 =
250
+
251
+ * Fixed: PHP error message: missing get_shipping function using WooCommerce 2.3.x
252
+
253
  = 0.9 =
254
 
255
  * Added: visitorId dataLayer variable with the ID of the currently logged in user to track userID in Google Analytics
336
 
337
  == Upgrade Notice ==
338
 
339
+ = 0.9.1 =
340
+
341
+ Bugfix release for WooCommerce users with ecommerce tracking enabled
342
+
343
  = 0.9 =
344
 
345
  Many bug fixes, important fixes for WooCommerce users