From a6531be6c5b6ebbbdc4fc09df44dedbffa8f0b4a Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 27 Aug 2013 21:54:46 +0000 Subject: [PATCH] Added Google Analytics code --- .../Resources/views/Default/front_base.html.twig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/GergelyPolonkai/FrontBundle/Resources/views/Default/front_base.html.twig b/src/GergelyPolonkai/FrontBundle/Resources/views/Default/front_base.html.twig index 71806d7..97548ec 100644 --- a/src/GergelyPolonkai/FrontBundle/Resources/views/Default/front_base.html.twig +++ b/src/GergelyPolonkai/FrontBundle/Resources/views/Default/front_base.html.twig @@ -95,6 +95,14 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); + + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); + + ga('create', 'UA-43569023-1', 'polonkai.eu'); + ga('send', 'pageview');