Skip to content

Commit

Permalink
[Reporting] Add Google Analytics code to stable Sylius Demo again
Browse files Browse the repository at this point in the history
  • Loading branch information
lchrusciel committed Oct 15, 2019
1 parent f91aa33 commit 01db240
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions templates/bundles/SyliusShopBundle/layout.html.twig
Expand Up @@ -24,6 +24,17 @@
{% endblock %}

{{ sonata_block_render_event('sylius.shop.layout.head') }}
{% block analytics %}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-42730941-6"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-42730941-6');
</script>
{% endblock %}
</head>

<body class="pushable">
Expand Down

0 comments on commit 01db240

Please sign in to comment.