Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
17f66486
Commit
17f66486
authored
May 24, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix google analytics setting being ignored
parent
63c6f30a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/views/layouts/_google_analytics.html.haml
app/views/layouts/_google_analytics.html.haml
+1
-1
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+1
-1
No files found.
app/views/layouts/_google_analytics.html.haml
View file @
17f66486
: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
()
{
...
...
app/views/layouts/_head.html.haml
View file @
17f66486
...
@@ -9,7 +9,7 @@
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment