Plugin Directory

Changeset 1016952


Ignore:
Timestamp:
10/30/2014 07:05:09 PM (11 years ago)
Author:
dansod
Message:

buggfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • google-analytics-site-wide/trunk/dc-google-analytics.php

    r1016734 r1016952  
    9090
    9191      // check if current site is excluded
    92       if( !in_array( $search, $this->excluded_sites )){
    93        
     92      //
     93      if(!empty( $this->excluded_sites )){
     94        if( !in_array( $search, $this->excluded_sites )){
     95         
     96          // where to put google code
     97          if( get_site_option( 'dc-ga-location') == 'dc-ga-location-header')
     98            add_action( 'wp_head', array( $this, 'render_ga_code' ) );
     99          else
     100            add_action( 'wp_footer', array( $this, 'render_ga_code' ) );
     101
     102        }
     103      }else{
    94104        // where to put google code
    95105        if( get_site_option( 'dc-ga-location') == 'dc-ga-location-header')
    96106          add_action( 'wp_head', array( $this, 'render_ga_code' ) );
    97107        else
    98           add_action( 'wp_footer', array( $this, 'render_ga_code' ) );
    99 
     108          add_action( 'wp_footer', array( $this, 'render_ga_code' ) );       
    100109      }
    101110
Note: See TracChangeset for help on using the changeset viewer.