Fix google analytics setting being ignored
This commit is contained in:
parent
63c6f30aba
commit
17f664866b
|
@ -1,6 +1,6 @@
|
||||||
:javascript
|
:javascript
|
||||||
var _gaq = _gaq || [];
|
var _gaq = _gaq || [];
|
||||||
_gaq.push(['_setAccount', '#{gitlab_config.google_analytics_id}']);
|
_gaq.push(['_setAccount', '#{extra_config.google_analytics_id}']);
|
||||||
_gaq.push(['_trackPageview']);
|
_gaq.push(['_trackPageview']);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
= include_gon
|
= include_gon
|
||||||
|
|
||||||
= render 'layouts/google_analytics' if gitlab_config.has_key?('google_analytics_id')
|
= render 'layouts/google_analytics' if extra_config.has_key?('google_analytics_id')
|
||||||
|
|
||||||
-# Atom feed
|
-# Atom feed
|
||||||
- if current_user
|
- if current_user
|
||||||
|
|
Loading…
Reference in New Issue