Google Analyticator - Version 4.3.1

Version Description

  • Fixes a bug that broke the widget page when a username was not entered in settings.
Download this release

Release Info

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

Code changes from version 4.3 to 4.3.1

google-analyticator.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
  /*
3
  * Plugin Name: Google Analyticator
4
- * Version: 4.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
8
  * Author URI: http://spiralwebconsulting.com/
9
  */
10
 
11
- define('GOOGLE_ANALYTICATOR_VERSION', '4.3');
12
 
13
  # Include Google Analytics Stats widget
14
  if ( function_exists('curl_init') ) {
1
  <?php
2
  /*
3
  * Plugin Name: Google Analyticator
4
+ * Version: 4.3.1
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
8
  * Author URI: http://spiralwebconsulting.com/
9
  */
10
 
11
+ define('GOOGLE_ANALYTICATOR_VERSION', '4.3.1');
12
 
13
  # Include Google Analytics Stats widget
14
  if ( function_exists('curl_init') ) {
google-analytics-stats-widget.php CHANGED
@@ -82,6 +82,9 @@ class GoogleStatsWidget extends WP_Widget
82
 
83
  # Create a new Gdata call
84
  $stats = new GoogleAnalyticsStats(stripslashes(get_option('google_stats_user')), stripslashes(get_option('google_stats_password')), true);
 
 
 
85
 
86
  # Get a list of accounts
87
  $accounts = $stats->getAnalyticsAccounts();
@@ -95,7 +98,7 @@ class GoogleStatsWidget extends WP_Widget
95
  echo '<select name="' . $this->get_field_name('account') . '" id="' . $this->get_field_id('account') . '" style="margin-top: -3px; margin-bottom: 10px;">';
96
  if ( count($accounts) > 0 )
97
  foreach ( $accounts AS $account ) { $select = ( $acnt == $account['id'] ) ? ' selected="selected"' : ''; echo '<option value="' . $account['id'] . '"' . $select . '>' . $account['title'] . '</option>'; }
98
- elseif ( $stats->checkLogin() == false )
99
  echo '<option value="">Wrong login. Set user/pass in settings.</option>';
100
  else
101
  echo '<option value="">No Analytics accounts available.</option>';
82
 
83
  # Create a new Gdata call
84
  $stats = new GoogleAnalyticsStats(stripslashes(get_option('google_stats_user')), stripslashes(get_option('google_stats_password')), true);
85
+
86
+ # Check if Google sucessfully logged in
87
+ $login = $stats->checkLogin();
88
 
89
  # Get a list of accounts
90
  $accounts = $stats->getAnalyticsAccounts();
98
  echo '<select name="' . $this->get_field_name('account') . '" id="' . $this->get_field_id('account') . '" style="margin-top: -3px; margin-bottom: 10px;">';
99
  if ( count($accounts) > 0 )
100
  foreach ( $accounts AS $account ) { $select = ( $acnt == $account['id'] ) ? ' selected="selected"' : ''; echo '<option value="' . $account['id'] . '"' . $select . '>' . $account['title'] . '</option>'; }
101
+ elseif ( $login == false )
102
  echo '<option value="">Wrong login. Set user/pass in settings.</option>';
103
  else
104
  echo '<option value="">No Analytics accounts available.</option>';
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Google Analyticator ===
2
- Contributors: cavemonkey50, spiralwebconsulting
3
- Tags: stats, google, analytics, tracking
4
  Requires at least: 2.7
5
  Tested up to: 2.8
6
- Stable tag: 4.3
7
 
8
  Adds the necessary JavaScript code to enable Google Analytics.
9
 
@@ -11,8 +11,6 @@ Adds the necessary JavaScript code to enable Google Analytics.
11
 
12
  Google Analyticator adds the necessary JavaScript code to enable Google Analytics logging on any WordPress blog. This eliminates the need to edit your template code to begin logging.
13
 
14
- View the [current release notes](http://plugins.spiralwebconsulting.com/analyticator.html#history) on our website.
15
-
16
  *Google Analyticator is brought to you for free by [Spiral Web Consulting](http://spiralwebconsulting.com/). Spiral Web Consulting is a small web development firm specializing in PHP development. Visit our website to learn more, and don't hesitate to ask us to develop your next big WordPress plugin idea.*
17
 
18
  = Features =
@@ -24,7 +22,7 @@ Google Analyticator Has the Following Features:
24
  - External link tracking of all links on the page, including links not managed by WordPress
25
  - Download link tracking
26
  - **NEW!** Support for event tracking with outbound links / downloads instead of the old pageview tracking method
27
- - Support for hiding Administrator visits without effecting Google Analytics' site overlay feature
28
  - Support for any advanced tracking code Google provides
29
  - Easily installable only requiring the user knows their UID
30
  - Allows code to be placed in the footer to ensure faster load times
@@ -38,4 +36,169 @@ Please visit [Spiral Web Consulting's forum](http://plugins.spiralwebconsulting.
38
 
39
  == Frequently Asked Questions ==
40
 
41
- Please visit [Spiral Web Consulting's forum](http://plugins.spiralwebconsulting.com/forums/viewforum.php?f=5) for the latest FAQ information.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  === Google Analyticator ===
2
+ Contributors: cavemonkey50, jesse_altman, spiralwebconsulting
3
+ Tags: stats, statistics, google, analytics, google analytics, tracking, widget
4
  Requires at least: 2.7
5
  Tested up to: 2.8
6
+ Stable tag: 4.3.1
7
 
8
  Adds the necessary JavaScript code to enable Google Analytics.
9
 
11
 
12
  Google Analyticator adds the necessary JavaScript code to enable Google Analytics logging on any WordPress blog. This eliminates the need to edit your template code to begin logging.
13
 
 
 
14
  *Google Analyticator is brought to you for free by [Spiral Web Consulting](http://spiralwebconsulting.com/). Spiral Web Consulting is a small web development firm specializing in PHP development. Visit our website to learn more, and don't hesitate to ask us to develop your next big WordPress plugin idea.*
15
 
16
  = Features =
22
  - External link tracking of all links on the page, including links not managed by WordPress
23
  - Download link tracking
24
  - **NEW!** Support for event tracking with outbound links / downloads instead of the old pageview tracking method
25
+ - Support for hiding Administrator visits without affecting Google Analytics' site overlay feature
26
  - Support for any advanced tracking code Google provides
27
  - Easily installable only requiring the user knows their UID
28
  - Allows code to be placed in the footer to ensure faster load times
36
 
37
  == Frequently Asked Questions ==
38
 
39
+ Please visit [Spiral Web Consulting's forum](http://plugins.spiralwebconsulting.com/forums/viewforum.php?f=5) for the latest FAQ information.
40
+
41
+ == Screenshots ==
42
+
43
+ Please visit the [Google Analyticator plugin page](http://plugins.spiralwebconsulting.com/analyticator.html#screenshots) for the latest screenshots.
44
+
45
+ == Changelog ==
46
+
47
+ = 4.3.1 =
48
+ * Fixes a bug that broke the widget page when a username was not entered in settings.
49
+
50
+ = 4.3 =
51
+ * Adds support for event tracking of outbound links and downloads. This is the new, recommended way to track outbound links and downloads with Analytics. Event tracking is enabled by default, so users wishing to keep using the old method should disable this option immediately. See our FAQ for more information.
52
+ * Prevents files that are stored on external servers from being tracked as both a download and an external link.
53
+ * Corrects a file extension case sensitivity issue that prevented certain download links from being tracked.
54
+ * Includes a minified version of the outbound/download tracking javascript instead of the full code.
55
+ * Fixes a text size inconstancy on the settings page.
56
+
57
+ = 4.2.3 =
58
+ * Improves error reporting with API authentication.
59
+
60
+ = 4.2.2 =
61
+ * Fixes a bug in IE8 that would not allow the widget to display in the admin properly.
62
+
63
+ = 4.2.1 =
64
+ * Fixes an issue where stable versions of WordPress 2.8 were not using the new widget API.
65
+ * Changes SimplePie include to use WordPress' version if possible, since SimplePie is included in WordPress 2.8.
66
+ * Adds version number to the Google Analyticator comment.
67
+
68
+ = 4.2 =
69
+ * Adds support for the WordPress 2.8 widget API.
70
+ * Removes Google Analyticator comment in the header that if footer tracking is enabled.
71
+
72
+ = 4.1.1 =
73
+ * Adds support for tracking code in the footer with Adsense integration.
74
+ * Corrects the widget image location for users with WordPress installed in a sub-directory.
75
+ * Prevents Google API calls when widget information is not configured.
76
+ * Supports WordPress 2.8.
77
+
78
+ = 4.1 =
79
+ * Fixes a bug that was causing the Stats Widget to display "0" in every instance.
80
+ * Adds functionality to allow a custom timeframe to be configured for the visitors widget.
81
+ * Adds a function to enable use of the widget for users not using WordPress widgets.
82
+ * Adds an option to output the code needed to link Analytics and Adsense accounts.
83
+
84
+ = 4.0.1 =
85
+ * Disables stat widget if cURL does not exist.
86
+
87
+ = 4.0 =
88
+ * Adds Google Analytics API support.
89
+ * Adds a widget that will use your Google Analytics stats to display a visitor counter on your front-end.
90
+ * Adds functionality to make widget highly customizable in regards to color and text.
91
+
92
+ = 3.0.3 =
93
+ * Fixes a Javascript error on pages that have links without href tags.
94
+
95
+ = 3.0.2 =
96
+ * Improves display of external/download links in Google Analytics (strips http/https from url).
97
+ * Fixes a PHP warning message being displayed on pages with error reporting enabled.
98
+
99
+ = 3.01 =
100
+ * Adds an option to disable admin tracking by either removing the tracking code or setting a variable.
101
+ * Removes the external tracking code from back-end admin pages that was causing conflicts with other plugins.
102
+
103
+ = 3.0 =
104
+ * Google Analyticator is now supported by Spiral Web Consulting.
105
+ * Corrects bugs preventing both external and download link tracking from working.
106
+ * Adds settings to configure the external and download link tracking prefixes.
107
+ * Changes the way disabling admin tracking works. Now uses a line of code instead of removing the tracking code altogether. This will allow features like the site overlay to work.
108
+
109
+ = 2.40 =
110
+ * Replaces the PHP-based external tracking solution with a jQuery-based one.
111
+
112
+ = 2.3 =
113
+ * Updates the Analytics script to match a change by Google. This should resolve the undefined _gat errors.
114
+
115
+ = 2.24 =
116
+ * Fixes comment author issues once and for all.
117
+ * Fixes a SVN merge issue that prevented people from getting the last update.
118
+
119
+ = 2.23 =
120
+ * Reverting last version as it caused issues.
121
+
122
+ = 2.22 =
123
+ * Improves comment author regex causing some issues in WordPress 2.7. Thanks to jdub.
124
+
125
+ = 2.21 =
126
+ * Adds WordPress 2.7 support.
127
+
128
+ = 2.2 =
129
+ * Adds an option to specify the GA script location instead of relying on Google’s auto detect code. This may resolve the _gat is undefined errors.
130
+
131
+ = 2.14 =
132
+ * Stops the external link tracking code from appearing in feeds, breaking feed validation.
133
+ * Adds compatibility for a very rare few users who could not save options.
134
+
135
+ = 2.13 =
136
+ * Stops the external link tracking code from appearing in feeds, breaking feed validation.
137
+
138
+ = 2.12 =
139
+ * Applies the new administrator level selection to outbound tracking (I forgot to that in the last release).
140
+ * Fixes a potential plugin conflict.
141
+
142
+ = 2.11 =
143
+ * Adds an option to change what Google Analyticator considers a WordPress administrator.
144
+
145
+ = 2.1 =
146
+ * Fixes a bug preventing options from being saved under WordPress 2.5.
147
+ * Updates option page to comply with WordPress 2.5 user interface changes.
148
+ * Note: Users of WordPress 2.3 may wish to stay on 2.02 as the UI will look ‘weird’ under 2.3.
149
+
150
+ = 2.02 =
151
+ * Corrects potential XHTML validation issues with external link tracking.
152
+
153
+ = 2.01 =
154
+ * Corrects XHTML validation issues with ga.js.
155
+
156
+ = 2.0 =
157
+ * Adds support for the latest version of Google Analytics’ tracking code (ga.js).
158
+ * Reverts external link/download tracking method back to writing the tracking code in the HTML source, due to the previous Javascript library no longer being support. Users of previous Google Analyticator versions may safely delete ga_external-links.js.
159
+ * Slightly modified the way extra code is handled. There are now two sections (before tracker initialization and after tracker initialization) to handle ga.js’ extra functions. Refer to Google Analytics’ support documentation for use of these sections.
160
+
161
+ = 1.54 =
162
+ * Corrects problem where certain installation of WordPress do not have the user level value.
163
+
164
+ = 1.53 =
165
+ * Finally fixes the “Are you sure?” bug some users experience.
166
+
167
+ = 1.52 =
168
+ * Addresses compatibility issue with other JavaScript plugins.
169
+
170
+ = 1.5 =
171
+ * Now using JavaScript solution for keeping track of external links instead of the current URL rewrite method. JavaScript library is courtesy of Terenzani.it.
172
+ * Note: Google Analyticator is now in a folder. If upgrading from a version less than 1.5, delete google-analyticator.php from your /wp-content/plugins/ folder before proceeding.
173
+
174
+ = 1.42 =
175
+ * Fixes a bug where outbound link tracking would be disabled if the tracking code was in the footer.
176
+
177
+ = 1.41 =
178
+ * Added an option to insert the tracking code in the footer instead of the header.
179
+
180
+ = 1.4 =
181
+ * Adds support for download tracking.
182
+
183
+ = 1.31 =
184
+ * Fixes a small bug with backslashes in the additional tracking code box.
185
+
186
+ = 1.3 =
187
+ * WordPress 2.0 beta is now supported.
188
+ * Missing options page bug is finally fixed.
189
+
190
+ = 1.2 =
191
+ * Added support for outbound links.
192
+
193
+ = 1.12 =
194
+ * Fixing missing option button page bug.
195
+
196
+ = 1.11 =
197
+ * Fixed a bug where options page would sometimes not display.
198
+
199
+ = 1.1 =
200
+ * Added an option to disable administrator logging.
201
+ * Added an option to add any additional tracking code that Google has.
202
+
203
+ = 1.0 =
204
+ * Initial release.