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
64e4b400
Commit
64e4b400
authored
Feb 23, 2014
by
Sebastian Winkler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Piwik support
parent
e868de68
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+1
-0
app/views/layouts/_piwik.html.haml
app/views/layouts/_piwik.html.haml
+12
-0
config/gitlab.yml.example
config/gitlab.yml.example
+4
-0
No files found.
app/views/layouts/_head.html.haml
View file @
64e4b400
...
...
@@ -12,6 +12,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
=
render
'layouts/google_analytics'
if
extra_config
.
has_key?
(
'google_analytics_id'
)
=
render
'layouts/piwik'
if
extra_config
.
has_key?
(
'piwik_url'
)
&&
extra_config
.
has_key?
(
'piwik_site_id'
)
-# Atom feed
-
if
current_user
...
...
app/views/layouts/_piwik.html.haml
0 → 100644
View file @
64e4b400
:javascript
var
_paq
=
_paq
||
[];
_paq
.
push
([
"
trackPageView
"
]);
_paq
.
push
([
"
enableLinkTracking
"
]);
(
function
()
{
var
u
=
((
"
https:
"
==
document
.
location
.
protocol
)
?
"
https
"
:
"
http
"
)
+
"
://
#{
extra_config
.
piwik_url
}
/
"
;
_paq
.
push
([
"
setTrackerUrl
"
,
u
+
"
piwik.php
"
]);
_paq
.
push
([
"
setSiteId
"
,
"
#{
extra_config
.
piwik_site_id
}
"
]);
var
d
=
document
,
g
=
d
.
createElement
(
"
script
"
),
s
=
d
.
getElementsByTagName
(
"
script
"
)[
0
];
g
.
type
=
"
text/javascript
"
;
g
.
defer
=
true
;
g
.
async
=
true
;
g
.
src
=
u
+
"
piwik.js
"
;
s
.
parentNode
.
insertBefore
(
g
,
s
);
})();
config/gitlab.yml.example
View file @
64e4b400
...
...
@@ -217,6 +217,10 @@ production: &base
## Google analytics. Uncomment if you want it
# google_analytics_id: '_your_tracking_id'
## Piwik analytics.
# piwik_url: '_your_piwik_url'
# piwik_site_id: '_your_piwik_site_id'
## Text under sign-in page (Markdown enabled)
# sign_in_text: |
# ![Company Logo](http://www.companydomain.com/logo.png)
...
...
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