Skip to content

Commit

Permalink
Fixed issue #9444: Google analytics is not working on the survey list
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Mar 15, 2016
1 parent 6ddc238 commit ff90084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/replacements_helper.php
Expand Up @@ -623,7 +623,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
{
$_googleAnalyticsAPIKey = trim(getGlobalSetting('googleanalyticsapikey'));
}
$_googleAnalyticsStyle = (isset($thissurvey['googleanalyticsstyle']) ? $thissurvey['googleanalyticsstyle'] : '0');
$_googleAnalyticsStyle = (isset($thissurvey['googleanalyticsstyle']) ? $thissurvey['googleanalyticsstyle'] : '1');
$_googleAnalyticsJavaScript = '';

if ($_googleAnalyticsStyle != '' && $_googleAnalyticsStyle != 0 && $_googleAnalyticsAPIKey != '')
Expand Down Expand Up @@ -676,7 +676,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '$_googleAnalyticsAPIKey', 'auto'); // Replace with your property ID.
ga('create', '$_googleAnalyticsAPIKey', 'auto');
ga('send', 'pageview');
ga('send', 'pageview', '$_trackURL');
Expand Down

0 comments on commit ff90084

Please sign in to comment.