DuracellTomi's Google Tag Manager for WordPress - Version 1.3

Version Description

Major changes to the Enhanced Ecommerce implementation of the WooCommerce integration!

  • Fixed: proper tracking of list positions
  • Fixed: opening product detail page in a new window/tab when user pressed the CTRL key
  • Fixed: ecomm_totalvalue included the total price of the cart without taxes
  • Fixed: ecomm_totalvalue does not take into account the quantity of ordered products on the order received page
  • Fixed: php error message on product lists when AdWords dynamic remarketing was enabled on WooCommerce 2.6
  • Fixed: added data-cfasync="false" to the GTM container code for better compatibility with CloudFlare
  • Added: introducing tracking of list names (general product list, recent products list, featured products list, etc.)
    • Some list names (like cross-sells) will be shown as 'General Product List'. A proposed change in WooCommerce 2.6 will solve that issue
  • Added: tracking product lists in widgets
  • Added: tracking checkout options (payment and shipment)
  • Updated: better add-to-cart / remove-from-cart management in mini cart and while updating cart content
  • Updated: added currency code to each enhanced ecommerce call so that currency reporting is OK for multi currency sites
  • Updated: replaced usage of get_currentuser() to keep compatibility with WordPress 4.5
Download this release

Release Info

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

Code changes from version 1.2 to 1.3

admin/admin.php CHANGED
@@ -27,7 +27,8 @@ define( 'GTM4WP_PHASE_DEPRECATED', 'gtm4wp-phase-deprecated' );
27
  $GLOBALS["gtm4wp_def_user_notices_dismisses"] = array(
28
  "enter-gtm-code" => false,
29
  "wc-ga-plugin-warning" => false,
30
- "wc-gayoast-plugin-warning" => false
 
31
  );
32
 
33
  $GLOBALS["gtm4wp_includefieldtexts"] = array(
@@ -66,6 +67,11 @@ $GLOBALS["gtm4wp_includefieldtexts"] = array(
66
  "description" => __( "Check this option to include the count of the posts currently shown on the page and the total number of posts in the category/tag/any taxonomy.", 'duracelltomi-google-tag-manager' ),
67
  "phase" => GTM4WP_PHASE_STABLE
68
  ),
 
 
 
 
 
69
  GTM4WP_OPTION_INCLUDE_SEARCHDATA => array(
70
  "label" => __( "Search data", 'duracelltomi-google-tag-manager' ),
71
  "description" => __( "Check this option to include the search term, referring page URL and number of results on the search page.", 'duracelltomi-google-tag-manager' ),
@@ -405,7 +411,7 @@ function gtm4wp_admin_output_section( $args ) {
405
 
406
  switch( $args["id"] ) {
407
  case GTM4WP_ADMIN_GROUP_GENERAL: {
408
- _e( 'This plugin is intended to be used by IT guys and marketing staff. Please be sure you read the <a href="https://developers.google.com/tag-manager/" target="_blank">Google Tag Manager Help Center</a> before you start using this plugin.<br /><br />', 'duracelltomi-google-tag-manager' );
409
 
410
  break;
411
  }
@@ -1017,7 +1023,7 @@ function gtm4wp_show_warning() {
1017
  echo '<div id="message" class="error"><p><strong>' . sprintf( __( 'To start using Google Tag Manager for WordPress, please <a href="%s">enter your GTM ID</a>', 'duracelltomi-google-tag-manager' ), "options-general.php?page=" . GTM4WP_ADMINSLUG ) . '</strong> | <a href="?enter-gtm-code" class="gtm4wp-dismiss-notice">' . __( 'Dismiss', 'duracelltomi-google-tag-manager' ) . '</a></p></div>';
1018
  }
1019
 
1020
- if ( ( false === $gtm4wp_user_notices_dismisses["wc-ga-plugin-warning"] ) || ( false === $gtm4wp_user_notices_dismisses["wc-gayoast-plugin-warning"] ) ) {
1021
  $is_wc_active = $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKCLASSICEC ] ||
1022
  $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ||
1023
  $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCREMARKETING ];
@@ -1038,6 +1044,10 @@ function gtm4wp_show_warning() {
1038
  if ( ( false === $gtm4wp_user_notices_dismisses["wc-gayoast-plugin-warning"] ) && $is_wc_active && is_plugin_active( "google-analytics-for-wordpress/googleanalytics.php" ) ) {
1039
  echo '<div id="message" class="error"><p><strong>' . __( 'Notice: you should deactivate the plugin "Google Analytics for WordPress by Yoast" if you are using Google Analytics tags inside Google Tag Manager!', 'duracelltomi-google-tag-manager' ) . '</strong> | <a href="?wc-gayoast-plugin-warning" class="gtm4wp-dismiss-notice">' . __( 'Dismiss', 'duracelltomi-google-tag-manager' ) . '</a></p></div>';
1040
  }
 
 
 
 
1041
  }
1042
  }
1043
 
27
  $GLOBALS["gtm4wp_def_user_notices_dismisses"] = array(
28
  "enter-gtm-code" => false,
29
  "wc-ga-plugin-warning" => false,
30
+ "wc-gayoast-plugin-warning" => false,
31
+ "wc-1-3-upgrade-info" => false
32
  );
33
 
34
  $GLOBALS["gtm4wp_includefieldtexts"] = array(
67
  "description" => __( "Check this option to include the count of the posts currently shown on the page and the total number of posts in the category/tag/any taxonomy.", 'duracelltomi-google-tag-manager' ),
68
  "phase" => GTM4WP_PHASE_STABLE
69
  ),
70
+ GTM4WP_OPTION_INCLUDE_POSTID => array(
71
+ "label" => __( "Post ID", 'duracelltomi-google-tag-manager' ),
72
+ "description" => __( "Check this option to include the post id.", 'duracelltomi-google-tag-manager' ),
73
+ "phase" => GTM4WP_PHASE_STABLE
74
+ ),
75
  GTM4WP_OPTION_INCLUDE_SEARCHDATA => array(
76
  "label" => __( "Search data", 'duracelltomi-google-tag-manager' ),
77
  "description" => __( "Check this option to include the search term, referring page URL and number of results on the search page.", 'duracelltomi-google-tag-manager' ),
411
 
412
  switch( $args["id"] ) {
413
  case GTM4WP_ADMIN_GROUP_GENERAL: {
414
+ _e( 'This plugin is intended to be used by IT girls&guys and marketing staff. Please be sure you read the <a href="https://developers.google.com/tag-manager/" target="_blank">Google Tag Manager Help Center</a> before you start using this plugin.<br /><br />', 'duracelltomi-google-tag-manager' );
415
 
416
  break;
417
  }
1023
  echo '<div id="message" class="error"><p><strong>' . sprintf( __( 'To start using Google Tag Manager for WordPress, please <a href="%s">enter your GTM ID</a>', 'duracelltomi-google-tag-manager' ), "options-general.php?page=" . GTM4WP_ADMINSLUG ) . '</strong> | <a href="?enter-gtm-code" class="gtm4wp-dismiss-notice">' . __( 'Dismiss', 'duracelltomi-google-tag-manager' ) . '</a></p></div>';
1024
  }
1025
 
1026
+ if ( ( false === $gtm4wp_user_notices_dismisses["wc-ga-plugin-warning"] ) || ( false === $gtm4wp_user_notices_dismisses["wc-gayoast-plugin-warning"] ) || ( false === $gtm4wp_user_notices_dismisses["wc-1-3-upgrade-info"] ) ) {
1027
  $is_wc_active = $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKCLASSICEC ] ||
1028
  $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ||
1029
  $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCREMARKETING ];
1044
  if ( ( false === $gtm4wp_user_notices_dismisses["wc-gayoast-plugin-warning"] ) && $is_wc_active && is_plugin_active( "google-analytics-for-wordpress/googleanalytics.php" ) ) {
1045
  echo '<div id="message" class="error"><p><strong>' . __( 'Notice: you should deactivate the plugin "Google Analytics for WordPress by Yoast" if you are using Google Analytics tags inside Google Tag Manager!', 'duracelltomi-google-tag-manager' ) . '</strong> | <a href="?wc-gayoast-plugin-warning" class="gtm4wp-dismiss-notice">' . __( 'Dismiss', 'duracelltomi-google-tag-manager' ) . '</a></p></div>';
1046
  }
1047
+
1048
+ if ( $is_wc_active && ( false === $gtm4wp_user_notices_dismisses["wc-1-3-upgrade-info"] ) ) {
1049
+ echo '<div id="message" class="error"><p><strong>' . sprintf( __( 'Warning: Using WooCommerce and upgrading to v1.3 of the GTM plugin? <a href="%s" target="_blank">Check this important blog post.</a>', 'duracelltomi-google-tag-manager' ), "https://duracelltomi.com/google-tag-manager-for-wordpress/how-to-articles/upgrading-woocommerce-settings-for-v1-3" ) . '</strong> | <a href="?wc-1-3-upgrade-info" class="gtm4wp-dismiss-notice">' . __( 'Dismiss', 'duracelltomi-google-tag-manager' ) . '</a></p></div>';
1050
+ }
1051
  }
1052
  }
1053
 
common/readoptions.php CHANGED
@@ -15,6 +15,7 @@ define( 'GTM4WP_OPTION_INCLUDE_AUTHOR', 'include-author' );
15
  define( 'GTM4WP_OPTION_INCLUDE_POSTDATE', 'include-postdate' );
16
  define( 'GTM4WP_OPTION_INCLUDE_POSTTITLE', 'include-posttitle' );
17
  define( 'GTM4WP_OPTION_INCLUDE_POSTCOUNT', 'include-postcount' );
 
18
  define( 'GTM4WP_OPTION_INCLUDE_SEARCHDATA', 'include-searchdata' );
19
  define( 'GTM4WP_OPTION_INCLUDE_BROWSERDATA', 'include-browserdata' );
20
  define( 'GTM4WP_OPTION_INCLUDE_OSDATA', 'include-osdata' );
@@ -104,6 +105,7 @@ $gtm4wp_defaultoptions = array(
104
  GTM4WP_OPTION_INCLUDE_POSTDATE => false,
105
  GTM4WP_OPTION_INCLUDE_POSTTITLE => false,
106
  GTM4WP_OPTION_INCLUDE_POSTCOUNT => false,
 
107
  GTM4WP_OPTION_INCLUDE_SEARCHDATA => false,
108
  GTM4WP_OPTION_INCLUDE_BROWSERDATA => false,
109
  GTM4WP_OPTION_INCLUDE_OSDATA => false,
15
  define( 'GTM4WP_OPTION_INCLUDE_POSTDATE', 'include-postdate' );
16
  define( 'GTM4WP_OPTION_INCLUDE_POSTTITLE', 'include-posttitle' );
17
  define( 'GTM4WP_OPTION_INCLUDE_POSTCOUNT', 'include-postcount' );
18
+ define( 'GTM4WP_OPTION_INCLUDE_POSTID', 'include-postid' );
19
  define( 'GTM4WP_OPTION_INCLUDE_SEARCHDATA', 'include-searchdata' );
20
  define( 'GTM4WP_OPTION_INCLUDE_BROWSERDATA', 'include-browserdata' );
21
  define( 'GTM4WP_OPTION_INCLUDE_OSDATA', 'include-osdata' );
105
  GTM4WP_OPTION_INCLUDE_POSTDATE => false,
106
  GTM4WP_OPTION_INCLUDE_POSTTITLE => false,
107
  GTM4WP_OPTION_INCLUDE_POSTCOUNT => false,
108
+ GTM4WP_OPTION_INCLUDE_POSTID => false,
109
  GTM4WP_OPTION_INCLUDE_SEARCHDATA => false,
110
  GTM4WP_OPTION_INCLUDE_BROWSERDATA => false,
111
  GTM4WP_OPTION_INCLUDE_OSDATA => false,
duracelltomi-google-tag-manager-for-wordpress.php CHANGED
@@ -1,14 +1,16 @@
1
  <?php
2
  /*
3
  Plugin Name: Google Tag Manager for Wordpress
4
- Version: 1.2
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
8
  Author URI: https://duracelltomi.com/
 
 
9
  */
10
 
11
- define( 'GTM4WP_VERSION', '1.2' );
12
  define( 'GTM4WP_PATH', plugin_dir_path( __FILE__ ) );
13
 
14
  $gtp4wp_plugin_url = plugin_dir_url( __FILE__ );
@@ -16,7 +18,7 @@ $gtp4wp_plugin_basename = plugin_basename( __FILE__ );
16
  require_once( GTM4WP_PATH."/common/readoptions.php" );
17
 
18
  function gtm4wp_init() {
19
- load_plugin_textdomain( 'duracelltomi-google-tag-manager', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
20
  if ( is_admin() ) {
21
  require_once( GTM4WP_PATH."/admin/admin.php" );
22
  } else {
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
8
  Author URI: https://duracelltomi.com/
9
+ 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__ );
18
  require_once( GTM4WP_PATH."/common/readoptions.php" );
19
 
20
  function gtm4wp_init() {
21
+ load_plugin_textdomain( 'duracelltomi-google-tag-manager', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
22
  if ( is_admin() ) {
23
  require_once( GTM4WP_PATH."/admin/admin.php" );
24
  } else {
integration/woocommerce.php CHANGED
@@ -1,5 +1,6 @@
1
  <?php
2
  $gtm4wp_product_counter = 0;
 
3
 
4
  function gtm4wp_woocommerce_addjs( $js ) {
5
  global $woocommerce;
@@ -19,6 +20,7 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
19
  global $woocommerce, $gtm4wp_options, $wp_query, $gtm4wp_datalayer_name, $gtm4wp_product_counter;
20
 
21
  if ( is_product_category() || is_product_tag() || is_front_page() || is_shop() ) {
 
22
  if ( ( $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCREMARKETING ] ) || ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) ) {
23
  if ( count( $woocommerce->query->filtered_product_ids ) > 0 ) {
24
  // The following 5 lines was being borrowed from WC source
@@ -28,11 +30,8 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
28
  $first = ( $per_page * $paged ) - $per_page + 1;
29
  $last = min( $total, $wp_query->get( 'posts_per_page' ) * $paged );
30
 
31
- $gtm4wp_product_counter = $first;
32
-
33
  $sumprice = 0;
34
  $product_ids = array();
35
- $product_impressions = array();
36
  $_temp_product_id_list = $woocommerce->query->filtered_product_ids;
37
 
38
  $i = ($first-1);
@@ -43,13 +42,6 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
43
  }
44
 
45
  $product_price = $product->get_price();
46
- $_product_cats = get_the_terms($product->id, 'product_cat');
47
- if ( ( is_array($_product_cats) ) && ( count( $_product_cats ) > 0 ) ) {
48
- $product_cat = array_pop( $_product_cats );
49
- $product_cat = $product_cat->name;
50
- } else {
51
- $product_cat = "";
52
- }
53
  $sumprice += $product_price;
54
 
55
  $remarketing_id = $oneproductid;
@@ -61,31 +53,19 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
61
  }
62
  $product_ids[] = $remarketing_id;
63
 
64
- $product_impressions[] = array(
65
- 'name' => $product->get_title(),
66
- 'id' => $oneproductid,
67
- 'price' => $product_price,
68
- 'category' => $product_cat,
69
- 'position' => ($i+1)
70
- );
71
-
72
  $i++;
73
  if ( $i>$last ) {
74
  break;
75
  }
76
  }
77
-
78
  if ( $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCREMARKETING ] ) {
79
- $dataLayer["ecomm_prodid"] = $product_ids;
80
  $dataLayer["ecomm_pagetype"] = ( is_front_page() ? "home" : "category" );
81
- $dataLayer["ecomm_totalvalue"] = (float)$sumprice;
82
- }
83
-
84
- if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
85
- $dataLayer["ecommerce"] = array("impressions" => $product_impressions);
86
  }
87
- }
88
- }
89
  } else if ( is_product() ) {
90
  if ( ( $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCREMARKETING ] ) || ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) ) {
91
  $prodid = get_the_ID();
@@ -129,26 +109,60 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
129
  } else if ( is_cart() ) {
130
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
131
  gtm4wp_woocommerce_addjs("
132
- $('.product-remove').click(function() {
133
- var productdata = $( this )
134
- .parent()
135
- .find( '.gtm4wp_productdata' );
136
-
137
- ". $gtm4wp_datalayer_name .".push({
138
- 'event': 'gtm4wp.removeFromCart',
139
- 'ecommerce': {
140
- 'remove': {
141
- 'products': [{
142
- 'name': productdata.data( 'product_name' ),
143
- 'id': productdata.data( 'product_id' ),
144
- 'price': productdata.data( 'product_price' ),
145
- 'category': productdata.data( 'product_cat' ),
146
- 'quantity': $( this ).parent().parent().find( '.product-quantity input.qty' ).val()
147
- }]
148
- }
149
- }
150
- });
151
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  ");
153
  }
154
 
@@ -169,7 +183,12 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
169
 
170
  $dataLayer["ecomm_prodid"] = $product_ids;
171
  $dataLayer["ecomm_pagetype"] = "cart";
172
- $dataLayer["ecomm_totalvalue"] = (float)$woocommerce->cart->cart_contents_total;
 
 
 
 
 
173
  }
174
  } else if ( is_order_received_page() ) {
175
  $order_id = apply_filters( 'woocommerce_thankyou_order_id', empty( $_GET['order'] ) ? ($GLOBALS["wp"]->query_vars["order-received"] ? $GLOBALS["wp"]->query_vars["order-received"] : 0) : absint( $_GET['order'] ) );
@@ -202,6 +221,7 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
202
 
203
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
204
  $dataLayer["ecommerce"] = array(
 
205
  "purchase" => array(
206
  "actionField" => array(
207
  "id" => $order->get_order_number(),
@@ -261,7 +281,7 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
261
  "quantity" => $item['qty']
262
  );
263
 
264
- $_sumprice += $_prodprice;
265
  $_product_ids[] = $remarketing_id;
266
  }
267
  }
@@ -273,7 +293,7 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
273
 
274
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
275
  $dataLayer["ecommerce"]["purchase"]["products"] = $_products;
276
- $dataLayer["event"] = "gtm4wp.orderCompleted";
277
  }
278
 
279
  if ( $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCREMARKETING ] ) {
@@ -287,7 +307,8 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
287
  } else if ( is_checkout() ) {
288
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
289
  foreach( $woocommerce->cart->get_cart() as $cart_item_id => $cart_item_data) {
290
- $product = $cart_item_data["data"];
 
291
  $_product_cats = get_the_terms($product->id, 'product_cat');
292
  if ( ( is_array($_product_cats) ) && ( count( $_product_cats ) > 0 ) ) {
293
  $product_cat = array_pop( $_product_cats );
@@ -313,6 +334,37 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
313
  "products" => $gtm4wp_checkout_products
314
  )
315
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
316
  }
317
  } else {
318
  if ( $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCREMARKETING ] ) {
@@ -320,6 +372,48 @@ function gtm4wp_woocommerce_datalayer_filter_items( $dataLayer ) {
320
  }
321
  }
