Permalink
Browse files

[ANALYTICS] Allow raw versions of url

  • Loading branch information...
1 parent f569cb8 commit 14b30dba75a9a140abaa1a28ee25e2e61781b09b @matthewfitz matthewfitz committed Jan 3, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 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 %}

0 comments on commit 14b30db

Please sign in to comment.