Google Analyticator - Version 4.0.1

Version Description

Download this release

Release Info

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

Code changes from version 4.0 to 4.0.1

Files changed (2) hide show
  1. google-analyticator.php +7 -3
  2. readme.txt +1 -1
google-analyticator.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Google Analyticator
4
- * Version: 4.0
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
@@ -9,8 +9,10 @@
9
  */
10
 
11
  # Include Google Analytics Stats widget
12
- require_once('google-analytics-stats.php');
13
- $google_analytics_stats = new GoogleStatsWidget();
 
 
14
 
15
  // Constants for enabled/disabled state
16
  define("ga_enabled", "enabled", true);
@@ -241,6 +243,7 @@ function ga_options_page() {
241
  </table>
242
  <h3>Advanced Settings</h3>
243
  <table class="form-table" cellspacing="2" cellpadding="5" width="100%">
 
244
  <tr valign="top">
245
  <th scope="row">
246
  <label for="google_stats_user">Google Username:</label>
@@ -259,6 +262,7 @@ function ga_options_page() {
259
  <br /><span class="setting-description">Your Google Analytics account's password. This is needed to authenticate with Google for use with the stats widget.</span>
260
  </td>
261
  </tr>
 
262
  <tr>
263
  <th width="30%" valign="top" style="padding-top: 10px;">
264
  <label for="<?php echo key_ga_admin ?>">WordPress admin logging:</label>
1
  <?php
2
  /*
3
  * Plugin Name: Google Analyticator
4
+ * Version: 4.0.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
9
  */
10
 
11
  # Include Google Analytics Stats widget
12
+ if ( function_exists('curl_init') ) {
13
+ require_once('google-analytics-stats.php');
14
+ $google_analytics_stats = new GoogleStatsWidget();
15
+ }
16
 
17
  // Constants for enabled/disabled state
18
  define("ga_enabled", "enabled", true);
243
  </table>
244
  <h3>Advanced Settings</h3>
245
  <table class="form-table" cellspacing="2" cellpadding="5" width="100%">
246
+ <?php if ( function_exists('curl_init') ) { ?>
247
  <tr valign="top">
248
  <th scope="row">
249
  <label for="google_stats_user">Google Username:</label>
262
  <br /><span class="setting-description">Your Google Analytics account's password. This is needed to authenticate with Google for use with the stats widget.</span>
263
  </td>
264
  </tr>
265
+ <?php } ?>
266
  <tr>
267
  <th width="30%" valign="top" style="padding-top: 10px;">
268
  <label for="<?php echo key_ga_admin ?>">WordPress admin logging:</label>
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: 4.0
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: 4.0.1
7
 
8
  Adds the necessary JavaScript code to enable Google Analytics.
9