322
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
323
  return $dataLayer;
324
  }
325
 
@@ -332,7 +426,7 @@ function gtm4wp_woocommerce_single_add_to_cart_tracking() {
332
 
333
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKCLASSICEC ] ) {
334
  gtm4wp_woocommerce_addjs("
335
- $('.single_add_to_cart_button').click(function() {
336
  ". $gtm4wp_datalayer_name .".push({
337
  'event': 'gtm4wp.addProductToCart',
338
  'productName': '". esc_js( $product->post->post_title ) ."',
@@ -353,9 +447,9 @@ function gtm4wp_woocommerce_single_add_to_cart_tracking() {
353
  }
354
 
355
  gtm4wp_woocommerce_addjs("
356
- $('.single_add_to_cart_button').click(function() {
357
  ". $gtm4wp_datalayer_name .".push({
358
- 'event': 'gtm4wp.addProductToCart',
359
  'ecommerce': {
360
  'currencyCode': '".get_woocommerce_currency()."',
361
  'add': {
@@ -364,7 +458,7 @@ function gtm4wp_woocommerce_single_add_to_cart_tracking() {
364
  'id': '". esc_js( $product->id ) ."',
365
  'price': '". esc_js( $product->get_price() ) ."',
366
  'category': '". esc_js( $product_cat ) ."',
367
- 'quantity': $('form.cart:first input[name=quantity]').val()
368
  }]
369
  }
370
  }
@@ -379,10 +473,12 @@ function gtm4wp_woocommerce_wp_footer() {
379
 
380
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKCLASSICEC ] ) {
381
  gtm4wp_woocommerce_addjs("
382
- $('.add_to_cart_button:not(.product_type_variable, .product_type_grouped)').click(function() {
 
 
383
  ". $gtm4wp_datalayer_name .".push({
384
  'event': 'gtm4wp.addProductToCart',
385
- 'productName': $( this ).parent().find('h3').text(),
386
  'productSKU': $( this ).data( 'product_sku' ),
387
  'productID': $( this ).data( 'product_id' ),
388
  });
@@ -390,21 +486,90 @@ function gtm4wp_woocommerce_wp_footer() {
390
  ");
391
  }
392
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
393
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
394
  gtm4wp_woocommerce_addjs("
395
- $('.add_to_cart_button:not(.product_type_variable, .product_type_grouped)').click(function() {
396
- var productdata = $( this ).closest( 'li' ).find( 'a .gtm4wp_productdata' );
397
 
398
  ". $gtm4wp_datalayer_name .".push({
399
- 'event': 'gtm4wp.addProductToCart',
400
  'ecommerce': {
401
  'currencyCode': '".get_woocommerce_currency()."',
402
  'add': {
403
  'products': [{
404
- 'name': productdata.data( 'product_name' ),
405
- 'id': productdata.data( 'product_id' ),
406
- 'price': productdata.data( 'product_price' ),
407
- 'category': productdata.data( 'product_cat' ),
408
  'quantity': 1
409
  }]
410
  }
@@ -419,37 +584,57 @@ function gtm4wp_woocommerce_enhanced_ecom_product_click() {
419
  global $woocommerce, $gtm4wp_datalayer_name;
420
 
421
  gtm4wp_woocommerce_addjs("
422
- $('.products li a:not(.add_to_cart_button)').click(function() {
423
- var productdata = $( this ).find( '.gtm4wp_productdata' );
 
 
 
 
 
424
 
425
  if ( 0 == productdata.length ) {
426
- return true;
 
 
 
 
427
  }
428
-
 
 
 
 
 
 
429
  ". $gtm4wp_datalayer_name .".push({
430
- 'event': 'gtm4wp.productClick',
431
  'ecommerce': {
 
432
  'click': {
 
433
  'products': [{
434
- 'name': productdata.data( 'product_name' ),
435
- 'id': productdata.data( 'product_id' ),
436
- 'price': productdata.data( 'product_price' ),
437
- 'category': productdata.data( 'product_cat' ),
438
- 'position': productdata.data( 'product_listposition' )
439
- }]
440
  }
441
  },
442
  'eventCallback': function() {
443
- document.location = productdata.data( 'product_url' )
 
 
 
 
444
  }
445
  });
446
- return false;
447
  });
448
  ");
449
  }
450
 
451
- function gtm4wp_woocommerce_enhanced_ecom_add_prod_data() {
452
- global $product, $gtm4wp_product_counter;
453
 
454
  $product_price = $product->get_price();
455
  $_product_cats = get_the_terms($product->id, 'product_cat');
@@ -460,8 +645,25 @@ function gtm4wp_woocommerce_enhanced_ecom_add_prod_data() {
460
  $product_cat = "";
461
  }
462
 
463
- echo '<span class="gtm4wp_productdata" data-product_id="' . $product->id . '" data-product_name="' . str_replace( '"', '&quot;', $product->get_title() ) . '" data-product_price="' .$product_price . '" data-product_cat="' . str_replace( '"', '&quot;', $product_cat ) . '" data-product_url="' . get_permalink() . '" data-product_listposition="' . $gtm4wp_product_counter . '"></span>';
464
- $gtm4wp_product_counter++;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
465
  }
466
 
467
  $GLOBALS["gtm4wp_cart_item_proddata"] = '';
@@ -475,28 +677,193 @@ function gtm4wp_woocommerce_cart_item_product_filter($product) {
475
  $product_cat = "";
476
  }
477
 
478
- $GLOBALS["gtm4wp_cart_item_proddata"] = '<span class="gtm4wp_productdata" data-product_id="' . $product->id . '" data-product_name="' . str_replace( '"', '&quot;', $product->get_title() ) . '" data-product_price="' .$product_price . '" data-product_cat="' . str_replace( '"', '&quot;', $product_cat ) . '" data-product_url="' . get_permalink() . '"></span>';
 
 
 
 
 
 
 
479
  return $product;
480
  }
481
 
482
- function gtm4wp_woocommerce_cart_item_remove_link_filter($arg) {
483
- echo $GLOBALS["gtm4wp_cart_item_proddata"];
 
 
 
 
 
 
484
  $GLOBALS["gtm4wp_cart_item_proddata"] = '';
485
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
486
  return $arg;
487
  }
488
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
489
  // do not add filter if someone enabled WooCommerce integration without an activated WooCommerce plugin
490
  if ( isset ( $GLOBALS["woocommerce"] ) ) {
491
  add_filter( GTM4WP_WPFILTER_COMPILE_DATALAYER, "gtm4wp_woocommerce_datalayer_filter_items" );
492
- add_filter( "woocommerce_cart_item_product", "gtm4wp_woocommerce_cart_item_product_filter" );
493
- add_filter( "woocommerce_cart_item_remove_link", "gtm4wp_woocommerce_cart_item_remove_link_filter" );
494
 
495
- add_action( 'woocommerce_after_add_to_cart_button', "gtm4wp_woocommerce_single_add_to_cart_tracking" );
496
- add_action( 'wp_footer', "gtm4wp_woocommerce_wp_footer" );
 
 
 
 
 
497
 
498
- if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
499
  add_action( 'wp_footer', 'gtm4wp_woocommerce_enhanced_ecom_product_click' );
500
- add_action( 'woocommerce_before_shop_loop_item_title', 'gtm4wp_woocommerce_enhanced_ecom_add_prod_data' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
501
  }
502
  }
1
  <?php
2
  $gtm4wp_product_counter = 0;
3
+ $gtm4wp_last_widget_title = "Sidebar Products";
4
 
5
  function gtm4wp_woocommerce_addjs( $js ) {
6
  global $woocommerce;
20
  global $woocommerce, $gtm4wp_options, $wp_query, $gtm4wp_datalayer_name, $gtm4wp_product_counter;
21
 
22
  if ( is_product_category() || is_product_tag() || is_front_page() || is_shop() ) {
23
+ /*
24
  if ( ( $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCREMARKETING ] ) || ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) ) {
25
  if ( count( $woocommerce->query->filtered_product_ids ) > 0 ) {
26
  // The following 5 lines was being borrowed from WC source
30
  $first = ( $per_page * $paged ) - $per_page + 1;
31
  $last = min( $total, $wp_query->get( 'posts_per_page' ) * $paged );
32
 
 
 
33
  $sumprice = 0;
34
  $product_ids = array();
 
35
  $_temp_product_id_list = $woocommerce->query->filtered_product_ids;
36
 
37
  $i = ($first-1);
42
  }
43
 
44
  $product_price = $product->get_price();
 
 
 
 
 
 
 
45
  $sumprice += $product_price;
46
 
47
  $remarketing_id = $oneproductid;
53
  }
54
  $product_ids[] = $remarketing_id;
55
 
 
 
 
 
 
 
 
 
56
  $i++;
57
  if ( $i>$last ) {
58
  break;
59
  }
60
  }
61
+ */
62
  if ( $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCREMARKETING ] ) {
63
+ $dataLayer["ecomm_prodid"] = /*$product_ids*/ array();
64
  $dataLayer["ecomm_pagetype"] = ( is_front_page() ? "home" : "category" );
65
+ $dataLayer["ecomm_totalvalue"] = /*(float)$sumprice*/0;
 
 
 
 
66
  }
67
+ // }
68
+ // }
69
  } else if ( is_product() ) {
70
  if ( ( $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCREMARKETING ] ) || ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) ) {
71
  $prodid = get_the_ID();
109
  } else if ( is_cart() ) {
110
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
111
  gtm4wp_woocommerce_addjs("
112
+ $( '.product-quantity input' ).each(function() {
113
+ $( this ).data( 'gtm4wp_original_value', $( this ).val() );
114
+ });
115
+
116
+ $( '[name=update_cart]' ).click( function() {
117
+ $( '.product-quantity input' ).each(function() {
118
+ var _original_value = $( this ).data( 'gtm4wp_original_value' );
119
+
120
+ var _current_value = parseInt( $( this ).val() );
121
+ if ( isNaN( _current_value ) ) {
122
+ _current_value = _original_value;
123
+ }
124
+
125
+ if ( _original_value != _current_value ) {
126
+ var productdata = $( this ).closest( '.cart_item' ).find( '.remove' );
127
+
128
+ if ( _original_value < _current_value ) {
129
+ ". $gtm4wp_datalayer_name .".push({
130
+ 'event': 'gtm4wp.addProductToCartEEC',
131
+ 'ecommerce': {
132
+ 'currencyCode': '".get_woocommerce_currency()."',
133
+ 'add': {
134
+ 'products': [{
135
+ 'name': productdata.data( 'gtm4wp_product_name' ),
136
+ 'id': productdata.data( 'gtm4wp_product_id' ),
137
+ 'price': productdata.data( 'gtm4wp_product_price' ),
138
+ 'category': productdata.data( 'gtm4wp_product_cat' ),
139
+ 'quantity': _current_value - _original_value
140
+ }]
141
+ }
142
+ }
143
+ });
144
+ } else {
145
+ ". $gtm4wp_datalayer_name .".push({
146
+ 'event': 'gtm4wp.removeFromCartEEC',
147
+ 'ecommerce': {
148
+ 'currencyCode': '".get_woocommerce_currency()."',
149
+ 'remove': {
150
+ 'products': [{
151
+ 'name': productdata.data( 'gtm4wp_product_name' ),
152
+ 'id': productdata.data( 'gtm4wp_product_id' ),
153
+ 'price': productdata.data( 'gtm4wp_product_price' ),
154
+ 'category': productdata.data( 'gtm4wp_product_cat' ),
155
+ 'quantity': _original_value - _current_value
156
+ }]
157
+ }
158
+ }
159
+ });
160
+ }
161
+ }
162
+ });
163
+
164
+ return false;
165
+ });
166
  ");
167
  }
168
 
183
 
184
  $dataLayer["ecomm_prodid"] = $product_ids;
185
  $dataLayer["ecomm_pagetype"] = "cart";
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 + $this->tax_total;
190
+ }
191
+ $dataLayer["ecomm_totalvalue"] = (float)$cart_total;
192
  }
193
  } else if ( is_order_received_page() ) {
194
  $order_id = apply_filters( 'woocommerce_thankyou_order_id', empty( $_GET['order'] ) ? ($GLOBALS["wp"]->query_vars["order-received"] ? $GLOBALS["wp"]->query_vars["order-received"] : 0) : absint( $_GET['order'] ) );
221
 
222
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
223
  $dataLayer["ecommerce"] = array(
224
+ "currencyCode" => get_woocommerce_currency(),
225
  "purchase" => array(
226
  "actionField" => array(
227
  "id" => $order->get_order_number(),
281
  "quantity" => $item['qty']
282
  );
283
 
284
+ $_sumprice += $_prodprice * $item['qty'];
285
  $_product_ids[] = $remarketing_id;
286
  }
287
  }
293
 
294
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
295
  $dataLayer["ecommerce"]["purchase"]["products"] = $_products;
296
+ $dataLayer["event"] = "gtm4wp.orderCompletedEEC";
297
  }
298
 
299
  if ( $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCREMARKETING ] ) {
307
  } else if ( is_checkout() ) {
308
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
309
  foreach( $woocommerce->cart->get_cart() as $cart_item_id => $cart_item_data) {
310
+ $product = apply_filters( 'woocommerce_cart_item_product', $cart_item_data["data"], $cart_item_data, $cart_item_id );
311
+
312
  $_product_cats = get_the_terms($product->id, 'product_cat');
313
  if ( ( is_array($_product_cats) ) && ( count( $_product_cats ) > 0 ) ) {
314
  $product_cat = array_pop( $_product_cats );
334
  "products" => $gtm4wp_checkout_products
335
  )
336
  );
337
+
338
+ gtm4wp_woocommerce_addjs("
339
+ $( 'form[name=checkout]' ).on( 'submit', function() {
340
+ var _checkout_option = [];
341
+
342
+ var _shipping_el = $( '#shipping_method input:checked' );
343
+ if ( _shipping_el.length > 0 ) {
344
+ _checkout_option.push( 'Shipping: ' + _shipping_el.val() );
345
+ }
346
+
347
+ var _payment_el = $( '.payment_methods input:checked' );
348
+ if ( _payment_el.length > 0 ) {
349
+ _checkout_option.push( 'Payment: ' + _payment_el.val() );
350
+ }
351
+
352
+ if ( _checkout_option.length > 0 ) {
353
+ ". $gtm4wp_datalayer_name .".push({
354
+ 'event': 'gtm4wp.checkoutOptionECC',
355
+ 'ecommerce': {
356
+ 'checkout_option': {
357
+ 'actionField': {
358
+ 'step': 1,
359
+ 'option': _checkout_option.join( ', ' )
360
+ }
361
+ }
362
+ }
363
+ });
364
+ }
365
+
366
+ return false;
367
+ });");
368
  }
369
  } else {
370
  if ( $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCREMARKETING ] ) {
372
  }
373
  }
374
 
375
+ if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
376
+ gtm4wp_woocommerce_addjs("
377
+ $( '.shop_table.cart,.cart_list' ).on( 'click', '.mini_cart_item a.remove,.product-remove a.remove', function() {
378
+ var productdata = $( this );
379
+
380
+ var qty = 0;
381
+ var qty_element = $( this ).closest( '.cart-item' ).find( '.product-quantity input.qty' );
382
+ if ( 0 == qty_element.length ) {
383
+ qty_element = $( this ).closest( '.mini_cart_item' ).find( '.quantity' );
384
+ if ( qty_element.length > 0 ) {
385
+ qty = parseInt( qty_element.text() );
386
+
387
+ if ( isNaN( qty ) ) {
388
+ qty = 0;
389
+ }
390
+ }
391
+ } else {
392
+ qty = qty_element.val();
393
+ }
394
+
395
+ if ( 0 == qty ) {
396
+ return true;
397
+ }
398
+
399
+ ". $gtm4wp_datalayer_name .".push({
400
+ 'event': 'gtm4wp.removeFromCartEEC',
401
+ 'ecommerce': {
402
+ 'remove': {
403
+ 'products': [{
404
+ 'name': productdata.data( 'gtm4wp_product_name' ),
405
+ 'id': productdata.data( 'gtm4wp_product_id' ),
406
+ 'price': productdata.data( 'gtm4wp_product_price' ),
407
+ 'category': productdata.data( 'gtm4wp_product_cat' ),
408
+ 'quantity': qty
409
+ }]
410
+ }
411
+ }
412
+ });
413
+ });
414
+ ");
415
+ }
416
+
417
  return $dataLayer;
418
  }
419
 
426
 
427
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKCLASSICEC ] ) {
428
  gtm4wp_woocommerce_addjs("
429
+ $( '.single_add_to_cart_button' ).click(function() {
430
  ". $gtm4wp_datalayer_name .".push({
431
  'event': 'gtm4wp.addProductToCart',
432
  'productName': '". esc_js( $product->post->post_title ) ."',
447
  }
448
 
449
  gtm4wp_woocommerce_addjs("
450
+ $( '.single_add_to_cart_button' ).click(function() {
451
  ". $gtm4wp_datalayer_name .".push({
452
+ 'event': 'gtm4wp.addProductToCartEEC',
453
  'ecommerce': {
454
  'currencyCode': '".get_woocommerce_currency()."',
455
  'add': {
458
  'id': '". esc_js( $product->id ) ."',
459
  'price': '". esc_js( $product->get_price() ) ."',
460
  'category': '". esc_js( $product_cat ) ."',
461
+ 'quantity': jQuery( 'form.cart:first input[name=quantity]' ).val()
462
  }]
463
  }
464
  }
473
 
474
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKCLASSICEC ] ) {
475
  gtm4wp_woocommerce_addjs("
476
+ $( '.add_to_cart_button:not(.product_type_variable, .product_type_grouped)' ).click(function() {
477
+ var productdata = $( this ).closest( '.product' ).find( '.gtm4wp_productdata' );
478
+
479
  ". $gtm4wp_datalayer_name .".push({
480
  'event': 'gtm4wp.addProductToCart',
481
+ 'productName': productdata.data( 'gtm4wp_product_name' ),
482
  'productSKU': $( this ).data( 'product_sku' ),
483
  'productID': $( this ).data( 'product_id' ),
484
  });
486
  ");
487
  }
488
 
489
+ if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCREMARKETING ] ) {
490
+ echo "
491
+ <script type='text/javascript'>
492
+ (function($) {
493
+ if ( $( '.gtm4wp_productdata' ).length > 0 ) {
494
+ for( var i=0; i<". $gtm4wp_datalayer_name .".length; i++ ) {
495
+ if ( ". $gtm4wp_datalayer_name ."[ i ][ 'ecomm_prodid' ] ) {
496
+ break;
497
+ }
498
+ }
499
+
500
+ if ( i == ". $gtm4wp_datalayer_name .".length ) {
501
+ // no existing dyn remarketing data found in the datalayer
502
+ i = 0;
503
+ ". $gtm4wp_datalayer_name ."[ i ][ 'ecomm_prodid' ] = [];
504
+ }
505
+
506
+ var productdata;
507
+ $( '.gtm4wp_productdata' ).each( function() {
508
+ productdata = jQuery( this );
509
+
510
+ ". $gtm4wp_datalayer_name ."[ i ][ 'ecomm_prodid' ].push( productdata.data( 'gtm4wp_product_id' ) );
511
+ });
512
+ }
513
+ })(jQuery);
514
+ </script>";
515
+ }
516
+
517
  if ( true === $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
518
+ echo "
519
+ <script type='text/javascript'>
520
+ (function($) {
521
+ if ( $( '.gtm4wp_productdata,.widget-product-item' ).length > 0 ) {
522
+ for( var i=0; i<". $gtm4wp_datalayer_name .".length; i++ ) {
523
+ if ( ". $gtm4wp_datalayer_name ."[ i ][ 'ecommerce' ] ) {
524
+
525
+ if ( ! ". $gtm4wp_datalayer_name ."[ i ][ 'ecommerce' ][ 'impressions' ] ) {
526
+ ". $gtm4wp_datalayer_name ."[ i ][ 'ecommerce' ][ 'impressions' ] = [];
527
+ }
528
+
529
+ break;
530
+ }
531
+ }
532
+
533
+ if ( i == ". $gtm4wp_datalayer_name .".length ) {
534
+ // no existing ecommerce data found in the datalayer
535
+ i = 0;
536
+ ". $gtm4wp_datalayer_name ."[ i ][ 'ecommerce' ] = {};
537
+ ". $gtm4wp_datalayer_name ."[ i ][ 'ecommerce' ][ 'impressions' ] = [];
538
+ }
539
+
540
+ ". $gtm4wp_datalayer_name ."[ i ][ 'ecommerce' ][ 'currencyCode' ] = '".get_woocommerce_currency()."';
541
+
542
+ var productdata;
543
+ $( '.gtm4wp_productdata,.widget-product-item' ).each( function() {
544
+ productdata = jQuery( this );
545
+
546
+ ". $gtm4wp_datalayer_name ."[ i ][ 'ecommerce' ][ 'impressions' ].push({
547
+ 'name': productdata.data( 'gtm4wp_product_name' ),
548
+ 'id': productdata.data( 'gtm4wp_product_id' ),
549
+ 'price': productdata.data( 'gtm4wp_product_price' ),
550
+ 'category': productdata.data( 'gtm4wp_product_cat' ),
551
+ 'position': productdata.data( 'gtm4wp_product_listposition' ),
552
+ 'list': productdata.data( 'gtm4wp_productlist_name' )
553
+ });
554
+ });
555
+ }
556
+ })(jQuery);
557
+ </script>";
558
+
559
  gtm4wp_woocommerce_addjs("
560
+ $( '.add_to_cart_button:not(.product_type_variable, .product_type_grouped)' ).click(function() {
561
+ var productdata = $( this ).closest( '.product' ).find( '.gtm4wp_productdata' );
562
 
563
  ". $gtm4wp_datalayer_name .".push({
564
+ 'event': 'gtm4wp.addProductToCartEEC',
565
  'ecommerce': {
566
  'currencyCode': '".get_woocommerce_currency()."',
567
  'add': {
568
  'products': [{
569
+ 'name': productdata.data( 'gtm4wp_product_name' ),
570
+ 'id': productdata.data( 'gtm4wp_product_id' ),
571
+ 'price': productdata.data( 'gtm4wp_product_price' ),
572
+ 'category': productdata.data( 'gtm4wp_product_cat' ),
573
  'quantity': 1
574
  }]
575
  }
584
  global $woocommerce, $gtm4wp_datalayer_name;
585
 
586
  gtm4wp_woocommerce_addjs("
587
+ $( '.products li:not(.product-category) a:not(.add_to_cart_button),.widget-product-item' ).click(function( event ) {
588
+ var _productdata = $( this ).closest( '.product' ).length;
589
+ if ( _productdata > 0 ) {
590
+ var productdata = _productdata.find( '.gtm4wp_productdata' );
591
+ }
592
+
593
+ var ctrl_key_pressed = event.ctrlKey;
594
 
595
  if ( 0 == productdata.length ) {
596
+ var productdata = jQuery( this );
597
+
598
+ if ( '' == productdata.data( 'gtm4wp_product_id' ) ) {
599
+ return true;
600
+ }
601
  }
602
+
603
+ event.preventDefault();
604
+ if ( ctrl_key_pressed ) {
605
+ // we need to open the new tab/page here so that popup blocker of the browser doesn't block our code
606
+ var _productpage = window.open( 'about:blank', '_blank' );
607
+ }
608
+
609
  ". $gtm4wp_datalayer_name .".push({
610
+ 'event': 'gtm4wp.productClickEEC',
611
  'ecommerce': {
612
+ 'currencyCode': '".get_woocommerce_currency()."',
613
  'click': {
614
+ 'actionField': {'list': productdata.data( 'gtm4wp_productlist_name' )},
615
  'products': [{
616
+ 'name': productdata.data( 'gtm4wp_product_name' ),
617
+ 'id': productdata.data( 'gtm4wp_product_id' ),
618
+ 'price': productdata.data( 'gtm4wp_product_price' ),
619
+ 'category': productdata.data( 'gtm4wp_product_cat' ),
620
+ 'position': productdata.data( 'gtm4wp_product_listposition' )
621
+ }]
622
  }
623
  },
624
  'eventCallback': function() {
625
+ if ( ctrl_key_pressed && _productpage ) {
626
+ _productpage.location.href= productdata.data( 'gtm4wp_product_url' );
627
+ } else {
628
+ document.location.href = productdata.data( 'gtm4wp_product_url' )
629
+ }
630
  }
631
  });
 
632
  });
633
  ");
634
  }
635
 
636
+ function gtm4wp_woocommerce_add_prod_data( $add_to_cart_link ) {
637
+ global $product, $woocommerce_loop;
638
 
639
  $product_price = $product->get_price();
640
  $_product_cats = get_the_terms($product->id, 'product_cat');
645
  $product_cat = "";
646
  }
647
 
648
+ if ( is_search() ) {
649
+ $list_name = __( "Search Results", "duracelltomi-google-tag-manager" );
650
+ } else if ( isset( $woocommerce_loop[ "listtype" ] ) && ( $woocommerce_loop[ "listtype" ] != '' ) ) {
651
+ $list_name = $woocommerce_loop[ "listtype" ];
652
+ } else {
653
+ $list_name = __( "General Product List", "duracelltomi-google-tag-manager" );
654
+ }
655
+
656
+ $cartlink_with_data = sprintf('data-gtm4wp_product_id="%s" data-gtm4wp_product_name="%s" data-gtm4wp_product_price="%s" data-gtm4wp_product_cat="%s" data-gtm4wp_product_url="%s" data-gtm4wp_product_listposition="%s" data-gtm4wp_productlist_name="%s" href="',
657
+ esc_attr( $product->id ),
658
+ esc_attr( $product->get_title() ),
659
+ esc_attr( $product_price ),
660
+ esc_attr( $product_cat ),
661
+ esc_url( get_permalink() ),
662
+ esc_attr( $woocommerce_loop[ "loop" ] ),
663
+ esc_attr( $list_name )
664
+ );
665
+
666
+ return str_replace( 'href="', $cartlink_with_data, $add_to_cart_link );
667
  }
668
 
669
  $GLOBALS["gtm4wp_cart_item_proddata"] = '';
677
  $product_cat = "";
678
  }
679
 
680
+ $GLOBALS["gtm4wp_cart_item_proddata"] = array(
681
+ "id" => $product->id,
682
+ "name" => $product->get_title(),
683
+ "price" => $product_price,
684
+ "category" => $product_cat,
685
+ "productlink" => get_permalink()
686
+ );
687
+
688
  return $product;
689
  }
690
 
691
+ function gtm4wp_woocommerce_cart_item_remove_link_filter( $remove_from_cart_link ) {
692
+ $cartlink_with_data = sprintf('data-gtm4wp_product_id="%s" data-gtm4wp_product_name="%s" data-gtm4wp_product_price="%s" data-gtm4wp_product_cat="%s" data-gtm4wp_product_url="%s" href="',
693
+ esc_attr( $GLOBALS["gtm4wp_cart_item_proddata"]["id"] ),
694
+ esc_attr( $GLOBALS["gtm4wp_cart_item_proddata"]["name"] ),
695
+ esc_attr( $GLOBALS["gtm4wp_cart_item_proddata"]["price"] ),
696
+ esc_attr( $GLOBALS["gtm4wp_cart_item_proddata"]["category"] ),
697
+ esc_url( $GLOBALS["gtm4wp_cart_item_proddata"]["productlink"] )
698
+ );
699
  $GLOBALS["gtm4wp_cart_item_proddata"] = '';
700
 
701
+ return str_replace( 'href="', $cartlink_with_data, $remove_from_cart_link );
702
+ }
703
+
704
+ function gtp4wp_woocommerce_reset_loop() {
705
+ global $woocommerce_loop;
706
+
707
+ $woocommerce_loop[ "listtype" ] = "";
708
+ }
709
+
710
+ function gtm4wp_woocommerce_add_related_to_loop( $arg ) {
711
+ global $woocommerce_loop;
712
+
713
+ $woocommerce_loop[ "listtype" ] = __( "Related Products", "duracelltomi-google-tag-manager" );
714
+
715
  return $arg;
716
  }
717
 
718
+ function gtm4wp_woocommerce_before_template_part( $template_name ) {
719
+ ob_start();
720
+ }
721
+
722
+ function gtm4wp_woocommerce_after_template_part( $template_name ) {
723
+ global $product, $gtm4wp_product_counter, $gtm4wp_last_widget_title;
724
+
725
+ $productitem = ob_get_contents();
726
+ ob_end_clean();
727
+
728
+ if ( "content-widget-product.php" == $template_name ) {
729
+ $product_price = $product->get_price();
730
+ $_product_cats = get_the_terms($product->id, 'product_cat');
731
+ if ( ( is_array( $_product_cats ) ) && ( count( $_product_cats ) > 0 ) ) {
732
+ $product_cat = array_pop( $_product_cats );
733
+ $product_cat = $product_cat->name;
734
+ } else {
735
+ $product_cat = "";
736
+ }
737
+
738
+ $productlink_with_data = sprintf('data-gtm4wp_product_id="%s" data-gtm4wp_product_name="%s" data-gtm4wp_product_price="%s" data-gtm4wp_product_cat="%s" data-gtm4wp_product_url="%s" data-gtm4wp_productlist_name="%s" data-gtm4wp_product_listposition="%s" class="widget-product-item" href="',
739
+ esc_attr( $product->id ),
740
+ esc_attr( $product->get_title() ),
741
+ esc_attr( $product_price ),
742
+ esc_attr( $product_cat ),
743
+ esc_url( get_permalink() ),
744
+ $gtm4wp_last_widget_title,
745
+ esc_attr( $gtm4wp_product_counter )
746
+ );
747
+
748
+ $gtm4wp_product_counter++;
749
+
750
+ $productitem = str_replace( 'href="', $productlink_with_data, $productitem );
751
+ }
752
+
753
+ echo $productitem;
754
+ }
755
+
756
+ function gtm4wp_widget_title_filter( $widget_title ) {
757
+ global $gtm4wp_product_counter, $gtm4wp_last_widget_title;
758
+
759
+ $gtm4wp_product_counter = 1;
760
+ $gtm4wp_last_widget_title = $widget_title . __( " (widget)", "duracelltomi-google-tag-manager" );
761
+
762
+ return $widget_title;
763
+ }
764
+
765
+ function gtm4wp_before_recent_products_loop() {
766
+ global $woocommerce_loop;
767
+
768
+ $woocommerce_loop[ "listtype" ] = __( "Recent Products", "duracelltomi-google-tag-manager" );
769
+ }
770
+
771
+ function gtm4wp_before_sale_products_loop() {
772
+ global $woocommerce_loop;
773
+
774
+ $woocommerce_loop[ "listtype" ] = __( "Sale Products", "duracelltomi-google-tag-manager" );
775
+ }
776
+
777
+ function gtm4wp_before_best_selling_products_loop() {
778
+ global $woocommerce_loop;
779
+
780
+ $woocommerce_loop[ "listtype" ] = __( "Best Selling Products", "duracelltomi-google-tag-manager" );
781
+ }
782
+
783
+ function gtm4wp_before_top_rated_products_loop() {
784
+ global $woocommerce_loop;
785
+
786
+ $woocommerce_loop[ "listtype" ] = __( "Top Rated Products", "duracelltomi-google-tag-manager" );
787
+ }
788
+
789
+ function gtm4wp_before_featured_products_loop() {
790
+ global $woocommerce_loop;
791
+
792
+ $woocommerce_loop[ "listtype" ] = __( "Featured Products", "duracelltomi-google-tag-manager" );
793
+ }
794
+
795
+ function gtm4wp_before_related_products_loop() {
796
+ global $woocommerce_loop;
797
+
798
+ $woocommerce_loop[ "listtype" ] = __( "Related Products", "duracelltomi-google-tag-manager" );
799
+ }
800
+
801
+ function gtm4wp_woocommerce_before_shop_loop_item() {
802
+ global $product, $woocommerce_loop;
803
+
804
+ $product_price = $product->get_price();
805
+ $product_cat = "";
806
+ if ( is_product_category() ) {
807
+ global $wp_query;
808
+ $cat_obj = $wp_query->get_queried_object();
809
+ $product_cat = $cat_obj->name;
810
+ } else {
811
+ $_product_cats = get_the_terms($product->id, 'product_cat');
812
+ if ( ( is_array($_product_cats) ) && ( count( $_product_cats ) > 0 ) ) {
813
+ $last_product_cat = array_pop( $_product_cats );
814
+ $product_cat = $last_product_cat->name;
815
+ }
816
+ }
817
+
818
+ if ( is_search() ) {
819
+ $list_name = __( "Search Results", "duracelltomi-google-tag-manager" );
820
+ } else if ( isset( $woocommerce_loop[ "listtype" ] ) && ( $woocommerce_loop[ "listtype" ] != '' ) ) {
821
+ $list_name = $woocommerce_loop[ "listtype" ];
822
+ } else {
823
+ $list_name = __( "General Product List", "duracelltomi-google-tag-manager" );
824
+ }
825
+
826
+ $productlink = get_permalink();
827
+
828
+ printf('<span class="gtm4wp_productdata" style="display:none; visibility:hidden;" data-gtm4wp_product_id="%s" data-gtm4wp_product_name="%s" data-gtm4wp_product_price="%s" data-gtm4wp_product_cat="%s" data-gtm4wp_product_url="%s" data-gtm4wp_product_listposition="%s" data-gtm4wp_productlist_name="%s"></span>',
829
+ esc_attr( $product->id ),
830
+ esc_attr( $product->get_title() ),
831
+ esc_attr( $product_price ),
832
+ esc_attr( $product_cat ),
833
+ esc_url( $productlink ),
834
+ esc_attr( $woocommerce_loop[ "loop" ] ),
835
+ esc_attr( $list_name )
836
+ );
837
+ }
838
+
839
  // do not add filter if someone enabled WooCommerce integration without an activated WooCommerce plugin
840
  if ( isset ( $GLOBALS["woocommerce"] ) ) {
841
  add_filter( GTM4WP_WPFILTER_COMPILE_DATALAYER, "gtm4wp_woocommerce_datalayer_filter_items" );
 
 
842
 
843
+ add_filter( 'loop_end', 'gtp4wp_woocommerce_reset_loop' );
844
+
845
+ add_action( "woocommerce_before_shop_loop_item", "gtm4wp_woocommerce_before_shop_loop_item" );
846
+
847
+ // add_filter( "woocommerce_loop_add_to_cart_link", "gtm4wp_woocommerce_add_prod_data" );
848
+ add_action( "woocommerce_after_add_to_cart_button", "gtm4wp_woocommerce_single_add_to_cart_tracking" );
849
+ add_action( "wp_footer", "gtm4wp_woocommerce_wp_footer" );
850
 
851
+ if ( true === $GLOBALS[ "gtm4wp_options" ][ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] ) {
852
  add_action( 'wp_footer', 'gtm4wp_woocommerce_enhanced_ecom_product_click' );
853
+ add_action( 'woocommerce_before_template_part', 'gtm4wp_woocommerce_before_template_part' );
854
+ add_action( 'woocommerce_after_template_part', 'gtm4wp_woocommerce_after_template_part' );
855
+ add_filter( 'widget_title', 'gtm4wp_widget_title_filter' );
856
+
857
+ add_filter( "woocommerce_cart_item_product", "gtm4wp_woocommerce_cart_item_product_filter" );
858
+ add_filter( "woocommerce_cart_item_remove_link", "gtm4wp_woocommerce_cart_item_remove_link_filter" );
859
+
860
+ add_filter( "woocommerce_related_products_args", "gtm4wp_woocommerce_add_related_to_loop" );
861
+
862
+ add_action( 'woocommerce_shortcode_before_recent_products_loop', 'gtm4wp_before_recent_products_loop' );
863
+ add_action( 'woocommerce_shortcode_before_sale_products_loop', 'gtm4wp_before_sale_products_loop' );
864
+ add_action( 'woocommerce_shortcode_before_best_selling_products_loop', 'gtm4wp_before_best_selling_products_loop' );
865
+ add_action( 'woocommerce_shortcode_before_top_rated_products_loop', 'gtm4wp_before_top_rated_products_loop' );
866
+ add_action( 'woocommerce_shortcode_before_featured_products_loop', 'gtm4wp_before_featured_products_loop' );
867
+ add_action( 'woocommerce_shortcode_before_related_products_loop', 'gtm4wp_before_related_products_loop' );
868
  }
869
  }
js/admin-subtabs.js CHANGED
@@ -4,7 +4,7 @@ var adminsubtabs = {
4
  1: {
5
  "posts": {
6
  tabtext: gtm4wp.posttabtitle,
7
- numitems: 7
8
  },
9
  "search": {
10
  tabtext: gtm4wp.searchtabtitle,
4
  1: {
5
  "posts": {
6
  tabtext: gtm4wp.posttabtitle,
7
+ numitems: 8
8
  },
9
  "search": {
10
  tabtext: gtm4wp.searchtabtitle,
js/gtm4wp-social-tracker.js CHANGED
@@ -60,36 +60,38 @@ jQuery( function() {
60
  } (document, "script", "twitter-wjs"));
61
  } // end of loading Twitter JS
62
 
63
- window.twttr.ready(function ( twttr ) {
64
- twttr.events.bind( 'tweet', function ( intent_event ) {
65
- if ( intent_event ) {
66
- var label = intent_event.data.tweet_id;
67
- if ( typeof label == "label" ) {
68
- label = window.location.href;
69
- }
 
70
 
71
- window[ gtm4wp_datalayer_name ].push({
72
- 'event': 'gtm4wp.socialAction',
73
- 'network': 'twitter',
74
- 'socialAction': 'tweet',
75
- 'opt_target': label,
76
- 'opt_pagePath': window.location.href
77
- });
78
- }
79
- });
80
 
81
- window.twttr.events.bind( 'follow', function ( intent_event ) {
82
- if ( intent_event ) {
83
- var label = intent_event.data.user_id + " (" + intent_event.data.screen_name + ")";
84
 
85
- window[ gtm4wp_datalayer_name ].push({
86
- 'event': 'gtm4wp.socialAction',
87
- 'network': 'twitter',
88
- 'socialAction': 'follow',
89
- 'opt_target': label,
90
- 'opt_pagePath': window.location.href
91
- });
92
- }
93
- });
94
- });
 
95
  });
60
  } (document, "script", "twitter-wjs"));
61
  } // end of loading Twitter JS
62
 
63
+ if ( typeof window.twttr != "undefined" ) {
64
+ window.twttr.ready(function ( twttr ) {
65
+ twttr.events.bind( 'tweet', function ( intent_event ) {
66
+ if ( intent_event ) {
67
+ var label = intent_event.data.tweet_id;
68
+ if ( typeof label == "label" ) {
69
+ label = window.location.href;
70
+ }
71
 
72
+ window[ gtm4wp_datalayer_name ].push({
73
+ 'event': 'gtm4wp.socialAction',
74
+ 'network': 'twitter',
75
+ 'socialAction': 'tweet',
76
+ 'opt_target': label,
77
+ 'opt_pagePath': window.location.href
78
+ });
79
+ }
80
+ });
81
 
82
+ window.twttr.events.bind( 'follow', function ( intent_event ) {
83
+ if ( intent_event ) {
84
+ var label = intent_event.data.user_id + " (" + intent_event.data.screen_name + ")";
85
 
86
+ window[ gtm4wp_datalayer_name ].push({
87
+ 'event': 'gtm4wp.socialAction',
88
+ 'network': 'twitter',
89
+ 'socialAction': 'follow',
90
+ 'opt_target': label,
91
+ 'opt_pagePath': window.location.href
92
+ });
93
+ }
94
+ });
95
+ });
96
+ }
97
  });
languages/en.pot DELETED
@@ -1,668 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Google Tag Manager for WordPress\n"
4
- "POT-Creation-Date: 2013-09-19 11:27+0100\n"
5
- "PO-Revision-Date: 2013-09-19 11:27+0100\n"
6
- "Last-Translator: \n"
7
- "Language-Team: JabJab Online Marketing\n"
8
- "Language: English\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.5.7\n"
13
- "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
14
- "X-Poedit-Basepath: .\n"
15
- "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Poedit-SearchPath-0: ..\n"
17
-
18
- #: ../admin/admin.php:18
19
- msgid "Remarketing variable"
20
- msgstr ""
21
-
22
- #: ../admin/admin.php:19
23
- msgid ""
24
- "Check this option to include a dataLayer variable where all dataLayer values "
25
- "are stored to be included in your AdWords remarketing tag as a custom "
26
- "variable field"
27
- msgstr ""
28
-
29
- #: ../admin/admin.php:22
30
- msgid "Logged in status"
31
- msgstr ""
32
-
33
- #: ../admin/admin.php:23
34
- msgid ""
35
- "Check this option to include whether there is a logged in user on your "
36
- "website."
37
- msgstr ""
38
-
39
- #: ../admin/admin.php:26
40
- msgid "Logged in user role"
41
- msgstr ""
42
-
43
- #: ../admin/admin.php:27
44
- msgid "Check this option to include the role of the logged in user."
45
- msgstr ""
46
-
47
- #: ../admin/admin.php:30
48
- msgid "Posttype of current post/archive"
49
- msgstr ""
50
-
51
- #: ../admin/admin.php:31
52
- msgid ""
53
- "Check this option to include the type of the current post or archive page "
54
- "(post, page or any custom post type)."
55
- msgstr ""
56
-
57
- #: ../admin/admin.php:34
58
- msgid "Category list of current post/archive"
59
- msgstr ""
60
-
61
- #: ../admin/admin.php:35
62
- msgid ""
63
- "Check this option to include the category names of the current post or "
64
- "archive page"
65
- msgstr ""
66
-
67
- #: ../admin/admin.php:38
68
- msgid "Tags of current post"
69
- msgstr ""
70
-
71
- #: ../admin/admin.php:39
72
- msgid "Check this option to include the tags of the current post."
73
- msgstr ""
74
-
75
- #: ../admin/admin.php:42
76
- msgid "Post author name"
77
- msgstr ""
78
-
79
- #: ../admin/admin.php:43
80
- msgid ""
81
- "Check this option to include the author's name of the current post or author "
82
- "page."
83
- msgstr ""
84
-
85
- #: ../admin/admin.php:46
86
- msgid "Post date"
87
- msgstr ""
88
-
89
- #: ../admin/admin.php:47
90
- msgid ""
91
- "Check this option to include the date of the current post. This will include "
92
- "4 dataLayer variables: full date, post year, post month, post date."
93
- msgstr ""
94
-
95
- #: ../admin/admin.php:50
96
- msgid "Post title"
97
- msgstr ""
98
-
99
- #: ../admin/admin.php:51
100
- msgid "Check this option to include the title of the current post."
101
- msgstr ""
102
-
103
- #: ../admin/admin.php:54
104
- msgid "Search data"
105
- msgstr ""
106
-
107
- #: ../admin/admin.php:55
108
- msgid ""
109
- "Check this option to include the search term, referring page URL and number "
110
- "of results on the search page."
111
- msgstr ""
112
-
113
- #: ../admin/admin.php:61
114
- msgid "Outbound link click events (gtm4wp.outboundClick)"
115
- msgstr ""
116
-
117
- #: ../admin/admin.php:62
118
- msgid ""
119
- "Check this option to include a Tag Manager event when a visitor clicks on a "
120
- "link directing the visitor out of your website."
121
- msgstr ""
122
-
123
- #: ../admin/admin.php:65
124
- msgid "Download click events (gtm4wp.downloadClick)"
125
- msgstr ""
126
-
127
- #: ../admin/admin.php:66
128
- msgid ""
129
- "Check this option to include a Tag Manager event when a visitors clicks on a "
130
- "link that leads to a downloadable file on your website."
131
- msgstr ""
132
-
133
- #: ../admin/admin.php:69
134
- msgid "Extensions to track"
135
- msgstr ""
136
-
137
- #: ../admin/admin.php:70
138
- msgid ""
139
- "Enter a comma separated list of extensions to track when 'Include download "
140
- "click events' option is set."
141
- msgstr ""
142
-
143
- #: ../admin/admin.php:73
144
- msgid "Email click events (gtm4wp.emailClick)"
145
- msgstr ""
146
-
147
- #: ../admin/admin.php:74
148
- msgid ""
149
- "Check this option to include a Tag Manager event when a visitor clicks on an "
150
- "email link."
151
- msgstr ""
152
-
153
- #: ../admin/admin.php:80
154
- msgid "Contact Form 7"
155
- msgstr ""
156
-
157
- #: ../admin/admin.php:81
158
- msgid ""
159
- "Check this to include a dataLayer event after a successfull form submission."
160
- msgstr ""
161
-
162
- #: ../admin/admin.php:85
163
- msgid "WooCommerce"
164
- msgstr ""
165
-
166
- #: ../admin/admin.php:86
167
- msgid ""
168
- "Enable this and you will get:<br /> - Add-to-cart events<br /> - E-commerce "
169
- "transaction data ready to be used with Google Analytics and Universal "
170
- "Analytics tags<br /> - Google AdWords dynamic remarketing tags"
171
- msgstr ""
172
-
173
- #: ../admin/admin.php:101
174
- msgid ""
175
- "This plugin is intended to be used by IT guys and marketing staff. Please be "
176
- "sure you read the <a href=\"https://developers.google.com/tag-manager/\" "
177
- "target=\"_blank\">Google Tag Manager Help Center</a> before you start using "
178
- "this plugin.<br /><br /><strong>Important:</strong> This plugin is still "
179
- "<strong>beta</strong>. It has not been tested on many websites. There might "
180
- "be issues with some plugins or themes!"
181
- msgstr ""
182
-
183
- #: ../admin/admin.php:107
184
- msgid ""
185
- "Here you can check what data is needed to be included in the dataLayer to be "
186
- "able to access them in Google Tag Manager"
187
- msgstr ""
188
-
189
- #: ../admin/admin.php:113
190
- msgid "Fire tags in Google Tag Manager on special events on your website"
191
- msgstr ""
192
-
193
- #: ../admin/admin.php:119
194
- msgid ""
195
- "Google Tag Manager for WordPress can integrate with several popular plugins. "
196
- "Please check the plugins you would like to integrate with:"
197
- msgstr ""
198
-
199
- #: ../admin/admin.php:125
200
- msgid ""
201
- "You usually do not need to modify thoose settings. Please be carefull while "
202
- "hacking here."
203
- msgstr ""
204
-
205
- #: ../admin/admin.php:131
206
- msgid "Some info about the author of this plugin"
207
- msgstr ""
208
-
209
- #: ../admin/admin.php:171
210
- msgid ""
211
- "This plugin is <strong class=\"gtm4wp-plugin-active\">active</strong>, it is "
212
- "strongly recommended to enable this integration!"
213
- msgstr ""
214
-
215
- #: ../admin/admin.php:173
216
- msgid ""
217
- "This plugin is <strong class=\"gtm4wp-plugin-not-active\">not active</"
218
- "strong>, enabling this integration could cause issues on frontend!"
219
- msgstr ""
220
-
221
- #: ../admin/admin.php:214
222
- msgid "Invalid Google Tag Manager ID. Valid ID format: GTM-XXXXX"
223
- msgstr ""
224
-
225
- #: ../admin/admin.php:217
226
- msgid ""
227
- "Invalid dataLayer variable name. Please start with a character from a-z or A-"
228
- "Z followed by characters from a-z, A-Z, 0-9 or '_' or '-'!"
229
- msgstr ""
230
-
231
- #: ../admin/admin.php:237
232
- msgid "General"
233
- msgstr ""
234
-
235
- #: ../admin/admin.php:244
236
- msgid "Google Tag Manager ID"
237
- msgstr ""
238
-
239
- #: ../admin/admin.php:250
240
- msgid "Enter your Google Tag Manager ID here."
241
- msgstr ""
242
-
243
- #: ../admin/admin.php:256
244
- msgid "Basic data"
245
- msgstr ""
246
-
247
- #: ../admin/admin.php:278
248
- msgid "Events"
249
- msgstr ""
250
-
251
- #: ../admin/admin.php:300
252
- msgid "Integration"
253
- msgstr ""
254
-
255
- #: ../admin/admin.php:323
256
- msgid "Advanced"
257
- msgstr ""
258
-
259
- #: ../admin/admin.php:330
260
- msgid "dataLayer variable name"
261
- msgstr ""
262
-
263
- #: ../admin/admin.php:336
264
- msgid ""
265
- "In some cases you need to rename the dataLayer variable. You can enter your "
266
- "name here. Leave black for default name: dataLayer"
267
- msgstr ""
268
-
269
- #: ../admin/admin.php:342
270
- msgid "Credits"
271
- msgstr ""
272
-
273
- #: ../admin/admin.php:349
274
- msgid "Author"
275
- msgstr ""
276
-
277
- #: ../admin/admin.php:368
278
- msgid "Google Tag Manager for WordPress options"
279
- msgstr ""
280
-
281
- #: ../admin/admin.php:381
282
- msgid "Google Tag Manager for WordPress settings"
283
- msgstr ""
284
-
285
- #: ../admin/admin.php:382
286
- msgid "Google Tag Manager"
287
- msgstr ""
288
-
289
- #: ../admin/admin.php:407
290
- msgid ""
291
- "This does not seems to be a valid Google Tag Manager ID! Please check and "
292
- "try again"
293
- msgstr ""
294
-
295
- #: ../admin/admin.php:419
296
- msgid ""
297
- "This does not seems to be a valid JavaScript variable name! Please check and "
298
- "try again"
299
- msgstr ""
300
-
301
- #: ../admin/admin.php:432
302
- #, php-format
303
- msgid ""
304
- "To start using Google Tag Manager for WordPress, please <a href=\"%s\">enter "
305
- "your GTM ID</a>"
306
- msgstr ""
307
-
308
- #: ../admin/admin.php:439
309
- msgid ""
310
- "Possible duplacate tag issue: you should disable Google Analytics tracking "
311
- "<a href=\"admin.php?"
312
- "page=woocommerce_settings&tab=integration&section=google_analytics\">in "
313
- "WooCommerce settings</a> by leaving Google Analytics ID field empty to "
314
- "prevent any duplicate tags being used on the frontend!"
315
- msgstr ""
316
-
317
- #: ../integration/woocommerce.php:48
318
- msgid "SKU:"
319
- msgstr ""
320
-
321
- #: ../admin/admin.php:77
322
- msgid "Form fill events (gtm4wp.formElementEnter & gtm4wp.formElementLeave)"
323
- msgstr ""
324
-
325
- #: ../admin/admin.php:78
326
- msgid "Check this option to include a Tag Manager event when a visitor moves between elements of a form (comment, contact, etc)."
327
- msgstr ""
328
-
329
-
330
- msgid "In October 2013 Google released a new feature called <a href=\"https://support.google.com/tagmanager/answer/3415369?hl=en\" target=\"_blank\">auto event tracking</a>. It is up to you how you use click events either using Google's solution or the settings below."
331
- msgstr ""
332
-
333
- msgid ""
334
- "Footer of the page (not recommended by Google, no tweak in your template "
335
- "required)"
336
- msgstr ""
337
-
338
- msgid "Custom (needs tweak in your template)"
339
- msgstr ""
340
-
341
- msgid "Container code placement"
342
- msgstr ""
343
-
344
- msgid ""
345
- "Select how your container code should be included in your website.<br />If "
346
- "you select 'Custom' you need to edit your template file and add the "
347
- "following line just after the opening &lt;body&gt; tag:<br /><code>&lt;?php "
348
- "if ( function_exists( 'gtm4wp_the_gtm_tag' ) ) { gtm4wp_the_gtm_tag(); } ?&gt;</code>"
349
- msgstr ""
350
-
351
- msgid "Social actions (gtm4wp.socialAction)"
352
- msgstr ""
353
-
354
- msgid ""
355
- "Check this option to include a Tag Manager event when a visitor uses a "
356
- "social button to share/like content on a social network."
357
- msgstr ""
358
-
359
- msgid "Enabled"
360
- msgstr ""
361
-
362
- msgid "Enable scroll tracker script on your website."
363
- msgstr ""
364
-
365
- msgid "Debug mode"
366
- msgstr "Fire console.log() commands instead of dataLayer events."
367
-
368
- msgid "Time delay before location check"
369
- msgstr ""
370
-
371
- msgid ""
372
- "Enter the number of milliseconds after the script checks the current "
373
- "location. It prevents too many events being fired while scrolling."
374
- msgstr ""
375
-
376
- msgid "Minimum distance"
377
- msgstr ""
378
-
379
- msgid ""
380
- "The minimum amount of pixels that a visitor has to scroll before we treat "
381
- "the move as scrolling."
382
- msgstr ""
383
-
384
- msgid "Content ID"
385
- msgstr ""
386
-
387
- msgid ""
388
- "Enter the DOM ID of the content element in your template. Leave it empty for "
389
- "default(content). Do not include the # sign."
390
- msgstr ""
391
-
392
- msgid "Scroller time"
393
- msgstr ""
394
-
395
- msgid ""
396
- "Enter the number of seconds after the the scroller user is being "
397
- "treated as a reader, someone who really reads the content, not just scrolls "
398
- "through it."
399
- msgstr ""
400
-
401
- msgid "Fire tags based on how the visitor scrolls through your page."
402
- msgstr ""
403
-
404
- msgid ""
405
- "Based on the script originaly posted to <a href=\"%s\">Analytics Talk</a>"
406
- msgstr ""
407
-
408
- msgid "Scroll tracking"
409
- msgstr ""
410
-
411
- msgid "Browser data *"
412
- msgstr ""
413
-
414
- msgid ""
415
- "Check this option to include the name, version and engine data of the "
416
- "browser the visitor uses."
417
- msgstr ""
418
-
419
- msgid "OS data *"
420
- msgstr ""
421
-
422
- msgid ""
423
- "Check this option to include the name and version of the operating system "
424
- "the visitor uses."
425
- msgstr ""
426
-
427
- msgid "Device data *"
428
- msgstr ""
429
-
430
- msgid ""
431
- "Check this option to include the type of device the user is currently using "
432
- "(desktop, tablet or mobile) including manufacturer and model data."
433
- msgstr ""
434
-
435
- msgid ""
436
- "* Browser, OS and Device data is provided using <a href=\"%s\">WhichBrowser</"
437
- "a> library."
438
- msgstr ""
439
-
440
- msgid "Post count"
441
- msgstr ""
442
-
443
- msgid ""
444
- "Check this option to include the count of the posts currently shown on the "
445
- "page and the total number of posts in the category/tag/any taxonomy."
446
- msgstr ""
447
-
448
- msgid "Enable blacklist/whitelist"
449
- msgstr ""
450
-
451
- msgid ""
452
- "Disable feature or select whether you want to whitelist or blacklist tags"
453
- msgstr ""
454
-
455
- msgid "AdWords Conversion Tracking Tag"
456
- msgstr ""
457
-
458
- msgid "AdWords Remarketing Tag"
459
- msgstr ""
460
-
461
- msgid "Google Analytics Tag"
462
- msgstr ""
463
-
464
- msgid "Universal Analytics Tag"
465
- msgstr ""
466
-
467
- msgid "AdAdvisor Tag"
468
- msgstr ""
469
-
470
- msgid "AdRoll Smart Pixel Tag"
471
- msgstr ""
472
-
473
- msgid "Bizo Insight Tag"
474
- msgstr ""
475
-
476
- msgid "ClickTale Standard Tracking Tag"
477
- msgstr ""
478
-
479
- msgid "comScore Unified Digital Measurement Tag"
480
- msgstr ""
481
-
482
- msgid "Custom HTML Tag"
483
- msgstr ""
484
-
485
- msgid "Custom Image Tag"
486
- msgstr ""
487
-
488
- msgid "DoubleClick Floodlight Counter Tag"
489
- msgstr ""
490
-
491
- msgid "DoubleClick Floodlight Sales Tag"
492
- msgstr ""
493
-
494
- msgid "Marin Software Tag"
495
- msgstr ""
496
-
497
- msgid "Mediaplex - IFRAME MCT Tag"
498
- msgstr ""
499
-
500
- msgid "Mediaplex - Standard IMG ROI Tag"
501
- msgstr ""
502
-
503
- msgid "Media6Degrees Universal Pixel Tag"
504
- msgstr ""
505
-
506
- msgid "Turn Conversion Tracking Tag"
507
- msgstr ""
508
-
509
- msgid "Turn Data Collection Tag"
510
- msgstr ""
511
-
512
- msgid "DOM element Macro"
513
- msgstr ""
514
-
515
- msgid "Custom JavaScript Macro"
516
- msgstr ""
517
-
518
- msgid "Constant Macro"
519
- msgstr ""
520
-
521
- msgid "First Party Cookie Macro"
522
- msgstr ""
523
-
524
- msgid "Event Name Macro"
525
- msgstr ""
526
-
527
- msgid "JavaScript Variable Macro"
528
- msgstr ""
529
-
530
- msgid "DataLayer Variable Macro"
531
- msgstr ""
532
-
533
- msgid ""
534
- "It is not recommended to blacklist this type of macro since most features of "
535
- "this plugin depend on dataLayer macros."
536
- msgstr ""
537
-
538
- msgid "Random Number Macro"
539
- msgstr ""
540
-
541
- msgid "Referrer Macro"
542
- msgstr ""
543
-
544
- msgid "URL Macro"
545
- msgstr ""
546
-
547
- msgid "Auto-Event Variable Macro"
548
- msgstr ""
549
-
550
- msgid ""
551
- "Here you can control which types of tags and macros can be executed on your "
552
- "site regardless of what tags are included in your container on the Google "
553
- "Tag Manager site. Use this to increase security!"
554
- msgstr ""
555
-
556
- msgid ""
557
- "Here you can control which types of macros can work from your Google Tag "
558
- "Manager setup."
559
- msgstr ""
560
-
561
- msgid ""
562
- "Do not modify if you do not know what to do since it can cause issues in "
563
- "your tag deployment!"
564
- msgstr ""
565
-
566
- msgid ""
567
- "Blacklisting of macros only work if you enable blacklist or whilelist of "
568
- "tags on the previous tab."
569
- msgstr ""
570
-
571
- msgid "Uncheck a row to blacklist a macro type."
572
- msgstr ""
573
-
574
- msgid "Blacklist tags"
575
- msgstr ""
576
-
577
- msgid "Blacklist macros"
578
- msgstr ""
579
-
580
- msgid "Disable feature: control everything on Google Tag Manager interface"
581
- msgstr ""
582
-
583
- msgid "Allow all, except the checked items below (blacklist)"
584
- msgstr ""
585
-
586
- msgid "Block all, except the checked items below (whitelist)"
587
- msgstr ""
588
-
589
- msgid ""
590
- "Enable this to add <a href=\"%s\" target=\"_blank\">classic transaction</a> "
591
- "data to the dataLayer after a successful order."
592
- msgstr ""
593
-
594
- msgid ""
595
- "Enable this to fire a dataLayer event (gtm4wp.addProductToCart) when the "
596
- "visitors adds a product to your cart."
597
- msgstr ""
598
-
599
- msgid ""
600
- "Enable this to add Google AdWords dynamic remarketing variables to the "
601
- "dataLayer"
602
- msgstr ""
603
-
604
- msgid "Weather data"
605
- msgstr ""
606
-
607
- msgid ""
608
- "Check this option to include the current weather conditions around the "
609
- "current visitor.<br /><strong>Attention!</strong> This feature uses <a href="
610
- "\"%s\" target=\"_blank\">geoplugin.com</a> and <a href=\"%s\" target=\"_blank"
611
- "\">openweathermap.org</a> to collect data.<br />Depending on your website's "
612
- "traffic, additional fees may apply!<br />This plugin caches weather data for "
613
- "1 hour to lower the need to access those services."
614
- msgstr ""
615
-
616
- msgid "Weather data units"
617
- msgstr ""
618
-
619
- msgid "Track classic e-commerce"
620
- msgstr ""
621
-
622
- msgid ""
623
- "Choose this option if you would like to track e-commerce data using <a href="
624
- "\"%s\" target=\"_blank\">classic transaction data</a>."
625
- msgstr ""
626
-
627
- msgid "Track enhanced e-commerce"
628
- msgstr ""
629
-
630
- msgid ""
631
- "Choose this option if you would like to track e-commerce data using <a href="
632
- "\"%s\" target=\"_blank\">enhanced ecommerce tracking</a>."
633
- msgstr ""
634
-
635
- msgid ""
636
- "<br/>This feature is <strong>experimental</strong>. Currently it is not "
637
- "recommended to be used in live environments!"
638
- msgstr ""
639
-
640
- msgid "Dismiss"
641
- msgstr ""
642
-
643
- msgid ""
644
- "Notice: you should disable Google Analytics tracking <a href=\"admin.php?"
645
- "page=woocommerce_settings&tab=integration&section=google_analytics\">in "
646
- "WooCommerce settings</a> by leaving Google Analytics ID field empty if you "
647
- "are using Google Analytics tags inside Google Tag Manager!"
648
- msgstr ""
649
-
650
- msgid ""
651
- "Notice: you should deactivate the plugin \"WooCommerce Google Analytics "
652
- "Integration\" if you are using Google Analytics tags inside Google Tag "
653
- "Manager!"
654
- msgstr ""
655
-
656
- msgid ""
657
- "Notice: you should deactivate the plugin \"Google Analytics for WordPress by "
658
- "Yoast\" if you are using Google Analytics tags inside Google Tag Manager!"
659
- msgstr ""
660
-
661
- msgid "Select which temperature units you would like to use."
662
- msgstr ""
663
-
664
- msgid "Logged in user ID"
665
- msgstr ""
666
-
667
- msgid "Check this option to include the ID of the logged in user."
668
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/gtm4wp-lang-hu_HU.mo DELETED
Binary file
languages/gtm4wp-lang-hu_HU.po DELETED
@@ -1,827 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: \n"
4
- "POT-Creation-Date: \n"
5
- "PO-Revision-Date: \n"
6
- "Last-Translator: Thomas Geiger <tomi@jabjab.hu>\n"
7
- "Language-Team: JabJab Online Marketing\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=UTF-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.8.6\n"
12
- "Language: hu_HU\n"
13
-
14
- #: ../admin/admin.php:18
15
- msgid "Remarketing variable"
16
- msgstr "Remarketing változó"
17
-
18
- #: ../admin/admin.php:19
19
- msgid ""
20
- "Check this option to include a dataLayer variable where all dataLayer values "
21
- "are stored to be included in your AdWords remarketing tag as a custom "
22
- "variable field"
23
- msgstr ""
24
- "Kapcsolja be ezt a beállítást, ha egy olyan dataLayer változót szeretne "
25
- "létrehozni, amelyben minden egyéb dataLayer változó szerepel és "
26
- "felhasználható AdWords remarketing listánál egyéni címkézéshez"
27
-
28
- #: ../admin/admin.php:22
29
- msgid "Logged in status"
30
- msgstr "Bejelentkezett állapot"
31
-
32
- #: ../admin/admin.php:23
33
- msgid ""
34
- "Check this option to include whether there is a logged in user on your "
35
- "website."
36
- msgstr ""
37
- "Kapcsolja be ezt a beállítást, ha szeretné látni, van-e bejelentkezett "
38
- "felhasználó az oldalán."
39
-
40
- #: ../admin/admin.php:26
41
- msgid "Logged in user role"
42
- msgstr "Bejelentkezett felhasználó szerepköre"
43
-
44
- #: ../admin/admin.php:27
45
- msgid "Check this option to include the role of the logged in user."
46
- msgstr ""
47
- "Kapcsolja be ezt a beállítást, ha szeretné látni a bejelentkezett "
48
- "felhasználó szerepkörét."
49
-
50
- #: ../admin/admin.php:30
51
- msgid "Posttype of current post/archive"
52
- msgstr "Aktuális bejegyzés/arhív bejegyzés típusa"
53
-
54
- #: ../admin/admin.php:31
55
- msgid ""
56
- "Check this option to include the type of the current post or archive page "
57
- "(post, page or any custom post type)."
58
- msgstr ""
59
- "Kapcsolja be ezt a beállítást, ha szeretné látni az aktuális bejegyzés vagy "
60
- "arhív oldal bejegyzés típusát (bejegyzés, oldal vagy egyébi bejegyzés típus)"
61
-
62
- #: ../admin/admin.php:34
63
- msgid "Category list of current post/archive"
64
- msgstr "Aktuális bejegyzés/arhív kategória listája"
65
-
66
- #: ../admin/admin.php:35
67
- msgid ""
68
- "Check this option to include the category names of the current post or "
69
- "archive page"
70
- msgstr ""
71
- "Kapcsolja be ezt a beállítást, ha szeretné látni az aktuális bejegyzés vagy "
72
- "arhív oldal kategória listáját."
73
-
74
- #: ../admin/admin.php:38
75
- msgid "Tags of current post"
76
- msgstr "Aktuális bejegyzés címkéi"
77
-
78
- #: ../admin/admin.php:39
79
- msgid "Check this option to include the tags of the current post."
80
- msgstr ""
81
- "Kapcsolja be ezt a beállítást, ha szeretné látni az aktuális bejegyzés "
82
- "címkéit."
83
-
84
- #: ../admin/admin.php:42
85
- msgid "Post author name"
86
- msgstr "Bejegyzés szerzője"
87
-
88
- #: ../admin/admin.php:43
89
- msgid ""
90
- "Check this option to include the author's name of the current post or author "
91
- "page."
92
- msgstr ""
93
- "Kapcsolja be ezt a beállítást, ha szeretné látni az aktuális bejegyzés vagy "
94
- "szerző oldal szerzőjének a nevét."
95
-
96
- #: ../admin/admin.php:46
97
- msgid "Post date"
98
- msgstr "Bejegyzés dátuma"
99
-
100
- #: ../admin/admin.php:47
101
- msgid ""
102
- "Check this option to include the date of the current post. This will include "
103
- "4 dataLayer variables: full date, post year, post month, post date."
104
- msgstr ""
105
- "Kapcsolja be ezt a beállítást, ha szeretné látni az aktuális bejegyzés "
106
- "dátumát. 4 dataLayer változót tartalmaz: teljes dátum, bejegyzés éve, "
107
- "bejegyzés hónapja, bejegyzés napja."
108
-
109
- #: ../admin/admin.php:50
110
- msgid "Post title"
111
- msgstr "Bejegyzés címe"
112
-
113
- #: ../admin/admin.php:51
114
- msgid "Check this option to include the title of the current post."
115
- msgstr ""
116
- "Kapcsolja be ezt a beállítást, ha szeretné látni az aktuális bejegyzés címét."
117
-
118
- #: ../admin/admin.php:54
119
- msgid "Search data"
120
- msgstr "Keresési adatok"
121
-
122
- #: ../admin/admin.php:55
123
- msgid ""
124
- "Check this option to include the search term, referring page URL and number "
125
- "of results on the search page."
126
- msgstr ""
127
- "Kapcsolja be ezt a beállítást, ha szeretné látni az éppen keresett "
128
- "kifejezést, a keresés hivatkozó oldalát és a találatok számát."
129
-
130
- #: ../admin/admin.php:61
131
- msgid "Outbound link click events (gtm4wp.outboundClick)"
132
- msgstr "Esemény kimenő hivatkozásokra kattintáshoz (gtm4wp.outboundClick)"
133
-
134
- #: ../admin/admin.php:62
135
- msgid ""
136
- "Check this option to include a Tag Manager event when a visitor clicks on a "
137
- "link directing the visitor out of your website."
138
- msgstr ""
139
- "Kapcsolja be ezt a beállítást, ha szeretne Tag Manager eseményt kiváltani, "
140
- "amikor egy látogató egy olyan linkre kattint oldalán, amely kivezet onnan "
141
- "egy másik oldalra."
142
-
143
- #: ../admin/admin.php:65
144
- msgid "Download click events (gtm4wp.downloadClick)"
145
- msgstr "Esemény letöltés kattintásokhoz (gtm4wp.downloadClick)"
146
-
147
- #: ../admin/admin.php:66
148
- msgid ""
149
- "Check this option to include a Tag Manager event when a visitors clicks on a "
150
- "link that leads to a downloadable file on your website."
151
- msgstr ""
152
- "Kapcsolja be ezt a beállítást, ha szeretne Tag Manager eseményt kiváltani, "
153
- "amikor egy látogató egy olyan linkre kattint, amely egy letölthető fájlra "
154
- "visz weboldalán."
155
-
156
- #: ../admin/admin.php:69
157
- msgid "Extensions to track"
158
- msgstr "Követett kiterjesztések"
159
-
160
- #: ../admin/admin.php:70
161
- msgid ""
162
- "Enter a comma separated list of extensions to track when 'Include download "
163
- "click events' option is set."
164
- msgstr ""
165
- "Adjon meg egy vesszővel elválasztott felsorolást, hogy mely fájl "
166
- "kiterjesztéseket kell követni a letöltések kezelése során."
167
-
168
- #: ../admin/admin.php:73
169
- msgid "Email click events (gtm4wp.emailClick)"
170
- msgstr "Esemény email link kattintásokhoz (gtm4wp.emailClick)"
171
-
172
- #: ../admin/admin.php:74
173
- msgid ""
174
- "Check this option to include a Tag Manager event when a visitor clicks on an "
175
- "email link."
176
- msgstr ""
177
- "Kapcsolja be ezt a beállítást, ha szeretne Tag Manager eseményt kiváltani, "
178
- "amikor egy látogató egy email linkre kattint."
179
-
180
- #: ../admin/admin.php:80
181
- msgid "Contact Form 7"
182
- msgstr "Contact Form 7"
183
-
184
- #: ../admin/admin.php:81
185
- msgid ""
186
- "Check this to include a dataLayer event after a successfull form submission."
187
- msgstr ""
188
- "Kapcsolja be ezt a beállítást, ha szeretne Tag Manager eseményt kiváltani "
189
- "egy sikeres küldés után."
190
-
191
- #: ../admin/admin.php:85
192
- msgid "WooCommerce"
193
- msgstr "WooCommerce"
194
-
195
- #: ../admin/admin.php:86
196
- msgid ""
197
- "Enable this and you will get:<br /> - Add-to-cart events<br /> - E-commerce "
198
- "transaction data ready to be used with Google Analytics and Universal "
199
- "Analytics tags<br /> - Google AdWords dynamic remarketing tags"
200
- msgstr ""
201
- "Ha engedélyezi, használhat:<br /> - Eseményt a kosárba helyezés során<br /> "
202
- "- E-kereskedelmi adatokat Google Analytics és Universal Analytics "
203
- "tranzakciós címkékhez<br /> - Google AdWords dinamikus remarketing címkéket"
204
-
205
- #: ../admin/admin.php:101
206
- msgid ""
207
- "This plugin is intended to be used by IT guys and marketing staff. Please be "
208
- "sure you read the <a href=\"https://developers.google.com/tag-manager/\" "
209
- "target=\"_blank\">Google Tag Manager Help Center</a> before you start using "
210
- "this plugin.<br /><br /><strong>Important:</strong> This plugin is still "
211
- "<strong>beta</strong>. It has not been tested on many websites. There might "
212
- "be issues with some plugins or themes!"
213
- msgstr ""
214
- "Ez a bővítmény első sorban ITseknek és marketing csapatnak készült. Mielőtt "
215
- "elkezdi használni, mindenképpen olvassa el a <a href=\"https://developers."
216
- "google.com/tag-manager/\" target=\"_blank\">Google Tag Manager súgóját</a>."
217
- "<br /><br /><strong>Fontos:</strong> Ez a bővítmény még <strong>béta</"
218
- "strong> állapotban van. Eddig nem lett túl sok oldalon tesztelve. "
219
- "Előfordulhatnak problémák más bővítményekkel vagy témákkal!"
220
-
221
- #: ../admin/admin.php:107
222
- msgid ""
223
- "Here you can check what data is needed to be included in the dataLayer to be "
224
- "able to access them in Google Tag Manager"
225
- msgstr ""
226
- "Itt állíthatja be, mely adatokat helyezze el ez a bővítmény a dataLayer "
227
- "változba, hogy elérhetőek legyenek a Google Tag Manager felületén"
228
-
229
- #: ../admin/admin.php:113
230
- msgid "Fire tags in Google Tag Manager on special events on your website"
231
- msgstr ""
232
- "Google Tag Manager események generálása speciális események során weboldalán"
233
-
234
- #: ../admin/admin.php:119
235
- msgid ""
236
- "Google Tag Manager for WordPress can integrate with several popular plugins. "
237
- "Please check the plugins you would like to integrate with:"
238
- msgstr ""
239
- "Google Tag Manager for WordPress számos népszerű bővítménnyel tud "
240
- "integrálódni. Kapcsolja be az alábbi listában, mely bővítmények "
241
- "integrációját engedélyezi."
242
-
243
- #: ../admin/admin.php:125
244
- msgid ""
245
- "You usually do not need to modify thoose settings. Please be carefull while "
246
- "hacking here."
247
- msgstr "Alapvetően itt nincs mit módosítani. Óvatosan, ha itt módosít valamit!"
248
-
249
- #: ../admin/admin.php:131
250
- msgid "Some info about the author of this plugin"
251
- msgstr "Néhány információ ezen bővítmény szerzőjéről"
252
-
253
- #: ../admin/admin.php:171
254
- msgid ""
255
- "This plugin is <strong class=\"gtm4wp-plugin-active\">active</strong>, it is "
256
- "strongly recommended to enable this integration!"
257
- msgstr ""
258
- "Ez a bővítmény <strong class=\"gtm4wp-plugin-active\">aktív</strong>, "
259
- "ajánlott bekapcsolni ezt az integrációt!"
260
-
261
- #: ../admin/admin.php:173
262
- msgid ""
263
- "This plugin is <strong class=\"gtm4wp-plugin-not-active\">not active</"
264
- "strong>, enabling this integration could cause issues on frontend!"
265
- msgstr ""
266
- "Ez a bővítmény <strong class=\"gtm4wp-plugin-not-active\">nem aktív</"
267
- "strong>, az integráció bekapcsolása hibát eredményezhet weboldalán!"
268
-
269
- #: ../admin/admin.php:214
270
- msgid "Invalid Google Tag Manager ID. Valid ID format: GTM-XXXXX"
271
- msgstr "Érvénytelen Google Tag Manager azonosító. Helyes formátum: GTM-XXXXX"
272
-
273
- #: ../admin/admin.php:217
274
- msgid ""
275
- "Invalid dataLayer variable name. Please start with a character from a-z or A-"
276
- "Z followed by characters from a-z, A-Z, 0-9 or '_' or '-'!"
277
- msgstr ""
278
- "Érvénytelen dataLAyer változó név. Kezdje mindenképpen egy betűvel az angol "
279
- "a-z vagy A-Z tartományból, ezt követően használhat a-z, A-Z, 0-9 vagy '_' "
280
- "vagy '-' karaktereket."
281
-
282
- #: ../admin/admin.php:237
283
- msgid "General"
284
- msgstr "Általános"
285
-
286
- #: ../admin/admin.php:244
287
- msgid "Google Tag Manager ID"
288
- msgstr "Google Tag Manager azonosító"
289
-
290
- #: ../admin/admin.php:250
291
- msgid "Enter your Google Tag Manager ID here."
292
- msgstr "Itt adhatja meg a Google Tag Manager konténer azonosítót."
293
-
294
- #: ../admin/admin.php:256
295
- msgid "Basic data"
296
- msgstr "Alapadatok"
297
-
298
- #: ../admin/admin.php:278
299
- msgid "Events"
300
- msgstr "Események"
301
-
302
- #: ../admin/admin.php:300
303
- msgid "Integration"
304
- msgstr "Integráció"
305
-
306
- #: ../admin/admin.php:323
307
- msgid "Advanced"
308
- msgstr "Haladó"
309
-
310
- #: ../admin/admin.php:330
311
- msgid "dataLayer variable name"
312
- msgstr "dataLayer változó neve"
313
-
314
- #: ../admin/admin.php:336
315
- msgid ""
316
- "In some cases you need to rename the dataLayer variable. You can enter your "
317
- "name here. Leave black for default name: dataLayer"
318
- msgstr ""
319
- "Bizonyos esetekben át kell neveznie a dataLayer változót. Itt megadhatja a "
320
- "nevét. Hagyja üresen az alapértelmezett névhez: dataLayer"
321
-
322
- #: ../admin/admin.php:342
323
- msgid "Credits"
324
- msgstr "Névjegy"
325
-
326
- #: ../admin/admin.php:349
327
- msgid "Author"
328
- msgstr "Szerző"
329
-
330
- #: ../admin/admin.php:368
331
- msgid "Google Tag Manager for WordPress options"
332
- msgstr "Google Tag Manager for WordPress beállítások"
333
-
334
- #: ../admin/admin.php:381
335
- msgid "Google Tag Manager for WordPress settings"
336
- msgstr "Google Tag Manager for WordPress beállítások"
337
-
338
- #: ../admin/admin.php:382
339
- msgid "Google Tag Manager"
340
- msgstr "Google Tag Manager"
341
-
342
- #: ../admin/admin.php:407
343
- msgid ""
344
- "This does not seems to be a valid Google Tag Manager ID! Please check and "
345
- "try again"
346
- msgstr ""
347
- "Ez nem tűnik érvényes Google Tag Manager azonosítónak. Kérem, ellenőrizze!"
348
-
349
- #: ../admin/admin.php:419
350
- msgid ""
351
- "This does not seems to be a valid JavaScript variable name! Please check and "
352
- "try again"
353
- msgstr "Ez nem tűnik érvényes JavaScript változó névnek. Kérem, ellenőrizze!"
354
-
355
- #: ../admin/admin.php:432
356
- #, php-format
357
- msgid ""
358
- "To start using Google Tag Manager for WordPress, please <a href=\"%s\">enter "
359
- "your GTM ID</a>"
360
- msgstr ""
361
- "A Google Tag Manager for WordPress használatának megkezdéséhez kérem, <a "
362
- "href=\"%s\">adja meg azonosítóját</a>"
363
-
364
- #: ../admin/admin.php:439
365
- msgid ""
366
- "Possible duplacate tag issue: you should disable Google Analytics tracking "
367
- "<a href=\"admin.php?"
368
- "page=woocommerce_settings&tab=integration&section=google_analytics\">in "
369
- "WooCommerce settings</a> by leaving Google Analytics ID field empty to "
370
- "prevent any duplicate tags being used on the frontend!"
371
- msgstr ""
372
- "Lehetséges dupla címke probléma: kapcsolja ki a Google Analytics mérést a <a "
373
- "href=\"admin.php?"
374
- "page=woocommerce_settings&tab=integration&section=google_analytics"
375
- "\">WooCommerce beállításainál</a> úgy, hogy üresen hagyja a Google Analytics "
376
- "ID sort. Így elkerülheti, hogy duplán mérje a látogatókat weboldalán."
377
-
378
- #: ../integration/woocommerce.php:48
379
- msgid "SKU:"
380
- msgstr "Cikkszám:"
381
-
382
- #: ../admin/admin.php:77
383
- msgid "Form fill events (gtm4wp.formElementEnter & gtm4wp.formElementLeave)"
384
- msgstr ""
385
- "Form kitöltés események (gtm4wp.formElementEnter & gtm4wp.formElementLeave)"
386
-
387
- #: ../admin/admin.php:78
388
- msgid ""
389
- "Check this option to include a Tag Manager event when a visitor moves "
390
- "between elements of a form (comment, contact, etc)."
391
- msgstr ""
392
- "Kapcsolja be ezt a beállítást, ha szeretne Tag Manager eseményt kiváltani, "
393
- "amikor egy látogató egy űrlap elemei között mozog (hozzászólás, kapcsolat, "
394
- "stb.)"
395
-
396
- msgid ""
397
- "In October 2013 Google released a new feature called <a href=\"https://"
398
- "support.google.com/tagmanager/answer/3415369?hl=en\" target=\"_blank\">auto "
399
- "event tracking</a>. It is up to you how you use click events either using "
400
- "Google's solution or the settings below."
401
- msgstr ""
402
- "2013 októberében a Google kihozott egy új <a href=\"https://support.google."
403
- "com/tagmanager/answer/3415369?hl=en\" target=\"_blank\">automatikus esemény "
404
- "követés</a> funkciót. Választhat, melyiket esemény követést használja, a "
405
- "Google megoldását vagy az alábbi beállításokat."
406
-
407
- msgid ""
408
- "Footer of the page (not recommended by Google, no tweak in your template "
409
- "required)"
410
- msgstr ""
411
- "Az oldal aljában (a Google nem ajánlja, de nem kell bütykölni hozzá az oldal "
412
- "sablonját)"
413
-
414
- msgid "Custom (needs tweak in your template)"
415
- msgstr "Egyéni (módosítani kell az oldal sablonján)"
416
-
417
- msgid "Container code placement"
418
- msgstr "Tároló kód helye"
419
-
420
- msgid ""
421
- "Select how your container code should be included in your website.<br />If "
422
- "you select 'Custom' you need to edit your template file and add the "
423
- "following line just after the opening &lt;body&gt; tag:<br /><code>&lt;?php "
424
- "if ( function_exists( 'gtm4wp_the_gtm_tag' ) ) { gtm4wp_the_gtm_tag(); } ?"
425
- "&gt;</code>"
426
- msgstr ""
427
- "Válassza ki, hogyan kerüljön be az oldalba a tároló kódja.<br />Ha az "
428
- "'Egyéni'-t választja, módosítania kell az oldal sablonját, a következő sort "
429
- "kell elhelyezni rögtön a nyitó &lt;body&gt; elem után:<br /><code>&lt;?php "
430
- "if ( function_exists( 'gtm4wp_the_gtm_tag' ) ) { gtm4wp_the_gtm_tag(); } ?"
431
- "&gt;</code>"
432
-
433
- msgid "Social actions (gtm4wp.socialAction)"
434
- msgstr "Közösségi műveletek (gtm4wp.socialAction)"
435
-
436
- msgid ""
437
- "Check this option to include a Tag Manager event when a visitor uses a "
438
- "social button to share/like content on a social network."
439
- msgstr ""
440
- "Kapcsolja be ezt a beállítást, ha szeretne Tag Manager eseményt kiváltani, "
441
- "amikor egy látogató egy közösségi gomb segítségével megoszt/lájkol tartalmat."
442
-
443
- msgid "Enabled"
444
- msgstr "Engedélyezve"
445
-
446
- msgid "Enable scroll tracker script on your website."
447
- msgstr "Görgetés követés engedélyezése az oldalon."
448
-
449
- msgid "Debug mode"
450
- msgstr "Hibakereső üzemmód"
451
-
452
- msgid "Fire console.log() commands instead of dataLayer events."
453
- msgstr "console.log() parancsok dataLayer események helyett."
454
-
455
- msgid "Time delay before location check"
456
- msgstr "Kivárt idő a pozíció ellenőrzésére"
457
-
458
- msgid ""
459
- "Enter the number of milliseconds after the script checks the current "
460
- "location. It prevents too many events being fired while scrolling."
461
- msgstr ""
462
- "Adja meg, mennyi milliszekundumot várjon a program az aktuális görgetés "
463
- "helyének ellenőrzéséhez. Segít abban, hogy ne legyen túl sok esemény a "
464
- "folyamatos görgetés során. "
465
-
466
- msgid "Minimum distance"
467
- msgstr "Minimum távolság"
468
-
469
- msgid ""
470
- "The minimum amount of pixels that a visitor has to scroll before we treat "
471
- "the move as scrolling."
472
- msgstr ""
473
- "A legkisebb távolság pixelben, amit a felhasználónak görgetnie kell ahhoz, "
474
- "hogy mozgásnak vegyük a görgetést."
475
-
476
- msgid "Content ID"
477
- msgstr "Tartalom azonosító"
478
-
479
- msgid ""
480
- "Enter the DOM ID of the content element in your template. Leave it empty for "
481
- "default(content). Do not include the # sign."
482
- msgstr ""
483
- "Adja meg annak a tartalom DOM elemének az azonosítóját. Hagyja üresen az "
484
- "alapértelmezetthez (content). Ne használja a # jelet."
485
-
486
- msgid "Scroller time"
487
- msgstr "Görgető felhasználó"
488
-
489
- msgid ""
490
- "Enter the number of seconds after the the scroller user is being treated as "
491
- "a reader, someone who really reads the content, not just scrolls through it."
492
- msgstr ""
493
- "Adja meg, hány másodperc után számít a látogató olvasónak, aki tényleg el is "
494
- "olvassa a tartalmat, nem csak átfutja."
495
-
496
- msgid "Fire tags based on how the visitor scrolls through your page."
497
- msgstr "Címkék aktiválása, ahogy a felhasználó görget az oldalon belül."
498
-
499
- msgid ""
500
- "Based on the script originaly posted to <a href=\"%s\">Analytics Talk</a>"
501
- msgstr "Az <a href=\"%s\">Analytics Talk</a> scriptje alapján."
502
-
503
- msgid "Scroll tracking"
504
- msgstr "Görgetés figyelés"
505
-
506
- msgid "Browser data *"
507
- msgstr "Böngésző adatok *"
508
-
509
- msgid ""
510
- "Check this option to include the name, version and engine data of the "
511
- "browser the visitor uses."
512
- msgstr ""
513
- "Kapcsolja be ezt a beállítást, ha szeretné látni a látogató által használt "
514
- "böngésző nevét, verzióját, a megjelenítő motor adatait."
515
-
516
- msgid "OS data *"
517
- msgstr "Operációs rendszer adatok *"
518
-
519
- msgid ""
520
- "Check this option to include the name and version of the operating system "
521
- "the visitor uses."
522
- msgstr ""
523
- "Kapcsolja be ezt a beállítást, ha szeretné látni a látogató által használt "
524
- "operációs rendszer nevét és verzióját."
525
-
526
- msgid "Device data *"
527
- msgstr "Eszköz adatok *"
528
-
529
- msgid ""
530
- "Check this option to include the type of device the user is currently using "
531
- "(desktop, tablet or mobile) including manufacturer and model data."
532
- msgstr ""
533
- "Kapcsolja be ezt a beállítást, ha szeretné látni a látogató által használt "
534
- "eszközt (dekstop, tablet vagy moblie), a gyártó és model nevét."
535
-
536
- msgid ""
537
- "* Browser, OS and Device data is provided using <a href=\"%s\">WhichBrowser</"
538
- "a> library."
539
- msgstr ""
540
- "A böngésző, operációs rendszer és eszköz adatokat a <a href=\"%s"
541
- "\">WhichBrowser</a> eszköz szolgáltatja."
542
-
543
- msgid "Post count"
544
- msgstr "Bejegyzések száma"
545
-
546
- msgid ""
547
- "Check this option to include the count of the posts currently shown on the "
548
- "page and the total number of posts in the category/tag/any taxonomy."
549
- msgstr ""
550
- "Kapcsolja be ezt a beállítást, ha szeretné látni a bejegyzések számát az "
551
- "aktuális oldalon és az összes bejegyzés számát az aktuális kategóriában/"
552
- "címkénél/taxanómián."
553
-
554
- msgid "Enable blacklist/whitelist"
555
- msgstr "Feketelista engedélyezése"
556
-
557
- msgid ""
558
- "Disable feature or select whether you want to whitelist or blacklist tags"
559
- msgstr ""
560
- "Kapcsolja ki a funkciót vagy válassza ki, tiltani vagy engedélyezni szeretné "
561
- "a címkéket"
562
-
563
- msgid "AdWords Conversion Tracking Tag"
564
- msgstr "AdWords konverziós címke"
565
-
566
- msgid "AdWords Remarketing Tag"
567
- msgstr "AdWords remarketing címke"
568
-
569
- msgid "Google Analytics Tag"
570
- msgstr "Google Analytics címke"
571
-
572
- msgid "Universal Analytics Tag"
573
- msgstr "Universal Analytics címke"
574
-
575
- msgid "AdAdvisor Tag"
576
- msgstr "AdAdvisor címke"
577
-
578
- msgid "AdRoll Smart Pixel Tag"
579
- msgstr "AdRoll Smart Pixel címke"
580
-
581
- msgid "Bizo Insight Tag"
582
- msgstr "Bizo Insight címke"
583
-
584
- msgid "ClickTale Standard Tracking Tag"
585
- msgstr "ClickTale Standard Tracking címke"
586
-
587
- msgid "comScore Unified Digital Measurement Tag"
588
- msgstr "comScore Unified Digital Measurement címke"
589
-
590
- msgid "Custom HTML Tag"
591
- msgstr "Egyéni HTML címke"
592
-
593
- msgid "Custom Image Tag"
594
- msgstr "Enyéni kép címke"
595
-
596
- msgid "DoubleClick Floodlight Counter Tag"
597
- msgstr "DoubleClick Floodlight Counter címke"
598
-
599
- msgid "DoubleClick Floodlight Sales Tag"
600
- msgstr "DoubleClick Floodlight Sales címke"
601
-
602
- msgid "Marin Software Tag"
603
- msgstr "Marin Software címke"
604
-
605
- msgid "Mediaplex - IFRAME MCT Tag"
606
- msgstr "Mediaplex - IFRAME MCT címke"
607
-
608
- msgid "Mediaplex - Standard IMG ROI Tag"
609
- msgstr "Mediaplex - Standard IMG ROI címke"
610
-
611
- msgid "Media6Degrees Universal Pixel Tag"
612
- msgstr "Media6Degrees Universal Pixel címke"
613
-
614
- msgid "Turn Conversion Tracking Tag"
615
- msgstr "Turn Conversion Tracking címke"
616
-
617
- msgid "Turn Data Collection Tag"
618
- msgstr "Turn adatgyűjtő címke"
619
-
620
- msgid "DOM element Macro"
621
- msgstr "DOM elem makró"
622
-
623
- msgid "Custom JavaScript Macro"
624
- msgstr "Egyéni JavaScript makró"
625
-
626
- msgid "Constant Macro"
627
- msgstr "Állandó karakterlánc makró"
628
-
629
- msgid "First Party Cookie Macro"
630
- msgstr "First Party cookie makró"
631
-
632
- msgid "Event Name Macro"
633
- msgstr "Esemény név makró"
634
-
635
- msgid "JavaScript Variable Macro"
636
- msgstr "JavaScript változó makró"
637
-
638
- msgid "DataLayer Variable Macro"
639
- msgstr "DataLayer változó makró"
640
-
641
- msgid ""
642
- "It is not recommended to blacklist this type of macro since most features of "
643
- "this plugin depend on dataLayer macros."
644
- msgstr ""
645
- "Nem javasolt ezt a makrót letiltani, mert ennek használata ezen plugin "
646
- "működéséhez nélkülözhetetlen."
647
-
648
- msgid "Random Number Macro"
649
- msgstr "Véletlenszám makró"
650
-
651
- msgid "Referrer Macro"
652
- msgstr "Hivatkozó URL makró"
653
-
654
- msgid "URL Macro"
655
- msgstr "URL makró"
656
-
657
- msgid "Auto-Event Variable Macro"
658
- msgstr "Automatikus esemény változó makró"
659
-
660
- msgid ""
661
- "Here you can control which types of tags and macros can be executed on your "
662
- "site regardless of what tags are included in your container on the Google "
663
- "Tag Manager site. Use this to increase security!"
664
- msgstr ""
665
- "Itt kezelheti, milyen típusú címkék és makrók jelenhetnek meg az oldalához "
666
- "rendelt tárolóból függetlenül attól, hogy mi lett létrehozva a Google Tag "
667
- "Manager oldalán. Használja a biztonság fokozására!"
668
-
669
- msgid ""
670
- "Do not modify if you do not know what to do since it can cause issues in "
671
- "your tag deployment!"
672
- msgstr ""
673
- "Ne módosítása ha nem tudja, mit kell tennie, mivel ez problémákat okozhat a "
674
- "címkék megjelenésében."
675
-
676
- msgid ""
677
- "Blacklisting of macros only work if you enable blacklist or whilelist of "
678
- "tags on the previous tab."
679
- msgstr ""
680
- "A makrók tiltása csak akkor működik, ha engedélyezi a címkék tiltását/"
681
- "engedélyezését az előző fülön."
682
-
683
- msgid "Uncheck a row to blacklist a macro type."
684
- msgstr "Vegye ki a pipát egy sornál a makró tiltásához."
685
-
686
- msgid "Blacklist tags"
687
- msgstr "Címkék tiltása"
688
-
689
- msgid "Blacklist macros"
690
- msgstr "Makrók tiltása"
691
-
692
- msgid "Disable feature: control everything on Google Tag Manager interface"
693
- msgstr "Funkció tiltása: mindent a Google Tag Manager felületén kezel"
694
-
695
- msgid "Allow all, except the checked items below (blacklist)"
696
- msgstr "Minden engedélyezése, kivéve az alábbiakat (blacklist)"
697
-
698
- msgid "Block all, except the checked items below (whitelist)"
699
- msgstr "Minden tiltása, kivéve az alábbiakat (whitelist)"
700
-
701
- msgid "Posts"
702
- msgstr "Bejegyzések"
703
-
704
- msgid "Search"
705
- msgstr "Keresés"
706
-
707
- msgid "Visitors"
708
- msgstr "Látogatók"
709
-
710
- msgid "AdWords"
711
- msgstr "AdWords"
712
-
713
- msgid "Browser/OS/Device"
714
- msgstr "Böngésző / Op. rendszer / Eszköz"
715
-
716
- msgid ""
717
- "Enable this to add <a href=\"%s\" target=\"_blank\">classic transaction</a> "
718
- "data to the dataLayer after a successful order."
719
- msgstr ""
720
- "Engedélyezze ezt a beállítást <a href=\"%s\" target=\"_blank\">a klasszikus "
721
- "tranzakció méréshez</a> sikeres rendelés során."
722
-
723
- msgid ""
724
- "Enable this to fire a dataLayer event (gtm4wp.addProductToCart) when the "
725
- "visitors adds a product to your cart."
726
- msgstr ""
727
- "Engedélyezze ezt egy adatréteg esemény aktiválásához (gtm4wp."
728
- "addProductToCart), amikor a felhasználó elhelyez egy terméket a kosárba."
729
-
730
- msgid ""
731
- "Enable this to add Google AdWords dynamic remarketing variables to the "
732
- "dataLayer"
733
- msgstr ""
734
- "Engedélyezze ezt Google AdWords dinamikus remarketing változók "
735
- "elhelyezéséhez az adatrétegben."
736
-
737
- msgid "Weather data"
738
- msgstr "Időjárás adatok"
739
-
740
- msgid ""
741
- "Check this option to include the current weather conditions around the "
742
- "current visitor.<br /><strong>Attention!</strong> This feature uses <a href="
743
- "\"%s\" target=\"_blank\">geoplugin.com</a> and <a href=\"%s\" target=\"_blank"
744
- "\">openweathermap.org</a> to collect data.<br />Depending on your website's "
745
- "traffic, additional fees may apply!<br />This plugin caches weather data for "
746
- "1 hour to lower the need to access those services."
747
- msgstr ""
748
- "Kapcsolja ezt be, ha fel szeretné használni a látogató környezetében "
749
- "tapasztalt időjárás adatokat.<br /><strong>Figyelem!</strong> Ez a funkció a "
750
- "<a href=\"%s\" target=\"_blank\">geoplugin.com</a> és az <a href=\"%s\" "
751
- "target=\"_blank\">openweathermap.org</a> szolgáltatásokat használja az "
752
- "adatgyűjtéshez.<br />Weboldala forgalmától függően további költségek "
753
- "terhelhetik!<br />Ez a plugin minden adatot egy órára eltárol az említett "
754
- "szolgáltatások használatának csökkentésére."
755
-
756
- msgid "Weather data units"
757
- msgstr "Mértékegység"
758
-
759
- msgid "Track classic e-commerce"
760
- msgstr "Klasszikus e-kereskedelmi mérések"
761
-
762
- msgid ""
763
- "Choose this option if you would like to track e-commerce data using <a href="
764
- "\"%s\" target=\"_blank\">classic transaction data</a>."
765
- msgstr ""
766
- "Kapcsolja ezt be, ha a <a href=\"%s\" target=\"_blank\">klasszikus "
767
- "mérésekkel</a> szeretné mérni az e-kereskedelmi adatokat."
768
-
769
- msgid "Track enhanced e-commerce"
770
- msgstr "Fejlett e-kereskedelmi mérések"
771
-
772
- msgid ""
773
- "Choose this option if you would like to track e-commerce data using <a href="
774
- "\"%s\" target=\"_blank\">enhanced ecommerce tracking</a>."
775
- msgstr ""
776
- "Kapcsolja ezt be, ha a <a href=\"%s\" target=\"_blank\">fejlett mérésekkel</"
777
- "a> szeretné mérni az e-kereskedelmi adatokat."
778
-
779
- msgid ""
780
- "<br/>This feature is <strong>experimental</strong>. Currently it is not "
781
- "recommended to be used in live environments!"
782
- msgstr ""
783
- "<br/>Ez a funkció <strong>kísérleti</strong>. Jelenleg nem javasolt éles "
784
- "környezetben bekapcsolni!"
785
-
786
- msgid "Dismiss"
787
- msgstr "Elrejt"
788
-
789
- msgid ""
790
- "Notice: you should disable Google Analytics tracking <a href=\"admin.php?"
791
- "page=woocommerce_settings&tab=integration&section=google_analytics\">in "
792
- "WooCommerce settings</a> by leaving Google Analytics ID field empty if you "
793
- "are using Google Analytics tags inside Google Tag Manager!"
794
- msgstr ""
795
- "Megjegyzés: érdemes kikapcsolni a Google Analytics mérést a <a href=\"admin."
796
- "php?page=woocommerce_settings&tab=integration&section=google_analytics"
797
- "\">WooCommerce beállításokban</a> a Google Analytics ID mező üresen "
798
- "hagyásával, ha a Google Tag Manager tárolón belül Google Analytics mérést "
799
- "használ!"
800
-
801
- msgid ""
802
- "Notice: you should deactivate the plugin \"WooCommerce Google Analytics "
803
- "Integration\" if you are using Google Analytics tags inside Google Tag "
804
- "Manager!"
805
- msgstr ""
806
- "Megjegyzés: érdemes kikapcsolni a \"WooCommerce Google Analytics Integration"
807
- "\" plugint, ha Google Analytics címkéket használ a Google Tag Manager "
808
- "tárolóján belül!"
809
-
810
- msgid ""
811
- "Notice: you should deactivate the plugin \"Google Analytics for WordPress by "
812
- "Yoast\" if you are using Google Analytics tags inside Google Tag Manager!"
813
- msgstr ""
814
- "Megjegyzés: érdemes kikapcsolni a \"Google Analytics for WordPress by Yoast"
815
- "\" plugint, ha Google Analytics címkéket használ a Google Tag Manager "
816
- "tárolóján belül!"
817
-
818
- msgid "Select which temperature units you would like to use."
819
- msgstr "Válassza ki, milyen hőmérsékleti egységet szeretne használni."
820
-
821
- msgid "Logged in user ID"
822
- msgstr "Felhasználó azonosítója"
823
-
824
- msgid "Check this option to include the ID of the logged in user."
825
- msgstr ""
826
- "Kapcsolja be ezt a beállítást, ha szeretné látni a bejelentkezett "
827
- "felhasználó egyedi azonosítóját."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
public/frontend.php CHANGED
@@ -33,7 +33,7 @@ if ( !function_exists( "getallheaders") ) {
33
  }
34
 
35
  function gtm4wp_add_basic_datalayer_data( $dataLayer ) {
36
- global $current_user, $wp_query, $gtm4wp_options;
37
 
38
  if ( $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_LOGGEDIN ] ) {
39
  if ( is_user_logged_in() ) {
@@ -44,7 +44,7 @@ function gtm4wp_add_basic_datalayer_data( $dataLayer ) {
44
  }
45
 
46
  if ( $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_USERROLE ] ) {
47
- get_currentuserinfo();
48
  $dataLayer["visitorType"] = ( empty( $current_user->roles[0] ) ? "visitor-logged-out" : $current_user->roles[0] );
49
  }
50
 
@@ -205,6 +205,10 @@ function gtm4wp_add_basic_datalayer_data( $dataLayer ) {
205
  $dataLayer["postCountTotal"] = (int) $wp_query->found_posts;
206
  }
207
 
 
 
 
 
208
  if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_ENABLE ] > 0 ) {
209
  $_gtmrestrictlistitems = array();
210
 
@@ -397,7 +401,7 @@ function gtm4wp_get_the_gtm_tag() {
397
  $_gtm_tag .= '
398
  <noscript><iframe src="//www.googletagmanager.com/ns.html?id=' . $one_gtm_code . '"
399
  height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
400
- <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
401
  new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
402
  j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
403
  \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
@@ -445,10 +449,6 @@ function gtm4wp_enqueue_scripts() {
445
  wp_enqueue_script( "gtm4wp-social-actions", $gtp4wp_plugin_url . "js/gtm4wp-social-tracker.js", array( "jquery" ), GTM4WP_VERSION, false );
446
  }
447
 
448
- if ( isset ( $GLOBALS["woocommerce"] ) ) {
449
- require_once( dirname( __FILE__ ) . "/../integration/woocommerce.php" );
450
- }
451
-
452
  if ( $gtm4wp_options[ GTM4WP_OPTION_EVENTS_YOUTUBE ] ) {
453
  require_once( dirname( __FILE__ ) . "/../integration/youtube.php" );
454
  }
@@ -487,7 +487,7 @@ function gtm4wp_wp_header_begin() {
487
 
488
  $_gtm_header_content = '
489
  <!-- Google Tag Manager for WordPress by DuracellTomi - http://duracelltomi.com -->
490
- <script type="text/javascript">
491
  var gtm4wp_datalayer_name = "' . $gtm4wp_datalayer_name . '";
492
  var ' . $gtm4wp_datalayer_name . ' = ' . $gtm4wp_datalayer_name . ' || []';
493
 
@@ -516,7 +516,7 @@ function gtm4wp_wp_header_end() {
516
  if ( $gtm4wp_options[ GTM4WP_OPTION_GTM_CODE ] != "" ) {
517
  $_gtm_tag .= '
518
  <!-- Google Tag Manager for WordPress by DuracellTomi -->
519
- <script type="text/javascript">';
520
 
521
  $gtm4wp_datalayer_data = array();
522
  $gtm4wp_datalayer_data = (array) apply_filters( GTM4WP_WPFILTER_COMPILE_DATALAYER, $gtm4wp_datalayer_data );
@@ -538,12 +538,18 @@ function gtm4wp_wp_header_end() {
538
  gtm4wp_track_downloads( "' . str_replace( '"', '', $gtm4wp_options[ GTM4WP_OPTION_EVENTS_DWLEXT ] ) . '" );
539
  });';
540
  }
541
- //var_dump($gtm4wp_datalayer_data);
 
 
 
 
 
 
542
  $_gtm_tag .= '
543
  ' . $gtm4wp_datalayer_name . '.push(' . str_replace(
544
  array( '"-~-', '-~-"' ),
545
  array( "", "" ),
546
- json_encode( $gtm4wp_datalayer_data )
547
  ) . ');';
548
 
549
  $_gtm_tag .= '
@@ -578,3 +584,7 @@ add_action( "body_open", "gtm4wp_wp_body_open" );
578
 
579
  // compatibility with existing themes that natively support code injection after opening body tag
580
  add_action( "genesis_before", "gtm4wp_wp_body_open" );
 
 
 
 
33
  }
34
 
35
  function gtm4wp_add_basic_datalayer_data( $dataLayer ) {
36
+ global $wp_query, $gtm4wp_options;
37
 
38
  if ( $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_LOGGEDIN ] ) {
39
  if ( is_user_logged_in() ) {
44
  }
45
 
46
  if ( $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_USERROLE ] ) {
47
+ $current_user = wp_get_current_user();
48
  $dataLayer["visitorType"] = ( empty( $current_user->roles[0] ) ? "visitor-logged-out" : $current_user->roles[0] );
49
  }
50
 
205
  $dataLayer["postCountTotal"] = (int) $wp_query->found_posts;
206
  }
207
 
208
+ if ( $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_POSTID ] ) {
209
+ $dataLayer["postID"] = (int) get_the_ID();
210
+ }
211
+
212
  if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_ENABLE ] > 0 ) {
213
  $_gtmrestrictlistitems = array();
214
 
401
  $_gtm_tag .= '
402
  <noscript><iframe src="//www.googletagmanager.com/ns.html?id=' . $one_gtm_code . '"
403
  height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
404
+ <script data-cfasync="false">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
405
  new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
406
  j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
407
  \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
449
  wp_enqueue_script( "gtm4wp-social-actions", $gtp4wp_plugin_url . "js/gtm4wp-social-tracker.js", array( "jquery" ), GTM4WP_VERSION, false );
450
  }
451
 
 
 
 
 
452
  if ( $gtm4wp_options[ GTM4WP_OPTION_EVENTS_YOUTUBE ] ) {
453
  require_once( dirname( __FILE__ ) . "/../integration/youtube.php" );
454
  }
487
 
488
  $_gtm_header_content = '
489
  <!-- Google Tag Manager for WordPress by DuracellTomi - http://duracelltomi.com -->
490
+ <script data-cfasync="false" type="text/javascript">
491
  var gtm4wp_datalayer_name = "' . $gtm4wp_datalayer_name . '";
492
  var ' . $gtm4wp_datalayer_name . ' = ' . $gtm4wp_datalayer_name . ' || []';
493
 
516
  if ( $gtm4wp_options[ GTM4WP_OPTION_GTM_CODE ] != "" ) {
517
  $_gtm_tag .= '
518
  <!-- Google Tag Manager for WordPress by DuracellTomi -->
519
+ <script data-cfasync="false" type="text/javascript">';
520
 
521
  $gtm4wp_datalayer_data = array();
522
  $gtm4wp_datalayer_data = (array) apply_filters( GTM4WP_WPFILTER_COMPILE_DATALAYER, $gtm4wp_datalayer_data );
538
  gtm4wp_track_downloads( "' . str_replace( '"', '', $gtm4wp_options[ GTM4WP_OPTION_EVENTS_DWLEXT ] ) . '" );
539
  });';
540
  }
541
+
542
+ if ( version_compare( PHP_VERSION, '5.3.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 );
546
+ }
547
+
548
  $_gtm_tag .= '
549
  ' . $gtm4wp_datalayer_name . '.push(' . str_replace(
550
  array( '"-~-', '-~-"' ),
551
  array( "", "" ),
552
+ str_replace( "�", "-", $dl_json_data )
553
  ) . ');';
554
 
555
  $_gtm_tag .= '
584
 
585
  // compatibility with existing themes that natively support code injection after opening body tag
586
  add_action( "genesis_before", "gtm4wp_wp_body_open" );
587
+ if ( ( $GLOBALS[ "gtm4wp_options" ][ GTM4WP_OPTION_INTEGRATE_WCTRACKCLASSICEC ] || $GLOBALS[ "gtm4wp_options" ][ GTM4WP_OPTION_INTEGRATE_WCTRACKENHANCEDEC ] )
588
+ && isset ( $GLOBALS["woocommerce"] ) ) {
589
+ require_once( dirname( __FILE__ ) . "/../integration/woocommerce.php" );
590
+ }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: duracelltomi
3
  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.4
7
- Stable tag: 1.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
@@ -134,16 +134,16 @@ http://cutroni.com/blog/2012/02/21/advanced-content-tracking-with-google-analyti
134
  Google Tag Manager for WordPress can add every dataLayer variable as an AdWords remarketing custom parameter list.
135
  Using this you can create more sophisticated remarketing lists.
136
 
137
- = Blacklist & Whitelist Tag Manager tags and macros =
138
 
139
- To increase security on your website, you can whitelist and blacklist tags and macros.
140
- This means you can disable certain tags from being fired or prevent the use of certain macro types
141
  from being used regardless of your current Tag Manager setup.
142
 
143
  If your Google account is being hacked that is associated with your Google Tag Manager account,
144
  an attacker could easily execute malware on your website without accessing its code on your hosting server.
145
 
146
- By blacklisting custom HTML tags and/or custom JavaScript macros for example you can have a more secure Tag Manager container
147
  if you do not use those kind of elements.
148
 
149
  = Integration =
@@ -175,26 +175,27 @@ More integration to come!
175
  I created a step-by-step guide for this:
176
  http://duracelltomi.com/google-tag-manager-for-wordpress/how-to-articles/setup-enhanced-ecommerce-tracking
177
 
178
- = PayPal transactions in WooCommerce are not being tracked in Google Analyics =
179
 
180
- PayPal does not redirect the user back to your website by default.
 
181
  It offers the route back for your customer but it can happen that users simply close the browser
182
  before they get back to your thankyou page (aka. order received page)
183
 
184
  This means that neither Google Analyics tags or any other tags are being fired.
185
 
186
- Enable auto return in your PayPal settings. This will instruct PayPal to show a quick
187
  info page after payment and then redirect the user back to your site. This will
188
  increase the number of tracked transactions.
189
 
190
- = Why isn't there an option to blacklist tag/macro classes =
191
 
192
- Although Google recommends to blacklist tags and macros using classes, I found it is complicated for people to understand
193
- what tags and macros are being blacklisted/whitelisted automatically using classses. Therefore I decided to include
194
- individual tags and macros on the blacklist tabs.
195
 
196
- Please remember that tags are useless without macros so only blacklist macros if you are certain that you do not use them
197
- with any macro in your container.
198
 
199
  = How can I track add-to-cart events in WooCommerce =
200
 
@@ -280,6 +281,24 @@ If you or your social plugin inserts the Facebook buttons using IFRAMEs (like So
280
 
281
  == Changelog ==
282
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
283
  = 1.2 =
284
 
285
  * Fixed: subtabs on admin page now showing in certain cases
@@ -413,6 +432,10 @@ Please report all bugs found in my plugin using the [contact form on my website]
413
 
414
  == Upgrade Notice ==
415
 
 
 
 
 
416
  = 1.2 =
417
 
418
  New release with lots of fixes from the past months and new features like multiple container support!
3
  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
 
134
  Google Tag Manager for WordPress can add every dataLayer variable as an AdWords remarketing custom parameter list.
135
  Using this you can create more sophisticated remarketing lists.
136
 
137
+ = Blacklist & Whitelist Tag Manager tags and variables =
138
 
139
+ To increase security on your website, you can whitelist and blacklist tags and variables.
140
+ This means you can disable certain tags from being fired or prevent the use of certain variable types
141
  from being used regardless of your current Tag Manager setup.
142
 
143
  If your Google account is being hacked that is associated with your Google Tag Manager account,
144
  an attacker could easily execute malware on your website without accessing its code on your hosting server.
145
 
146
+ By blacklisting custom HTML tags and/or custom JavaScript variables for example you can have a more secure Tag Manager container
147
  if you do not use those kind of elements.
148
 
149
  = Integration =
175
  I created a step-by-step guide for this:
176
  http://duracelltomi.com/google-tag-manager-for-wordpress/how-to-articles/setup-enhanced-ecommerce-tracking
177
 
178
+ = PayPal / 3rd party payment gateway transactions in WooCommerce are not being tracked in Google Analyics =
179
 
180
+ PayPal and some other 3rd party payment gateways does not redirect the user back to your website by default
181
+ after a successful transaction.
182
  It offers the route back for your customer but it can happen that users simply close the browser
183
  before they get back to your thankyou page (aka. order received page)
184
 
185
  This means that neither Google Analyics tags or any other tags are being fired.
186
 
187
+ Enable auto return in your payment gateway settings. This will instruct them to show a quick
188
  info page after payment and then redirect the user back to your site. This will
189
  increase the number of tracked transactions.
190
 
191
+ = Why isn't there an option to blacklist tag/variable classes =
192
 
193
+ Although Google recommends to blacklist tags and variables using classes, I found it is complicated for people to understand
194
+ what tags and variables are being blacklisted/whitelisted automatically using classses. Therefore I decided to include
195
+ individual tags and variables on the blacklist tabs.
196
 
197
+ Please remember that tags are useless without variables so only blacklist variables if you are certain that you do not use them
198
+ with any tags in your container.
199
 
200
  = How can I track add-to-cart events in WooCommerce =
201
 
281
 
282
  == Changelog ==
283
 
284
+ = 1.3 =
285
+
286
+ Major changes to the Enhanced Ecommerce implementation of the WooCommerce integration!
287
+
288
+ * Fixed: proper tracking of list positions
289
+ * Fixed: opening product detail page in a new window/tab when user pressed the CTRL key
290
+ * Fixed: ecomm_totalvalue included the total price of the cart without taxes
291
+ * Fixed: ecomm_totalvalue does not take into account the quantity of ordered products on the order received page
292
+ * Fixed: php error message on product lists when AdWords dynamic remarketing was enabled on WooCommerce 2.6
293
+ * Fixed: added data-cfasync="false" to the GTM container code for better compatibility with CloudFlare
294
+ * Added: introducing tracking of list names (general product list, recent products list, featured products list, etc.)
295
+ * Some list names (like cross-sells) will be shown as 'General Product List'. A proposed change in WooCommerce 2.6 will solve that issue
296
+ * Added: tracking product lists in widgets
297
+ * Added: tracking checkout options (payment and shipment)
298
+ * Updated: better add-to-cart / remove-from-cart management in mini cart and while updating cart content
299
+ * Updated: added currency code to each enhanced ecommerce call so that currency reporting is OK for multi currency sites
300
+ * Updated: replaced usage of get_currentuser() to keep compatibility with WordPress 4.5
301
+
302
  = 1.2 =
303
 
304
  * Fixed: subtabs on admin page now showing in certain cases
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!
438
+
439
  = 1.2 =
440
 
441
  New release with lots of fixes from the past months and new features like multiple container support!