Google Analytics Dashboard for WP (GADWP) - Version 4.7.5

Version Description

  • Bug Fix: html encode single quotes for custom dimensions
Download this release

Release Info

Developer deconf
Plugin Icon 128x128 Google Analytics Dashboard for WP (GADWP)
Version 4.7.5
Comparing to
See all releases

Code changes from version 4.7.4 to 4.7.5

Files changed (3) hide show
  1. front/tracking/code-universal.php +4 -4
  2. gadwp.php +2 -2
  3. readme.txt +4 -1
front/tracking/code-universal.php CHANGED
@@ -56,19 +56,19 @@ if ($this->gadwp->config->options['ga_author_dimindex'] && (is_single() || is_pa
56
  $author_id = $post->post_author;
57
  $author_name = get_the_author_meta('display_name', $author_id);
58
  ?>
59
- ga('set', 'dimension<?php echo (int)$this->gadwp->config->options ['ga_author_dimindex']; ?>', '<?php echo $author_name; ?>');
60
  <?php
61
  }
62
  if ($this->gadwp->config->options['ga_pubyear_dimindex'] && is_single()) {
63
  global $post;
64
  $date = get_the_date('Y', $post->ID);
65
  ?>
66
- ga('set', 'dimension<?php echo (int)$this->gadwp->config->options ['ga_pubyear_dimindex']; ?>', '<?php echo $date; ?>');
67
  <?php
68
  }
69
  if ($this->gadwp->config->options['ga_category_dimindex'] && is_category()) {
70
  ?>
71
- ga('set', 'dimension<?php echo (int)$this->gadwp->config->options ['ga_category_dimindex']; ?>', '<?php echo single_tag_title(); ?>');
72
  <?php
73
  }
74
  if ($this->gadwp->config->options['ga_category_dimindex'] && is_single()) {
@@ -76,7 +76,7 @@ if ($this->gadwp->config->options['ga_category_dimindex'] && is_single()) {
76
  $categories = get_the_category($post->ID);
77
  foreach ($categories as $category) {
78
  ?>
79
- ga('set', 'dimension<?php echo (int)$this->gadwp->config->options ['ga_category_dimindex']; ?>', '<?php echo $category->name; ?>');
80
  <?php
81
  break;
82
  }
56
  $author_id = $post->post_author;
57
  $author_name = get_the_author_meta('display_name', $author_id);
58
  ?>
59
+ ga('set', 'dimension<?php echo (int)$this->gadwp->config->options ['ga_author_dimindex']; ?>', '<?php echo esc_attr($author_name); ?>');
60
  <?php
61
  }
62
  if ($this->gadwp->config->options['ga_pubyear_dimindex'] && is_single()) {
63
  global $post;
64
  $date = get_the_date('Y', $post->ID);
65
  ?>
66
+ ga('set', 'dimension<?php echo (int)$this->gadwp->config->options ['ga_pubyear_dimindex']; ?>', '<?php echo (int)$date; ?>');
67
  <?php
68
  }
69
  if ($this->gadwp->config->options['ga_category_dimindex'] && is_category()) {
70
  ?>
71
+ ga('set', 'dimension<?php echo (int)$this->gadwp->config->options ['ga_category_dimindex']; ?>', '<?php echo esc_attr(single_tag_title()); ?>');
72
  <?php
73
  }
74
  if ($this->gadwp->config->options['ga_category_dimindex'] && is_single()) {
76
  $categories = get_the_category($post->ID);
77
  foreach ($categories as $category) {
78
  ?>
79
+ ga('set', 'dimension<?php echo (int)$this->gadwp->config->options ['ga_category_dimindex']; ?>', '<?php echo esc_attr($category->name); ?>');
80
  <?php
81
  break;
82
  }
gadwp.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://deconf.com
5
  * Description: Displays Google Analytics Reports and Real-Time Statistics in your Dashboard. Automatically inserts the tracking code in every page of your website.
6
  * Author: Alin Marcu
7
- * Version: 4.7.4
8
  * Author URI: https://deconf.com
9
  */
10
 
@@ -86,7 +86,7 @@ if (! class_exists('GADWP_Manager')) {
86
 
87
  // Plugin Version
88
  if (! defined('GADWP_CURRENT_VERSION')) {
89
- define('GADWP_CURRENT_VERSION', '4.7.4');
90
  }
91
 
92
  // Plugin Path
4
  * Plugin URI: https://deconf.com
5
  * Description: Displays Google Analytics Reports and Real-Time Statistics in your Dashboard. Automatically inserts the tracking code in every page of your website.
6
  * Author: Alin Marcu
7
+ * Version: 4.7.5
8
  * Author URI: https://deconf.com
9
  */
10
 
86
 
87
  // Plugin Version
88
  if (! defined('GADWP_CURRENT_VERSION')) {
89
+ define('GADWP_CURRENT_VERSION', '4.7.5');
90
  }
91
 
92
  // Plugin Path
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://deconf.com/donate/
4
  Tags: google,analytics,google analytics,dashboard,analytics dashboard,google analytics dashboard,google analytics widget,tracking,realtime,wpmu,multisite
5
  Requires at least: 3.5
6
  Tested up to: 4.2.2
7
- Stable tag: 4.7.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -134,6 +134,9 @@ This plugin it's released under the GPLv2, you can use it free of charge on your
134
 
135
  == Changelog ==
136
 
 
 
 
137
  = 4.7.4 =
138
  - Bug Fix: Settings action unavailable on Installed Plugins screen
139
  - Enhancement: German translation updated
4
  Tags: google,analytics,google analytics,dashboard,analytics dashboard,google analytics dashboard,google analytics widget,tracking,realtime,wpmu,multisite
5
  Requires at least: 3.5
6
  Tested up to: 4.2.2
7
+ Stable tag: 4.7.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
134
 
135
  == Changelog ==
136
 
137
+ = 4.7.5 =
138
+ - Bug Fix: html encode single quotes for custom dimensions
139
+
140
  = 4.7.4 =
141
  - Bug Fix: Settings action unavailable on Installed Plugins screen
142
  - Enhancement: German translation updated