Plugin Directory

Changeset 822493


Ignore:
Timestamp:
12/15/2013 03:08:08 PM (12 years ago)
Author:
hoyce
Message:

Version 1.1.1 with a bug fix for excluding Administrator visits and compatibility test for WordPress 3.8

Location:
google-analytics-injector/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • google-analytics-injector/trunk/google-analytics-injector.php

    r531460 r822493  
    55 Description: Google Analytics Injector plugin let you inject Google Analytics tracking code into your website to
    66 collect statistics about your visitors. Just add your tracking code from Google Analytics to start the tracking.
    7  Version: 1.1
     7 Version: 1.1.1
    88 Author: Niklas Olsson
    99 Author URI: http://www.geckosolutions.se
     
    4444 */
    4545function inject_google_analytics_code() {
    46   if (!is_admin() && get_option('ua_tracking_code') != "") {
    47     echo "<!-- Google Analytics Injector 1.1 from http://www.geckosolutions.se/blog/wordpress-plugins/ -->\n";
     46  if (!current_user_can('edit_posts') && get_option('ua_tracking_code') != "") {
     47    echo "<!-- Google Analytics Injector from http://www.geckosolutions.se/blog/wordpress-plugins/ -->\n";
    4848    echo get_google_analytics_tracking_code(get_option('ua_tracking_code'), get_option('site_restriction_url'));
    49     echo "\n<!-- / Google Analytics Injector -->\n";
     49    echo "\n<!-- Google Analytics Injector -->\n";
    5050  }
    5151}
  • google-analytics-injector/trunk/readme.txt

    r531460 r822493  
    33Contributors: hoyce
    44Donate link:
    5 Tags: google, google analytics, analytics, statistics, stats, javascript
     5Tags: google, google analytics, analytics, statistics, stats, javascript, web analytics,
    66Requires at least: 3.0
    7 Tested up to: 3.3.1
    8 Stable tag: 1.0.1
     7Tested up to: 3.8
     8Stable tag: 1.1.1
    99
    1010== Description ==
     
    4242= 1.1 =
    4343* Updated the validation function for validating the Google Analytics tracking code.
     44
     45= 1.1.1 =
     46* The plugin now exclude the visits from the Administrator. (bug fix)
     47* Tested stability up to Wordpress 3.8
Note: See TracChangeset for help on using the changeset viewer.