Version Description
Download this release
Release Info
Developer | cavemonkey50 |
Plugin | Google Analyticator |
Version | 3.0.2 |
Comparing to | |
See all releases |
Code changes from version 3.01 to 3.0.2
- external-tracking.js +3 -2
- google-analyticator.php +2 -1
- readme.txt +2 -2
external-tracking.js
CHANGED
@@ -3,6 +3,7 @@ jQuery(document).ready(function() {
|
|
3 |
jQuery('a').each(function() {
|
4 |
var a = jQuery(this);
|
5 |
var href = a.attr('href');
|
|
|
6 |
var hrefArray = href.split('.').reverse();
|
7 |
var extension = hrefArray[0];
|
8 |
|
@@ -10,7 +11,7 @@ jQuery(document).ready(function() {
|
|
10 |
if ( ( href.match(/^http/) ) && ( !href.match(document.domain) ) ) {
|
11 |
// Add the tracking code
|
12 |
a.click(function() {
|
13 |
-
pageTracker._trackPageview(outboundPrefix +
|
14 |
});
|
15 |
}
|
16 |
|
@@ -18,7 +19,7 @@ jQuery(document).ready(function() {
|
|
18 |
if (jQuery.inArray(extension,fileTypes) != -1) {
|
19 |
// Add the tracking code
|
20 |
a.click(function() {
|
21 |
-
pageTracker._trackPageview(downloadsPrefix +
|
22 |
});
|
23 |
}
|
24 |
});
|
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 |
|
11 |
if ( ( href.match(/^http/) ) && ( !href.match(document.domain) ) ) {
|
12 |
// Add the tracking code
|
13 |
a.click(function() {
|
14 |
+
pageTracker._trackPageview(outboundPrefix + url);
|
15 |
});
|
16 |
}
|
17 |
|
19 |
if (jQuery.inArray(extension,fileTypes) != -1) {
|
20 |
// Add the tracking code
|
21 |
a.click(function() {
|
22 |
+
pageTracker._trackPageview(downloadsPrefix + url);
|
23 |
});
|
24 |
}
|
25 |
});
|
google-analyticator.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Plugin Name: Google Analyticator
|
4 |
-
* Version: 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
|
@@ -519,6 +519,7 @@ function add_google_analytics() {
|
|
519 |
|
520 |
// Include the file types to track
|
521 |
$extensions = explode(',', stripslashes(get_option(key_ga_downloads)));
|
|
|
522 |
foreach ( $extensions AS $extension )
|
523 |
$ext .= "'$extension',";
|
524 |
$ext = substr($ext, 0, -1);
|
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
|
519 |
|
520 |
// Include the file types to track
|
521 |
$extensions = explode(',', stripslashes(get_option(key_ga_downloads)));
|
522 |
+
$ext = "";
|
523 |
foreach ( $extensions AS $extension )
|
524 |
$ext .= "'$extension',";
|
525 |
$ext = substr($ext, 0, -1);
|
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.
|
7 |
|
8 |
Adds the necessary JavaScript code to enable Google Analytics.
|
9 |
|
@@ -26,7 +26,7 @@ Google Analyticator Has the Following Features:
|
|
26 |
- Allows code to be placed in the footer to ensure faster load times
|
27 |
- Complete control over options; disable any feature if needed
|
28 |
|
29 |
-
For more information,
|
30 |
|
31 |
== Installation ==
|
32 |
|
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 |
|
26 |
- Allows code to be placed in the footer to ensure faster load times
|
27 |
- Complete control over options; disable any feature if needed
|
28 |
|
29 |
+
For more information, visit the [Google Analyticator plugin page](http://plugins.spiralwebconsulting.com/analyticator.html).
|
30 |
|
31 |
== Installation ==
|
32 |
|