Google Analytics Dashboard for WP (GADWP) - Version 5.3.9

Version Description

Download this release

Release Info

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

Code changes from version 5.3.8 to 5.3.9

front/js/tracking-analytics-events.js CHANGED
@@ -1 +1 @@
1
- "use strict";var gadwpRedirectLink;var gadwpRedirectCalled=false;var gadwpDefaultPrevented=false;function gadwpRedirect(){if(gadwpRedirectCalled){return}gadwpRedirectCalled=true;if(gadwpDefaultPrevented==false){document.location.href=gadwpRedirectLink}else{gadwpDefaultPrevented=false}}function gadwp_send_event(c,d,a,b){if(gadwpUAEventsData.options.ga_with_gtag){if(b){if(gadwpUAEventsData.options.event_bouncerate){gtag("event",d,{event_category:c,event_label:a,non_interaction:1,event_callback:gadwpRedirect})}else{gtag("event",d,{event_category:c,event_label:a,event_callback:gadwpRedirect})}}else{if(gadwpUAEventsData.options.event_bouncerate){gtag("event",d,{event_category:c,event_label:a,non_interaction:1})}else{gtag("event",d,{event_category:c,event_label:a})}}}else{if(b){if(gadwpUAEventsData.options.event_bouncerate){ga("send","event",c,d,a,{nonInteraction:1,hitCallback:gadwpRedirect})}else{ga("send","event",c,d,a,{hitCallback:gadwpRedirect})}}else{if(gadwpUAEventsData.options.event_bouncerate){ga("send","event",c,d,a,{nonInteraction:1})}else{ga("send","event",c,d,a)}}}}jQuery(window).on("load",function(){if(gadwpUAEventsData.options.event_tracking){jQuery("a").filter(function(){if(typeof this.href==="string"){var a=new RegExp(".*\\.("+gadwpUAEventsData.options.event_downloads+")(\\?.*)?$");return this.href.match(a)}}).click(function(d){var b=this.getAttribute("data-vars-ga-category")||"download";var c=this.getAttribute("data-vars-ga-action")||"click";var a=this.getAttribute("data-vars-ga-label")||this.href;gadwp_send_event(b,c,a,false)});jQuery('a[href^="mailto"]').click(function(d){var b=this.getAttribute("data-vars-ga-category")||"email";var c=this.getAttribute("data-vars-ga-action")||"send";var a=this.getAttribute("data-vars-ga-label")||this.href;gadwp_send_event(b,c,a,false)});jQuery('a[href^="tel"]').click(function(d){var b=this.getAttribute("data-vars-ga-category")||"telephone";var c=this.getAttribute("data-vars-ga-action")||"call";var a=this.getAttribute("data-vars-ga-label")||this.href;gadwp_send_event(b,c,a,false)});if(gadwpUAEventsData.options.root_domain){jQuery('a[href^="http"]').filter(function(){if(typeof this.href==="string"){var a=new RegExp(".*\\.("+gadwpUAEventsData.options.event_downloads+")(\\?.*)?$")}if(a&&!this.href.match(a)){if(this.href.indexOf(gadwpUAEventsData.options.root_domain)==-1&&this.href.indexOf("://")>-1){return this.href}}}).click(function(d){gadwpRedirectCalled=false;gadwpRedirectLink=this.href;var b=this.getAttribute("data-vars-ga-category")||"outbound";var c=this.getAttribute("data-vars-ga-action")||"click";var a=this.getAttribute("data-vars-ga-label")||this.href;if(this.target!="_blank"&&gadwpUAEventsData.options.event_precision){if(d.isDefaultPrevented()){gadwpDefaultPrevented=true;gadwpRedirectCalled=false}}else{gadwpRedirectCalled=true;gadwpDefaultPrevented=false}if(this.target!="_blank"&&gadwpUAEventsData.options.event_precision){gadwp_send_event(b,c,a,true);setTimeout(gadwpRedirect,gadwpUAEventsData.options.event_timeout);return false}else{gadwp_send_event(b,c,a,false)}})}}if(gadwpUAEventsData.options.event_affiliates&&gadwpUAEventsData.options.aff_tracking){jQuery("a").filter(function(){if(gadwpUAEventsData.options.event_affiliates!=""){if(typeof this.href==="string"){var a=new RegExp("("+gadwpUAEventsData.options.event_affiliates.replace(/\//g,"/")+")");return this.href.match(a)}}}).click(function(d){gadwpRedirectCalled=false;gadwpRedirectLink=this.href;var b=this.getAttribute("data-vars-ga-category")||"affiliates";var c=this.getAttribute("data-vars-ga-action")||"click";var a=this.getAttribute("data-vars-ga-label")||this.href;if(this.target!="_blank"&&gadwpUAEventsData.options.event_precision){if(d.isDefaultPrevented()){gadwpDefaultPrevented=true;gadwpRedirectCalled=false}}else{gadwpRedirectCalled=true;gadwpDefaultPrevented=false}if(this.target!="_blank"&&gadwpUAEventsData.options.event_precision){gadwp_send_event(b,c,a,true);setTimeout(gadwpRedirect,gadwpUAEventsData.options.event_timeout);return false}else{gadwp_send_event(b,c,a,false)}})}if(gadwpUAEventsData.options.root_domain&&gadwpUAEventsData.options.hash_tracking){jQuery("a").filter(function(){if(this.href.indexOf(gadwpUAEventsData.options.root_domain)!=-1||this.href.indexOf("://")==-1){return this.hash}}).click(function(d){var b=this.getAttribute("data-vars-ga-category")||"hashmark";var c=this.getAttribute("data-vars-ga-action")||"click";var a=this.getAttribute("data-vars-ga-label")||this.href;gadwp_send_event(b,c,a,false)})}if(gadwpUAEventsData.options.event_formsubmit){jQuery('input[type="submit"], button[type="submit"]').click(function(f){var d=this;var b=d.getAttribute("data-vars-ga-category")||"form";var c=d.getAttribute("data-vars-ga-action")||"submit";var a=d.getAttribute("data-vars-ga-label")||d.name||d.value;gadwp_send_event(b,c,a,false)})}if(gadwpUAEventsData.options.ga_pagescrolldepth_tracking){jQuery.scrollDepth({percentage:true,userTiming:false,pixelDepth:false,gtmOverride:true,nonInteraction:true})}});
1
+ "use strict";var gadwpRedirectLink,gadwpRedirectCalled=!1,gadwpDefaultPrevented=!1;function gadwpRedirect(){gadwpRedirectCalled||(gadwpRedirectCalled=!0,0==gadwpDefaultPrevented?document.location.href=gadwpRedirectLink:gadwpDefaultPrevented=!1)}function gadwp_send_event(t,e,a,n){if(gadwpUAEventsData.options.ga_with_gtag){if("undefined"==typeof gtag)return;n?gadwpUAEventsData.options.event_bouncerate?gtag("event",e,{event_category:t,event_label:a,non_interaction:1,event_callback:gadwpRedirect}):gtag("event",e,{event_category:t,event_label:a,event_callback:gadwpRedirect}):gadwpUAEventsData.options.event_bouncerate?gtag("event",e,{event_category:t,event_label:a,non_interaction:1}):gtag("event",e,{event_category:t,event_label:a})}else{if("undefined"==typeof ga)return;n?gadwpUAEventsData.options.event_bouncerate?ga("send","event",t,e,a,{nonInteraction:1,hitCallback:gadwpRedirect}):ga("send","event",t,e,a,{hitCallback:gadwpRedirect}):gadwpUAEventsData.options.event_bouncerate?ga("send","event",t,e,a,{nonInteraction:1}):ga("send","event",t,e,a)}}jQuery(window).on("load",function(){gadwpUAEventsData.options.event_tracking&&(jQuery("a").filter(function(){if("string"==typeof this.href){var t=new RegExp(".*\\.("+gadwpUAEventsData.options.event_downloads+")(\\?.*)?$");return this.href.match(t)}}).click(function(t){gadwp_send_event(this.getAttribute("data-vars-ga-category")||"download",this.getAttribute("data-vars-ga-action")||"click",this.getAttribute("data-vars-ga-label")||this.href,!1)}),jQuery('a[href^="mailto"]').click(function(t){gadwp_send_event(this.getAttribute("data-vars-ga-category")||"email",this.getAttribute("data-vars-ga-action")||"send",this.getAttribute("data-vars-ga-label")||this.href,!1)}),jQuery('a[href^="tel"]').click(function(t){gadwp_send_event(this.getAttribute("data-vars-ga-category")||"telephone",this.getAttribute("data-vars-ga-action")||"call",this.getAttribute("data-vars-ga-label")||this.href,!1)}),gadwpUAEventsData.options.root_domain&&jQuery('a[href^="http"]').filter(function(){if("string"==typeof this.href)var t=new RegExp(".*\\.("+gadwpUAEventsData.options.event_downloads+")(\\?.*)?$");if(t&&!this.href.match(t)&&-1==this.href.indexOf(gadwpUAEventsData.options.root_domain)&&-1<this.href.indexOf("://"))return this.href}).click(function(t){gadwpRedirectCalled=!1,gadwpRedirectLink=this.href;var e=this.getAttribute("data-vars-ga-category")||"outbound",a=this.getAttribute("data-vars-ga-action")||"click",n=this.getAttribute("data-vars-ga-label")||this.href;if("_blank"!=this.target&&gadwpUAEventsData.options.event_precision?t.isDefaultPrevented()&&(gadwpRedirectCalled=!(gadwpDefaultPrevented=!0)):gadwpDefaultPrevented=!(gadwpRedirectCalled=!0),"_blank"!=this.target&&gadwpUAEventsData.options.event_precision)return gadwp_send_event(e,a,n,!0),setTimeout(gadwpRedirect,gadwpUAEventsData.options.event_timeout),!1;gadwp_send_event(e,a,n,!1)})),gadwpUAEventsData.options.event_affiliates&&gadwpUAEventsData.options.aff_tracking&&jQuery("a").filter(function(){if(""!=gadwpUAEventsData.options.event_affiliates&&"string"==typeof this.href){var t=new RegExp("("+gadwpUAEventsData.options.event_affiliates.replace(/\//g,"/")+")");return this.href.match(t)}}).click(function(t){gadwpRedirectCalled=!1,gadwpRedirectLink=this.href;var e=this.getAttribute("data-vars-ga-category")||"affiliates",a=this.getAttribute("data-vars-ga-action")||"click",n=this.getAttribute("data-vars-ga-label")||this.href;if("_blank"!=this.target&&gadwpUAEventsData.options.event_precision?t.isDefaultPrevented()&&(gadwpRedirectCalled=!(gadwpDefaultPrevented=!0)):gadwpDefaultPrevented=!(gadwpRedirectCalled=!0),"_blank"!=this.target&&gadwpUAEventsData.options.event_precision)return gadwp_send_event(e,a,n,!0),setTimeout(gadwpRedirect,gadwpUAEventsData.options.event_timeout),!1;gadwp_send_event(e,a,n,!1)}),gadwpUAEventsData.options.root_domain&&gadwpUAEventsData.options.hash_tracking&&jQuery("a").filter(function(){if(-1!=this.href.indexOf(gadwpUAEventsData.options.root_domain)||-1==this.href.indexOf("://"))return this.hash}).click(function(t){gadwp_send_event(this.getAttribute("data-vars-ga-category")||"hashmark",this.getAttribute("data-vars-ga-action")||"click",this.getAttribute("data-vars-ga-label")||this.href,!1)}),gadwpUAEventsData.options.event_formsubmit&&jQuery('input[type="submit"], button[type="submit"]').click(function(t){var e=this;gadwp_send_event(e.getAttribute("data-vars-ga-category")||"form",e.getAttribute("data-vars-ga-action")||"submit",e.getAttribute("data-vars-ga-label")||e.name||e.value,!1)}),gadwpUAEventsData.options.ga_pagescrolldepth_tracking&&jQuery.scrollDepth({percentage:!0,userTiming:!1,pixelDepth:!1,gtmOverride:!0,nonInteraction:!0})});
gadwp.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://exactmetrics.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: ExactMetrics
7
- * Version: 5.3.8
8
  * Author URI: https://exactmetrics.com
9
  * Text Domain: google-analytics-dashboard-for-wp
10
  * Domain Path: /languages
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) )
16
 
17
  // Plugin Version
18
  if ( ! defined( 'GADWP_CURRENT_VERSION' ) ) {
19
- define( 'GADWP_CURRENT_VERSION', '5.3.8' );
20
  }
21
 
22
  if ( ! defined( 'GADWP_ENDPOINT_URL' ) ) {
4
  * Plugin URI: https://exactmetrics.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: ExactMetrics
7
+ * Version: 5.3.9
8
  * Author URI: https://exactmetrics.com
9
  * Text Domain: google-analytics-dashboard-for-wp
10
  * Domain Path: /languages
16
 
17
  // Plugin Version
18
  if ( ! defined( 'GADWP_CURRENT_VERSION' ) ) {
19
+ define( 'GADWP_CURRENT_VERSION', '5.3.9' );
20
  }
21
 
22
  if ( ! defined( 'GADWP_ENDPOINT_URL' ) ) {
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Google Analytics Dashboard for WP by ExactMetrics (formerly GADWP) ===
2
  Contributors: chriscct7, smub
3
  Donate link: http://www.wpbeginner.com/wpbeginner-needs-your-help/
4
  Tags: analytics,google analytics,google analytics dashboard,google analytics plugin,google analytics widget,gtag
5
  Requires at least: 3.5
6
- Tested up to: 5.2
7
- Stable tag: 5.3.8
8
  Requires PHP: 5.2.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -164,8 +164,9 @@ Google Analytics Dashboard for WP it's released under the GPLv2, you can use it
164
  == Upgrade Notice ==
165
 
166
  == Changelog ==
167
-
168
- [GADWP v5.3 release notes](https://exactmetrics.com/adding-gtag-js-to-your-site/)
 
169
 
170
  = 5.3.8 =
171
  * Enhancements:
1
+ === Google Analytics Dashboard for WP by ExactMetrics (formerly GADWP) ===
2
  Contributors: chriscct7, smub
3
  Donate link: http://www.wpbeginner.com/wpbeginner-needs-your-help/
4
  Tags: analytics,google analytics,google analytics dashboard,google analytics plugin,google analytics widget,gtag
5
  Requires at least: 3.5
6
+ Tested up to: 5.3
7
+ Stable tag: 5.3.9
8
  Requires PHP: 5.2.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
164
  == Upgrade Notice ==
165
 
166
  == Changelog ==
167
+ = Bug Fixes =
168
+ * Enhancements:
169
+ * Fixes conflict with WordFence
170
 
171
  = 5.3.8 =
172
  * Enhancements: