StatCounter – Free Real Time Visitor Stats - Version 1.4

Version Description

  • Added noscript to StatCounter code - allowing non-javascript enabled visitors to be tracked.
Download this release

Release Info

Developer StatCounter
Plugin Icon StatCounter – Free Real Time Visitor Stats
Version 1.4
Comparing to
See all releases

Code changes from version 1.3 to 1.4

Files changed (2) hide show
  1. StatCounter-Wordpress-Plugin.php +5 -2
  2. readme.txt +4 -1
StatCounter-Wordpress-Plugin.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Official StatCounter Plugin
4
- * Version: 1.3
5
  * Plugin URI: http://www.statcounter.com/
6
  * Description: Adds the StatCounter tracking code to your blog. After uploading this plugin click 'Activate' (to the right) and then afterwards you must visit the <a href="options-general.php?page=StatCounter-Wordpress-Plugin.php">options page</a> and enter your StatCounter Project Info to enable logging.
7
  * Author: Aodhan Cullen
@@ -292,6 +292,8 @@ function add_statcounter() {
292
  $sc_project = get_option(key_sc_project);
293
  $sc_part = get_option(key_sc_part);
294
  $sc_security = get_option(key_sc_security);
 
 
295
  if (
296
  ( get_option( key_sc_status ) != sc_disabled && $sc_project > 0 )
297
  ) {
@@ -303,12 +305,13 @@ function add_statcounter() {
303
  var sc_partition=<?php echo $sc_part; ?>;
304
  var sc_security="<?php echo $sc_security; ?>";
305
  <?php
306
- if(get_option('sc_invisible')==1) {
307
  echo " var sc_invisible=1;\n";
308
  }?>
309
  //-->
310
  </script>
311
  <script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script>
 
312
  <!-- End of StatCounter Code -->
313
  <?php
314
  }
1
  <?php
2
  /*
3
  * Plugin Name: Official StatCounter Plugin
4
+ * Version: 1.4
5
  * Plugin URI: http://www.statcounter.com/
6
  * Description: Adds the StatCounter tracking code to your blog. After uploading this plugin click 'Activate' (to the right) and then afterwards you must visit the <a href="options-general.php?page=StatCounter-Wordpress-Plugin.php">options page</a> and enter your StatCounter Project Info to enable logging.
7
  * Author: Aodhan Cullen
292
  $sc_project = get_option(key_sc_project);
293
  $sc_part = get_option(key_sc_part);
294
  $sc_security = get_option(key_sc_security);
295
+ $sc_invisible = 0;
296
+ $sc_invisible = get_option('sc_invisible');
297
  if (
298
  ( get_option( key_sc_status ) != sc_disabled && $sc_project > 0 )
299
  ) {
305
  var sc_partition=<?php echo $sc_part; ?>;
306
  var sc_security="<?php echo $sc_security; ?>";
307
  <?php
308
+ if($sc_invisible==1) {
309
  echo " var sc_invisible=1;\n";
310
  }?>
311
  //-->
312
  </script>
313
  <script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script>
314
+ <noscript><div class="statcounter"><a title="web analytics" href="http://www.statcounter.com/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/<?php echo $sc_project; ?>/0/<?php echo $sc_security; ?>/<?php echo $sc_invisible; ?>/" alt="web analytics" ></a></div></noscript>
315
  <!-- End of StatCounter Code -->
316
  <?php
317
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.statcounter.com/
4
  Tags: web, statistics, stats, hit, counter, visitor, ip, tracker, analytics
5
  Requires at least: 2.0.2
6
  Tested up to: 2.9.2
7
- Stable tag: 1.3
8
 
9
  StatCounter.com powered real-time detailed stats about the visitors to your blog.
10
 
@@ -77,6 +77,9 @@ To activate the StatCounter service for your WordPress site:
77
 
78
  == Changes ==
79
 
 
 
 
80
  = 1.3 =
81
  * Added counter position option. Allows you to specify the position of the counter in the header or footer.
82
  * Added 'forced invisibility' option. Allows you to enable an invisible counter without logging into your StatCounter account.
4
  Tags: web, statistics, stats, hit, counter, visitor, ip, tracker, analytics
5
  Requires at least: 2.0.2
6
  Tested up to: 2.9.2
7
+ Stable tag: 1.4
8
 
9
  StatCounter.com powered real-time detailed stats about the visitors to your blog.
10
 
77
 
78
  == Changes ==
79
 
80
+ = 1.4 =
81
+ * Added noscript to StatCounter code - allowing non-javascript enabled visitors to be tracked.
82
+
83
  = 1.3 =
84
  * Added counter position option. Allows you to specify the position of the counter in the header or footer.
85
  * Added 'forced invisibility' option. Allows you to enable an invisible counter without logging into your StatCounter account.