ui/twig/dashboards/default/scripts/google-analytics.html.twig line 1

Open in your IDE?
  1. <!-- GOOGLE ANALYTICS -->
  2. {% if app.environment in ['test','prod'] %}
  3.     {#
  4.     Google Analytics
  5.     https://analytics.google.com/analytics/web/?authuser=0#embed/report-home/a100457359w147400621p152203894/
  6.     #}
  7.     <script type="text/javascript">
  8.         (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  9.             (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  10.             m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  11.         })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  12.         ga('create', 'UA-100457359-1', 'auto');
  13.         ga('send', 'pageview', {
  14.             'dimension0': '{{ app.request.get('_route')|escape('js') }}'
  15.         });
  16.     </script>
  17. {% endif %}