Version Description
- No longer track preview pages.
- Made the tracking code a bit simpler.
Download this release
Release Info
Developer | joostdevalk |
Plugin | Clicky by Yoast |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.2.3
- clicky.php +6 -4
- readme.txt +6 -1
clicky.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Clicky for WordPress
|
4 |
-
Version: 1.2.
|
5 |
Plugin URI: http://getclicky.com/goodies/#wordpress
|
6 |
Description: Integrates Clicky on your blog!
|
7 |
Author: Joost de Valk
|
@@ -244,6 +244,9 @@ function clicky_defaults() {
|
|
244 |
function clicky_script() {
|
245 |
$options = clicky_get_options();
|
246 |
|
|
|
|
|
|
|
247 |
// Bail early if current user is admin and ignore admin is true
|
248 |
if( $options['ignore_admin'] && current_user_can("manage_options") ) {
|
249 |
echo "\n<!-- ".__("Clicky tracking not shown because you're an administrator and you've configured Clicky to ignore administrators.", 'clicky')." -->\n";
|
@@ -295,9 +298,8 @@ function clicky_script() {
|
|
295 |
var clicky_site_id = <?php echo $options['site_id']; ?>;
|
296 |
(function() {
|
297 |
var s = document.createElement('script');
|
298 |
-
s.type = 'text/javascript';
|
299 |
-
s.
|
300 |
-
s.src = ( document.location.protocol == 'https:' ? 'https://static.getclicky.com' : 'http://static.getclicky.com' ) + '/js';
|
301 |
( document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0] ).appendChild( s );
|
302 |
})();
|
303 |
</script>
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Clicky for WordPress
|
4 |
+
Version: 1.2.3
|
5 |
Plugin URI: http://getclicky.com/goodies/#wordpress
|
6 |
Description: Integrates Clicky on your blog!
|
7 |
Author: Joost de Valk
|
244 |
function clicky_script() {
|
245 |
$options = clicky_get_options();
|
246 |
|
247 |
+
if ( is_preview() )
|
248 |
+
return;
|
249 |
+
|
250 |
// Bail early if current user is admin and ignore admin is true
|
251 |
if( $options['ignore_admin'] && current_user_can("manage_options") ) {
|
252 |
echo "\n<!-- ".__("Clicky tracking not shown because you're an administrator and you've configured Clicky to ignore administrators.", 'clicky')." -->\n";
|
298 |
var clicky_site_id = <?php echo $options['site_id']; ?>;
|
299 |
(function() {
|
300 |
var s = document.createElement('script');
|
301 |
+
s.type = 'text/javascript'; s.async = true;
|
302 |
+
s.src = '//static.getclicky.com/js';
|
|
|
303 |
( document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0] ).appendChild( s );
|
304 |
})();
|
305 |
</script>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://yoast.com/donate/
|
|
4 |
Tags: analytics, statistics, clicky, getclicky
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.2
|
7 |
-
Stable tag: 1.2.
|
8 |
|
9 |
Integrates the Clicky (from getClicky.com) web analytics service into your blog.
|
10 |
|
@@ -35,6 +35,11 @@ Read the authors [review of Clicky Analytics](http://yoast.com/clicky-analytics-
|
|
35 |
|
36 |
== Changelog ==
|
37 |
|
|
|
|
|
|
|
|
|
|
|
38 |
= 1.2.2 =
|
39 |
|
40 |
* Fixed error in pointing the script to in.getclicky.com instead of static.getclicky.com.
|
4 |
Tags: analytics, statistics, clicky, getclicky
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.2
|
7 |
+
Stable tag: 1.2.3
|
8 |
|
9 |
Integrates the Clicky (from getClicky.com) web analytics service into your blog.
|
10 |
|
35 |
|
36 |
== Changelog ==
|
37 |
|
38 |
+
= 1.2.3 =
|
39 |
+
|
40 |
+
* No longer track preview pages.
|
41 |
+
* Made the tracking code a bit simpler.
|
42 |
+
|
43 |
= 1.2.2 =
|
44 |
|
45 |
* Fixed error in pointing the script to in.getclicky.com instead of static.getclicky.com.
|