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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
d36669d8
Commit
d36669d8
authored
10 years ago
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6420 from Seklfreak/add-piwik-support
Added Piwik Integration
parents
63d0c0b9
64e4b400
Changes
3
Show 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 @
d36669d8
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<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/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
-# Atom feed
-
if
current_user
-
if
current_user
...
...
This diff is collapsed.
Click to expand it.
app/views/layouts/_piwik.html.haml
0 → 100644
View file @
d36669d8
: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
);
})();
This diff is collapsed.
Click to expand it.
config/gitlab.yml.example
View file @
d36669d8
...
@@ -217,6 +217,10 @@ production: &base
...
@@ -217,6 +217,10 @@ production: &base
## Google analytics. Uncomment if you want it
## Google analytics. Uncomment if you want it
# google_analytics_id: '_your_tracking_id'
# 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)
## Text under sign-in page (Markdown enabled)
# sign_in_text: |
# sign_in_text: |
# ![Company Logo](http://www.companydomain.com/logo.png)
# ![Company Logo](http://www.companydomain.com/logo.png)
...
...
This diff is collapsed.
Click to expand it.
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