Google Analyticator - Version 3.0.3

Version Description

Download this release

Release Info

Developer cavemonkey50
Plugin Icon 128x128 Google Analyticator
Version 3.0.3
Comparing to
See all releases

Code changes from version 3.0.2 to 3.0.3

Files changed (3) hide show
  1. external-tracking.js +6 -1
  2. google-analyticator.php +1 -1
  3. readme.txt +1 -1
external-tracking.js CHANGED
@@ -3,7 +3,12 @@ jQuery(document).ready(function() {
3
  jQuery('a').each(function() {
4
  var a = jQuery(this);
5
  var href = a.attr('href');
6
- var url = href.replace('http://','').replace('https://','');
 
 
 
 
 
7
  var hrefArray = href.split('.').reverse();
8
  var extension = hrefArray[0];
9
 
3
  jQuery('a').each(function() {
4
  var a = jQuery(this);
5
  var href = a.attr('href');
6
+
7
+ // Check if the a tag has a href, if not, stop for the current link
8
+ if ( href == undefined )
9
+ return;
10
+
11
+ var url = href.replace('http://','').replace('https://','');
12
  var hrefArray = href.split('.').reverse();
13
  var extension = hrefArray[0];
14
 
google-analyticator.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Google Analyticator
4
- * Version: 3.0.2
5
  * Plugin URI: http://plugins.spiralwebconsulting.com/analyticator.html
6
  * Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin visit <a href="options-general.php?page=google-analyticator.php">the settings page</a> and enter your Google Analytics' UID and enable logging.
7
  * Author: Spiral Web Consulting
1
  <?php
2
  /*
3
  * Plugin Name: Google Analyticator
4
+ * Version: 3.0.3
5
  * Plugin URI: http://plugins.spiralwebconsulting.com/analyticator.html
6
  * Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin visit <a href="options-general.php?page=google-analyticator.php">the settings page</a> and enter your Google Analytics' UID and enable logging.
7
  * Author: Spiral Web Consulting
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: cavemonkey50, spiralwebconsulting
3
  Tags: stats, google, analytics, tracking
4
  Requires at least: 2.7
5
  Tested up to: 2.7
6
- Stable tag: 3.0.2
7
 
8
  Adds the necessary JavaScript code to enable Google Analytics.
9
 
3
  Tags: stats, google, analytics, tracking
4
  Requires at least: 2.7
5
  Tested up to: 2.7
6
+ Stable tag: 3.0.3
7
 
8
  Adds the necessary JavaScript code to enable Google Analytics.
9