Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[ANALYTICS] Allow raw versions of url

  • Loading branch information...
commit 14b30dba75a9a140abaa1a28ee25e2e61781b09b 1 parent f569cb8
@matthewfitz matthewfitz authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 Resources/views/Analytics/async.html.twig
View
6 Resources/views/Analytics/async.html.twig
@@ -58,12 +58,12 @@ if ( _gaq == null || typeof(_gaq) != 'array') { var _gaq = window._gaq = []; }
{% endif %}
{% if google_analytics.hasCustomPageView %}
- _gaq.push(['{{ tracker.name }}._trackPageview', '{{ google_analytics.getCustomPageView() }}']);
+ _gaq.push(['{{ tracker.name }}._trackPageview', '{{ google_analytics.getCustomPageView() | raw }}']);
{% else %}
if (window.location.hash) {
- _gaq.push(['{{ tracker.name }}._trackPageview', '{{ google_analytics.getRequestUri() }}'+window.location.hash]);
+ _gaq.push(['{{ tracker.name }}._trackPageview', '{{ google_analytics.getRequestUri() | raw }}'+window.location.hash]);
} else {
- _gaq.push(['{{ tracker.name }}._trackPageview', '{{ google_analytics.getRequestUri() }}']);
+ _gaq.push(['{{ tracker.name }}._trackPageview', '{{ google_analytics.getRequestUri() | raw }}']);
}
{% endif %}
Please sign in to comment.
Something went wrong with that request. Please try again.