Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux.cern.ch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
linuxsupport
websites
linux.cern.ch
Commits
59aa97ec
Commit
59aa97ec
authored
2 years ago
by
Alex Iribarren
Browse files
Options
Downloads
Plain Diff
Merge branch 'matomo' into 'master'
Add Matomo snippet for analytics See merge request
!84
parents
b9747683
12bf7ac0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!84
Add Matomo snippet for analytics
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theme/partials/header.html
+16
-0
16 additions, 0 deletions
theme/partials/header.html
with
16 additions
and
0 deletions
theme/partials/header.html
+
16
−
0
View file @
59aa97ec
...
...
@@ -123,3 +123,19 @@
</nav>
</header>
<!-- Matomo -->
<script
type=
"text/javascript"
>
var
_paq
=
window
.
_paq
=
window
.
_paq
||
[];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq
.
push
([
'
trackPageView
'
]);
_paq
.
push
([
'
enableLinkTracking
'
]);
(
function
()
{
var
u
=
"
https://webanalytics.web.cern.ch/
"
;
_paq
.
push
([
'
setTrackerUrl
'
,
u
+
'
matomo.php
'
]);
_paq
.
push
([
'
setSiteId
'
,
'
99
'
]);
var
d
=
document
,
g
=
d
.
createElement
(
'
script
'
),
s
=
d
.
getElementsByTagName
(
'
script
'
)[
0
];
g
.
type
=
'
text/javascript
'
;
g
.
async
=
true
;
g
.
src
=
u
+
'
matomo.js
'
;
s
.
parentNode
.
insertBefore
(
g
,
s
);
})();
</script>
<!-- End Matomo Code -->
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment