Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed issue #13292: Google analytics script included even if GA is no…
…t set

Dev: aSurveyInfo.googleanalyticsstyle : 0, 1 or 2
Dev: aSurveyInfo.googleanalyticsapikey can not be set ?
  • Loading branch information
Shnoulle committed Feb 2, 2018
1 parent a20d36e commit 51e310a
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -14,8 +14,7 @@
This file generates the scripts for Google Analytics, as set by user in survey settings.
See: survey settings
#}

{% if aSurveyInfo.googleanalyticsapikey is defined %}
{% if aSurveyInfo.googleanalyticsapikey is defined and aSurveyInfo.googleanalyticsapikey and aSurveyInfo.googleanalyticsstyle %}
{% if aSurveyInfo.googleanalyticsstyle is defined and aSurveyInfo.googleanalyticsstyle == 1 %}
<script>
(function(i,s,o,g,r,a,m){ i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down

0 comments on commit 51e310a

Please sign in to comment.