Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
coko-website
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
coko-material
coko-website
Commits
a7c1f687
Commit
a7c1f687
authored
3 years ago
by
julientaq
Browse files
Options
Downloads
Patches
Plain Diff
added matomo
parent
2d1a515e
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
Menu order
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/layouts/base.njk
+34
-7
34 additions, 7 deletions
src/layouts/base.njk
with
34 additions
and
7 deletions
src/layouts/base.njk
+
34
−
7
View file @
a7c1f687
...
@@ -80,6 +80,36 @@
...
@@ -80,6 +80,36 @@
{% include "_partials/scripthead.njk" %}
{% include "_partials/scripthead.njk" %}
{% endblock %}
{% endblock %}
{% block matomo %}
<!-- Matomo -->
<script
type=
"text/javascript"
>
var
_paq
=
window
.
_paq
=
window
.
_paq
||
[];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq
.
push
([
"
setCookieDomain
"
,
"
*.coko.foundation
"
]);
_paq
.
push
([
'
trackPageView
'
]);
_paq
.
push
([
'
enableLinkTracking
'
]);
(
function
()
{
var
u
=
"
https://stats.coko.foundation/
"
;
_paq
.
push
([
'
setTrackerUrl
'
,
u
+
'
matomo.php
'
]);
_paq
.
push
([
'
setSiteId
'
,
'
1
'
]);
var
d
=
document
,
g
=
d
.
createElement
(
'
script
'
),
s
=
d
.
getElementsByTagName
(
'
script
'
)[
0
];
g
.
async
=
true
;
g
.
src
=
u
+
'
matomo.js
'
;
s
.
parentNode
.
insertBefore
(
g
,
s
);
})();
</script>
<noscript>
<p><img
src=
"https://stats.coko.foundation/matomo.php?idsite=1&rec=1"
style=
"border:0;"
alt=
""
/></p>
</noscript>
<!-- End Matomo Code -->
{% endblock %}
</head>
</head>
<body
class=
"{{class}} {% block bodyclass %}{% endblock %}"
>
<body
class=
"{{class}} {% block bodyclass %}{% endblock %}"
>
...
@@ -114,15 +144,15 @@
...
@@ -114,15 +144,15 @@
{% endblock %}
{% endblock %}
{% block content %}
{% block content %}
<article>
<article>
{{content | safe}}
{{content | safe}}
</article>
</article>
{% endblock %}
{% endblock %}
</main>
</main>
{% block footer %}
{% block footer %}
{% include "_partials/footer.njk" %}
{% include "_partials/footer.njk" %}
{% endblock %}
{% endblock %}
{# check instant #}
{# check instant #}
<script
src=
"//instant.page/5.1.0"
type=
"module"
integrity=
"sha384-by67kQnR+pyfy8yWP4kPO12fHKRLHZPfEsiSXR8u2IKcTdxD805MGUXBzVPnkLHw"
></script>
<script
src=
"//instant.page/5.1.0"
type=
"module"
integrity=
"sha384-by67kQnR+pyfy8yWP4kPO12fHKRLHZPfEsiSXR8u2IKcTdxD805MGUXBzVPnkLHw"
></script>
...
@@ -130,11 +160,8 @@
...
@@ -130,11 +160,8 @@
<script
type=
"module"
src=
"/js/main.js"
></script>
<script
type=
"module"
src=
"/js/main.js"
></script>
{% endblock %}
{% endblock %}
{% block printpreview %}{% endblock %}
{% block printpreview %}{% endblock %}
{% block customScripts %}
{% block customScripts %}{% endblock %}
{% endblock %}
</body>
</body>
</html>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
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