Skip to content

Commit

Permalink
Fixed issue #19442: Generated analytics script does not properly esca…
Browse files Browse the repository at this point in the history
…pe question group name (#3760)

Co-authored-by: Matthew Favetti <mpfavetti@ucdavis.edu>
  • Loading branch information
mfavetti and Matthew Favetti committed Mar 4, 2024
1 parent a1177cc commit 7ceb558
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -37,7 +37,7 @@
ga('create', '{{ aSurveyInfo.googleanalyticsapikey }}', 'auto');
ga('send', 'pageview');
ga('send', 'pageview', '{{ trackUrl }}');
ga('send', 'pageview', '{{ trackUrl|escape }}');
</script>
{% endif %}
{% else %}
Expand All @@ -53,7 +53,7 @@
{% if not (aSurveyInfo.googleanalyticsstyle is defined and aSurveyInfo.googleanalyticsstyle == 1) %}
{% set trackUrl = getGoogleAnalyticsTrackingUrl(aSurveyInfo.sid, aSurveyInfo.trackUrlPageName ?? '') %}
gtag('event', 'page_view', { page_title: '{{ trackUrl }}' })
gtag('event', 'page_view', { page_title: '{{ trackUrl|escape }}' })
{% endif %}
</script>
{% endif %}
Expand Down

0 comments on commit 7ceb558

Please sign in to comment.