Google Analyticator - Version 6.4.7.3

Version Description

  • Bug fix: Test data left in place of Domain name / UID dropdown
Download this release

Release Info

Developer VideoUserManuals
Plugin Icon 128x128 Google Analyticator
Version 6.4.7.3
Comparing to
See all releases

Code changes from version 6.4.7.2 to 6.4.7.3

Files changed (3) hide show
  1. google-analyticator.php +19 -9
  2. index.png +0 -0
  3. readme.txt +4 -1
google-analyticator.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
* Plugin Name: Google Analyticator
4
- * Version: 6.4.7.2
5
* Plugin URI: http://www.videousermanuals.com/google-analyticator/?utm_campaign=analyticator&utm_medium=plugin&utm_source=readme-txt
6
* Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin you need to authenticate with Google, then select your domain and you're set.
7
* Author: Video User Manuals Pty Ltd
@@ -9,7 +9,7 @@
9
* Text Domain: google-analyticator
10
*/
11
12
- define('GOOGLE_ANALYTICATOR_VERSION', '6.4.7.2');
13
14
define('GOOGLE_ANALYTICATOR_CLIENTID', '1007949979410.apps.googleusercontent.com');
15
define('GOOGLE_ANALYTICATOR_CLIENTSECRET', 'q06U41XDXtzaXD14E-KO1hti'); //don't worry - this don't need to be secret in our case
@@ -306,20 +306,27 @@ function ga_options_page() {
306
307
update_option('ga_defaults', 'no');
308
309
310
- // Update the status
311
$ga_status = wp_filter_kses( $_POST[key_ga_status] );
312
if (($ga_status != ga_enabled) && ($ga_status != ga_disabled))
313
$ga_status = ga_status_default;
314
update_option(key_ga_status, $ga_status);
315
316
- // Update Hiding UID
317
- $ga_disable_gasites = wp_filter_kses( $_POST[key_ga_disable_gasites] );
318
319
- if (!$ga_disable_gasites)
320
$ga_disable_gasites = ga_disable_gasites_default;
321
322
- update_option(key_ga_disable_gasites, $ga_disable_gasites);
323
324
// Update the Analytic Snippet
325
//define("key_ga_analytic_snippet", "ga_analytic_snippet", true);
@@ -497,7 +504,7 @@ if(!$addons){?>
497
</tr>
498
<tr id="ga_ajax_accounts">
499
<th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_uid; ?>">
500
- <?php _e('Google Analytics UID', 'google-analyticator'); ?>
501
:</label>
502
</th>
503
<td>
@@ -526,6 +533,9 @@ if(!$addons){?>
526
527
echo '</select>';
528
529
else:
530
531
echo '<input type="text" name="'.key_ga_uid.'" value="'. get_option( key_ga_uid ) .'" />';
@@ -534,7 +544,7 @@ if(!$addons){?>
534
?><br />
535
<input type="checkbox" name="<?php echo key_ga_disable_gasites?>" id="<?php echo key_ga_disable_gasites?>"<?php if(get_option(key_ga_disable_gasites) == ga_enabled){?> checked="checked"<?php }?> /> <?php _e('Hide Google Analytics UID after saving', 'google-analyticator'); ?>
536
<?php }else{
537
- ?>Video User Manuals - To change this, you must <a href="<?php echo admin_url('/options-general.php?page=ga_reset'); ?>">deauthorize and reset the plugin</a>
538
<input type="hidden" name="<?php echo key_ga_disable_gasites?>" value="<?php echo ga_enabled?>" /><input type="hidden" name="<?php echo key_ga_uid?>" value="<?php echo get_option(key_ga_uid)?>" />
539
<?php
540
}?>
1
<?php
2
/*
3
* Plugin Name: Google Analyticator
4
+ * Version: 6.4.7.3
5
* Plugin URI: http://www.videousermanuals.com/google-analyticator/?utm_campaign=analyticator&utm_medium=plugin&utm_source=readme-txt
6
* Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin you need to authenticate with Google, then select your domain and you're set.
7
* Author: Video User Manuals Pty Ltd
9
* Text Domain: google-analyticator
10
*/
11
12
+ define('GOOGLE_ANALYTICATOR_VERSION', '6.4.7.3');
13
14
define('GOOGLE_ANALYTICATOR_CLIENTID', '1007949979410.apps.googleusercontent.com');
15
define('GOOGLE_ANALYTICATOR_CLIENTSECRET', 'q06U41XDXtzaXD14E-KO1hti'); //don't worry - this don't need to be secret in our case
306
307
update_option('ga_defaults', 'no');
308
309
+ // Get our domains array, and match the UID to the value
310
+ $domains = stripslashes( $_POST['ga_domain_names'] );
311
+ $all_domains = unserialize( $domains );
312
+ update_option( 'ga_domain_name', $all_domains[ $_POST[key_ga_uid] ] );
313
314
+ // Update the status
315
$ga_status = wp_filter_kses( $_POST[key_ga_status] );
316
if (($ga_status != ga_enabled) && ($ga_status != ga_disabled))
317
$ga_status = ga_status_default;
318
update_option(key_ga_status, $ga_status);
319
320
+ // Update Hiding UID (if set)
321
+ if( isset( $_POST[key_ga_disable_gasites] ) ) {
322
+
323
+ $ga_disable_gasites = wp_filter_kses( $_POST[key_ga_disable_gasites] );
324
325
+ if (!$ga_disable_gasites)
326
$ga_disable_gasites = ga_disable_gasites_default;
327
328
+ update_option(key_ga_disable_gasites, $ga_disable_gasites);
329
+ }
330
331
// Update the Analytic Snippet
332
//define("key_ga_analytic_snippet", "ga_analytic_snippet", true);
504
</tr>
505
<tr id="ga_ajax_accounts">
506
<th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_uid; ?>">
507
+ <?php _e('Analytics Account', 'google-analyticator'); ?>
508
:</label>
509
</th>
510
<td>
533
534
echo '</select>';
535
536
+ // Need a copy of the array, so we can store the domain name too (for visual purposes)
537
+ echo '<input type="hidden" name="ga_domain_names" value=\'' . serialize( $uids ) . '\' />';
538
+
539
else:
540
541
echo '<input type="text" name="'.key_ga_uid.'" value="'. get_option( key_ga_uid ) .'" />';
544
?><br />
545
<input type="checkbox" name="<?php echo key_ga_disable_gasites?>" id="<?php echo key_ga_disable_gasites?>"<?php if(get_option(key_ga_disable_gasites) == ga_enabled){?> checked="checked"<?php }?> /> <?php _e('Hide Google Analytics UID after saving', 'google-analyticator'); ?>
546
<?php }else{
547
+ ?><?php echo get_option( 'ga_domain_name' ); ?> - To change this, you must <a href="<?php echo admin_url('/options-general.php?page=ga_reset'); ?>">deauthorize and reset the plugin</a>
548
<input type="hidden" name="<?php echo key_ga_disable_gasites?>" value="<?php echo ga_enabled?>" /><input type="hidden" name="<?php echo key_ga_uid?>" value="<?php echo get_option(key_ga_uid)?>" />
549
<?php
550
}?>
index.png DELETED
Binary file
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: VideoUserManuals
3
Tags: stats, statistics, google, analytics, google analytics, tracking, widget
4
Requires at least: 3.2
5
Tested up to: 3.8
6
- Stable tag: 6.4.7.2
7
8
Adds the necessary JavaScript code to enable Google Analytics. Includes widgets for Analytics data display.
9
@@ -62,6 +62,9 @@ For any support issues, please use the official WordPress support forums.
62
63
== Changelog ==
64
65
= 6.4.7.2 =
66
* Ability to hide Google UID dropdown
67
* Bug fix: rename stats_init to ganalyticator_stats_init
3
Tags: stats, statistics, google, analytics, google analytics, tracking, widget
4
Requires at least: 3.2
5
Tested up to: 3.8
6
+ Stable tag: 6.4.7.3
7
8
Adds the necessary JavaScript code to enable Google Analytics. Includes widgets for Analytics data display.
9
62
63
== Changelog ==
64
65
+ = 6.4.7.3 =
66
+ * Bug fix: Test data left in place of Domain name / UID dropdown
67
+
68
= 6.4.7.2 =
69
* Ability to hide Google UID dropdown
70
* Bug fix: rename stats_init to ganalyticator_stats_init