Changeset 1016952
- Timestamp:
- 10/30/2014 07:05:09 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
google-analytics-site-wide/trunk/dc-google-analytics.php
r1016734 r1016952 90 90 91 91 // 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{ 94 104 // where to put google code 95 105 if( get_site_option( 'dc-ga-location') == 'dc-ga-location-header') 96 106 add_action( 'wp_head', array( $this, 'render_ga_code' ) ); 97 107 else 98 add_action( 'wp_footer', array( $this, 'render_ga_code' ) ); 99 108 add_action( 'wp_footer', array( $this, 'render_ga_code' ) ); 100 109 } 101 110
Note: See TracChangeset
for help on using the changeset viewer.