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
927df096
Commit
927df096
authored
Nov 08, 2015
by
Jeroen van Baarsen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9813 from axilleas/fix_piwik_template
Update piwik template
parents
bf76df22
b8cd6f9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
app/views/layouts/_piwik.html.haml
app/views/layouts/_piwik.html.haml
+10
-8
No files found.
app/views/layouts/_piwik.html.haml
View file @
927df096
<!-- Piwik -->
:javascript
:javascript
var
_paq
=
_paq
||
[];
var
_paq
=
_paq
||
[];
_paq
.
push
([
"
trackPageView
"
]);
_paq
.
push
([
'
trackPageView
'
]);
_paq
.
push
([
"
enableLinkTracking
"
]);
_paq
.
push
([
'
enableLinkTracking
'
]);
(
function
()
{
(
function
()
{
var
u
=
((
"
https:
"
==
document
.
location
.
protocol
)
?
"
https
"
:
"
http
"
)
+
"
:
//
#{
extra_config
.
piwik_url
}
/
"
;
var
u
=
"
//
#{
extra_config
.
piwik_url
}
/
"
;
_paq
.
push
([
"
setTrackerUrl
"
,
u
+
"
piwik.php
"
]);
_paq
.
push
([
'
setTrackerUrl
'
,
u
+
'
piwik.php
'
]);
_paq
.
push
([
"
setSiteId
"
,
"
#{
extra_config
.
piwik_site_id
}
"
]);
_paq
.
push
([
'
setSiteId
'
,
#{
extra_config
.
piwik_site_id
}
]);
var
d
=
document
,
g
=
d
.
createElement
(
"
script
"
),
s
=
d
.
getElementsByTagName
(
"
script
"
)[
0
];
g
.
type
=
"
text/javascript
"
;
var
d
=
document
,
g
=
d
.
createElement
(
'
script
'
),
s
=
d
.
getElementsByTagName
(
'
script
'
)[
0
]
;
g
.
defer
=
true
;
g
.
async
=
true
;
g
.
src
=
u
+
"
piwik.js
"
;
s
.
parentNode
.
insertBefore
(
g
,
s
);
g
.
type
=
'
text/javascript
'
;
g
.
async
=
true
;
g
.
defer
=
true
;
g
.
src
=
u
+
'
piwik.js
'
;
s
.
parentNode
.
insertBefore
(
g
,
s
);
})();
})();
<noscript><p><img
src=
"//
#{
extra_config
.
piwik_url
}
/piwik.php?idsite=
#{
extra_config
.
piwik_site_id
}
"
style=
"border:0;"
alt=
""
/></p></noscript>
<!-- End Piwik Code -->
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