WordPress.org

Plugin Directory

Changeset 606764


Ignore:
Timestamp:
10/01/12 23:14:27 (19 months ago)
Author:
aaroncampbell
Message:

Tag version 1.3.1

Location:
wp-google-analytics
Files:
2 edited
4 copied

Legend:

Unmodified
Added
Removed
  • wp-google-analytics/tags/1.3.1/readme.txt

    r606667 r606764  
    55Requires at least: 3.1 
    66Tested up to: 3.5 
    7 Stable tag: 1.3.0 
     7Stable tag: 1.3.1 
    88 
    99Lets you use <a href="http://analytics.google.com">Google Analytics</a> to track your WordPress site statistics 
     
    5050== Upgrade Notice == 
    5151 
     52= 1.3.1 = 
     53Fix for custom variables not being tracked 
     54 
    5255= 1.3.0 = 
    5356Move to using events for tracking 404s and outgoing links and add support for custom variables 
    5457 
    5558== Changelog == 
     59 
     60= 1.3.1 = 
     61* Fixed custom variables not being tracked 
    5662 
    5763= 1.3.0 = 
  • wp-google-analytics/tags/1.3.1/wp-google-analytics.php

    r606667 r606764  
    44 * Plugin URI: http://bluedogwebservices.com/wordpress-plugin/wp-google-analytics/ 
    55 * Description: Lets you use <a href="http://analytics.google.com">Google Analytics</a> to track your WordPress site statistics 
    6  * Version: 1.3.0 
     6 * Version: 1.3.1 
    77 * Author: Aaron D. Campbell 
    88 * Author URI: http://ran.ge/ 
     
    1111 */ 
    1212 
    13 define('WGA_VERSION', '1.3.0'); 
     13define('WGA_VERSION', '1.3.1'); 
    1414 
    1515/*  Copyright 2006  Aaron D. Campbell  (email : wp_plugins@xavisys.com) 
     
    297297        ); 
    298298 
    299         $track = array(); 
    300         if (is_404() && (!isset($wga['log_404s']) || $wga['log_404s'] != 'false')) { 
    301             // This is a 404 and we are supposed to track them 
    302             $custom_vars[] = "_gaq.push( [ '_trackEvent', '404', document.location.href, document.referrer ] );"; 
    303         } elseif (is_search() && (!isset($wga['log_searches']) || $wga['log_searches'] != 'false')) { 
    304             //Set track for searches, if it's a search, and we are supposed to 
    305             $track['data'] = $_REQUEST['s']; 
    306             $track['code'] = "search"; 
    307         } 
    308  
    309         if ( ! empty( $track ) ) { 
    310             $track['url'] = $this->_get_url( $track ); 
    311             //adjust the code that we output, account for both types of tracking 
    312             $track['url'] = esc_js( str_replace( '&', '&amp;', $track['url'] ) ); 
    313             $custom_vars[] = "_gaq.push(['_trackPageview','{$track['url']}']);"; 
    314         } else { 
    315             $custom_vars[] = "_gaq.push(['_trackPageview']);"; 
    316         } 
    317  
    318299        // Add custom variables specified by the user 
    319300        foreach( $this->_get_options( 'custom_vars', array() ) as $i => $custom_var ) { 
     
    329310                $atts[] = intval( $custom_var['scope'] ); 
    330311            $custom_vars[] = "_gaq.push([" . implode( ', ', $atts ) . "]);"; 
     312        } 
     313 
     314        $track = array(); 
     315        if (is_404() && (!isset($wga['log_404s']) || $wga['log_404s'] != 'false')) { 
     316            // This is a 404 and we are supposed to track them 
     317            $custom_vars[] = "_gaq.push( [ '_trackEvent', '404', document.location.href, document.referrer ] );"; 
     318        } elseif (is_search() && (!isset($wga['log_searches']) || $wga['log_searches'] != 'false')) { 
     319            //Set track for searches, if it's a search, and we are supposed to 
     320            $track['data'] = $_REQUEST['s']; 
     321            $track['code'] = "search"; 
     322        } 
     323 
     324        if ( ! empty( $track ) ) { 
     325            $track['url'] = $this->_get_url( $track ); 
     326            //adjust the code that we output, account for both types of tracking 
     327            $track['url'] = esc_js( str_replace( '&', '&amp;', $track['url'] ) ); 
     328            $custom_vars[] = "_gaq.push(['_trackPageview','{$track['url']}']);"; 
     329        } else { 
     330            $custom_vars[] = "_gaq.push(['_trackPageview']);"; 
    331331        } 
    332332 
  • wp-google-analytics/trunk/readme.txt

    r606667 r606764  
    55Requires at least: 3.1 
    66Tested up to: 3.5 
    7 Stable tag: 1.3.0 
     7Stable tag: 1.3.1 
    88 
    99Lets you use <a href="http://analytics.google.com">Google Analytics</a> to track your WordPress site statistics 
     
    5050== Upgrade Notice == 
    5151 
     52= 1.3.1 = 
     53Fix for custom variables not being tracked 
     54 
    5255= 1.3.0 = 
    5356Move to using events for tracking 404s and outgoing links and add support for custom variables 
    5457 
    5558== Changelog == 
     59 
     60= 1.3.1 = 
     61* Fixed custom variables not being tracked 
    5662 
    5763= 1.3.0 = 
  • wp-google-analytics/trunk/wp-google-analytics.php

    r606667 r606764  
    44 * Plugin URI: http://bluedogwebservices.com/wordpress-plugin/wp-google-analytics/ 
    55 * Description: Lets you use <a href="http://analytics.google.com">Google Analytics</a> to track your WordPress site statistics 
    6  * Version: 1.3.0 
     6 * Version: 1.3.1 
    77 * Author: Aaron D. Campbell 
    88 * Author URI: http://ran.ge/ 
     
    1111 */ 
    1212 
    13 define('WGA_VERSION', '1.3.0'); 
     13define('WGA_VERSION', '1.3.1'); 
    1414 
    1515/*  Copyright 2006  Aaron D. Campbell  (email : wp_plugins@xavisys.com) 
     
    297297        ); 
    298298 
    299         $track = array(); 
    300         if (is_404() && (!isset($wga['log_404s']) || $wga['log_404s'] != 'false')) { 
    301             // This is a 404 and we are supposed to track them 
    302             $custom_vars[] = "_gaq.push( [ '_trackEvent', '404', document.location.href, document.referrer ] );"; 
    303         } elseif (is_search() && (!isset($wga['log_searches']) || $wga['log_searches'] != 'false')) { 
    304             //Set track for searches, if it's a search, and we are supposed to 
    305             $track['data'] = $_REQUEST['s']; 
    306             $track['code'] = "search"; 
    307         } 
    308  
    309         if ( ! empty( $track ) ) { 
    310             $track['url'] = $this->_get_url( $track ); 
    311             //adjust the code that we output, account for both types of tracking 
    312             $track['url'] = esc_js( str_replace( '&', '&amp;', $track['url'] ) ); 
    313             $custom_vars[] = "_gaq.push(['_trackPageview','{$track['url']}']);"; 
    314         } else { 
    315             $custom_vars[] = "_gaq.push(['_trackPageview']);"; 
    316         } 
    317  
    318299        // Add custom variables specified by the user 
    319300        foreach( $this->_get_options( 'custom_vars', array() ) as $i => $custom_var ) { 
     
    329310                $atts[] = intval( $custom_var['scope'] ); 
    330311            $custom_vars[] = "_gaq.push([" . implode( ', ', $atts ) . "]);"; 
     312        } 
     313 
     314        $track = array(); 
     315        if (is_404() && (!isset($wga['log_404s']) || $wga['log_404s'] != 'false')) { 
     316            // This is a 404 and we are supposed to track them 
     317            $custom_vars[] = "_gaq.push( [ '_trackEvent', '404', document.location.href, document.referrer ] );"; 
     318        } elseif (is_search() && (!isset($wga['log_searches']) || $wga['log_searches'] != 'false')) { 
     319            //Set track for searches, if it's a search, and we are supposed to 
     320            $track['data'] = $_REQUEST['s']; 
     321            $track['code'] = "search"; 
     322        } 
     323 
     324        if ( ! empty( $track ) ) { 
     325            $track['url'] = $this->_get_url( $track ); 
     326            //adjust the code that we output, account for both types of tracking 
     327            $track['url'] = esc_js( str_replace( '&', '&amp;', $track['url'] ) ); 
     328            $custom_vars[] = "_gaq.push(['_trackPageview','{$track['url']}']);"; 
     329        } else { 
     330            $custom_vars[] = "_gaq.push(['_trackPageview']);"; 
    331331        } 
    332332 
Note: See TracChangeset for help on using the changeset viewer.