From 7069fac317e503438065243ccb66e1878875d406 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 8 May 2013 21:03:36 +0300 Subject: Add custom sing-in text & google analytics --- app/views/layouts/_google_analytics.html.haml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app/views/layouts/_google_analytics.html.haml (limited to 'app/views/layouts/_google_analytics.html.haml') diff --git a/app/views/layouts/_google_analytics.html.haml b/app/views/layouts/_google_analytics.html.haml new file mode 100644 index 00000000000..1452651e1c0 --- /dev/null +++ b/app/views/layouts/_google_analytics.html.haml @@ -0,0 +1,10 @@ +:javascript + var _gaq = _gaq || []; + _gaq.push(['_setAccount', '#{gitlab_config.google_analytics_id}']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); -- cgit v1.2.1