Version Description
Download this release
Release Info
Developer | StatCounter |
Plugin | StatCounter – Free Real Time Visitor Stats |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.0.1
- StatCounter-Wordpress-Plugin.php +12 -4
- readme.txt +4 -3
StatCounter-Wordpress-Plugin.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Plugin Name: Official StatCounter Plugin
|
4 |
-
* Version: 2.0
|
5 |
* Plugin URI: http://statcounter.com/
|
6 |
* Description: Adds the StatCounter tracking code to your blog. <br>To get setup: 1) Activate this plugin 2) Enter your StatCounter Project ID and Security Code in the <a href="options-general.php?page=StatCounter-Wordpress-Plugin.php"><strong>options page</strong></a>.
|
7 |
* Author: Aodhan Cullen
|
@@ -197,6 +197,8 @@ function sc_options_page() {
|
|
197 |
</p>
|
198 |
</div>
|
199 |
</form>
|
|
|
|
|
200 |
|
201 |
<?php
|
202 |
}
|
@@ -229,13 +231,18 @@ function add_statcounter() {
|
|
229 |
<?php
|
230 |
if($sc_invisible==1) {
|
231 |
echo " var sc_invisible=1;\n";
|
232 |
-
}
|
|
|
|
|
|
|
|
|
|
|
233 |
var scJsHost = (("https:" == document.location.protocol) ?
|
234 |
"https://secure." : "http://www.");
|
235 |
//-->
|
236 |
document.write("<sc"+"ript src='" +scJsHost +"statcounter.com/counter/counter.js'></"+"script>");
|
237 |
</script>
|
238 |
-
<noscript><div class="statcounter"><a title="web analytics" href="
|
239 |
<!-- End of StatCounter Code -->
|
240 |
<?php
|
241 |
}
|
@@ -251,7 +258,8 @@ function addToTags($pid){
|
|
251 |
var _statcounter = _statcounter || [];
|
252 |
_statcounter.push({"tags": {"author": "<?php the_author_meta( 'nickname', $authorId); ?>"}});
|
253 |
</script>
|
254 |
-
<?php
|
|
|
255 |
}
|
256 |
}
|
257 |
|
1 |
<?php
|
2 |
/*
|
3 |
* Plugin Name: Official StatCounter Plugin
|
4 |
+
* Version: 2.0.1
|
5 |
* Plugin URI: http://statcounter.com/
|
6 |
* Description: Adds the StatCounter tracking code to your blog. <br>To get setup: 1) Activate this plugin 2) Enter your StatCounter Project ID and Security Code in the <a href="options-general.php?page=StatCounter-Wordpress-Plugin.php"><strong>options page</strong></a>.
|
7 |
* Author: Aodhan Cullen
|
197 |
</p>
|
198 |
</div>
|
199 |
</form>
|
200 |
+
|
201 |
+
|
202 |
|
203 |
<?php
|
204 |
}
|
231 |
<?php
|
232 |
if($sc_invisible==1) {
|
233 |
echo " var sc_invisible=1;\n";
|
234 |
+
}
|
235 |
+
|
236 |
+
define('HTTPS', isset($_SERVER['HTTPS']) && filter_var($_SERVER['HTTPS'], FILTER_VALIDATE_BOOLEAN));
|
237 |
+
$protocol = defined('HTTPS') ? "https:" : "http:";
|
238 |
+
|
239 |
+
?>
|
240 |
var scJsHost = (("https:" == document.location.protocol) ?
|
241 |
"https://secure." : "http://www.");
|
242 |
//-->
|
243 |
document.write("<sc"+"ript src='" +scJsHost +"statcounter.com/counter/counter.js'></"+"script>");
|
244 |
</script>
|
245 |
+
<noscript><div class="statcounter"><a title="web analytics" href="<?php echo $protocol; ?>//statcounter.com/"><img class="statcounter" src="<?php echo $protocol; ?>//c.statcounter.com/<?php echo $sc_project; ?>/0/<?php echo $sc_security; ?>/<?php echo $sc_invisible; ?>/" alt="web analytics" /></a></div></noscript>
|
246 |
<!-- End of StatCounter Code -->
|
247 |
<?php
|
248 |
}
|
258 |
var _statcounter = _statcounter || [];
|
259 |
_statcounter.push({"tags": {"author": "<?php the_author_meta( 'nickname', $authorId); ?>"}});
|
260 |
</script>
|
261 |
+
<?php
|
262 |
+
|
263 |
}
|
264 |
}
|
265 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: Aodhan Cullen
|
|
3 |
Donate link: http://statcounter.com/
|
4 |
Tags: web, statistics, stats, hit, counter, visitor, ip, tracker, analytics
|
5 |
Requires at least: 2.0.2
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -69,6 +69,8 @@ To activate the StatCounter service for your WordPress site:
|
|
69 |
2. Using the magnify tool, you can "zoom in" on individual visitors and get a detailed report on where they are from, their system settings, and most importantly, what link reffered them to your site and their navigation path through your site.
|
70 |
|
71 |
== Changelog ==
|
|
|
|
|
72 |
|
73 |
= 2.0 =
|
74 |
StatCounter Tags supported.
|
@@ -151,4 +153,3 @@ Bug fix to prevent user entry of whitespace characters for Project ID and Securi
|
|
151 |
= 1.6.2 =
|
152 |
Upgrade to allow for fully functioning PayPal upgrade options.
|
153 |
|
154 |
-
|
3 |
Donate link: http://statcounter.com/
|
4 |
Tags: web, statistics, stats, hit, counter, visitor, ip, tracker, analytics
|
5 |
Requires at least: 2.0.2
|
6 |
+
Tested up to: 4.6
|
7 |
+
Stable tag: 2.0.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
69 |
2. Using the magnify tool, you can "zoom in" on individual visitors and get a detailed report on where they are from, their system settings, and most importantly, what link reffered them to your site and their navigation path through your site.
|
70 |
|
71 |
== Changelog ==
|
72 |
+
= 2.0.1=
|
73 |
+
security enhancements
|
74 |
|
75 |
= 2.0 =
|
76 |
StatCounter Tags supported.
|
153 |
= 1.6.2 =
|
154 |
Upgrade to allow for fully functioning PayPal upgrade options.
|
155 |
|
|