diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-08 21:03:36 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-08 21:03:36 +0300 |
commit | 7069fac317e503438065243ccb66e1878875d406 (patch) | |
tree | 8aa4f183c411df091375452a8866f3c7d8629a25 /app/views/layouts/_google_analytics.html.haml | |
parent | aee110e20dd81861a62ea458b5629619c32a2d0a (diff) | |
download | gitlab-ce-7069fac317e503438065243ccb66e1878875d406.tar.gz |
Add custom sing-in text & google analytics
Diffstat (limited to 'app/views/layouts/_google_analytics.html.haml')
-rw-r--r-- | app/views/layouts/_google_analytics.html.haml | 10 |
1 files changed, 10 insertions, 0 deletions
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); + })(); |