Skip to content

Commit

Permalink
remove unused variable awesomemotive#463
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltorbert committed Sep 7, 2016
1 parent 537ed0b commit ec156fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions public/google-analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function google_analytics() {
if ( ! empty( $aioseop_options['aiosp_google_analytics_id'] ) ) {
ob_start();
$analytics = $this->universal_analytics();

echo $analytics;
if ( empty( $analytics ) ) {
?>
<script type="text/javascript">
Expand Down Expand Up @@ -161,7 +161,7 @@ function universal_analytics() {
global $aioseop_options;
$analytics = '';
if ( $this->aiosp_ga_use_universal_analytics ) {
$allow_linker = $cookie_domain = $domain = $addl_domains = $domain_list = '';
$cookie_domain = $domain = $addl_domains = $domain_list = '';
if ( ! empty( $aioseop_options['aiosp_ga_advanced_options'] ) ) {
$cookie_domain = $this->get_analytics_domain();
}
Expand All @@ -173,7 +173,6 @@ function universal_analytics() {
$domain = ", 'auto'";
}
if ( ! empty( $aioseop_options['aiosp_ga_advanced_options'] ) && ! empty( $aioseop_options['aiosp_ga_multi_domain'] ) ) {
$allow_linker = "'allowLinker': true";
if ( ! empty( $aioseop_options['aiosp_ga_addl_domains'] ) ) {
$addl_domains = trim( $aioseop_options['aiosp_ga_addl_domains'] );
$addl_domains = preg_split( '/[\s,]+/', $addl_domains );
Expand Down

0 comments on commit ec156fc

Please sign in to comment.