Commit 17f664866b9f001168871c13b42ed280e609ead1

Authored by Dmitriy Zaporozhets
1 parent 63c6f30a

Fix google analytics setting being ignored

app/views/layouts/_google_analytics.html.haml
1 :javascript 1 :javascript
2 var _gaq = _gaq || []; 2 var _gaq = _gaq || [];
3 - _gaq.push(['_setAccount', '#{gitlab_config.google_analytics_id}']); 3 + _gaq.push(['_setAccount', '#{extra_config.google_analytics_id}']);
4 _gaq.push(['_trackPageview']); 4 _gaq.push(['_trackPageview']);
5 5
6 (function() { 6 (function() {
app/views/layouts/_head.html.haml
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 = csrf_meta_tags 9 = csrf_meta_tags
10 = include_gon 10 = include_gon
11 11
12 - = render 'layouts/google_analytics' if gitlab_config.has_key?('google_analytics_id') 12 + = render 'layouts/google_analytics' if extra_config.has_key?('google_analytics_id')
13 13
14 -# Atom feed 14 -# Atom feed
15 - if current_user 15 - if current_user