Skip to content

Commit

Permalink
Merge pull request #36 from bkhelifi/matomo
Browse files Browse the repository at this point in the history
Add Matomo in remplacement of Google Analytics
  • Loading branch information
bkhelifi authored Oct 7, 2024
2 parents 590e4b9 + 9dac9aa commit 4c99b10
Show file tree
Hide file tree
Showing 10 changed files with 206 additions and 25 deletions.
27 changes: 25 additions & 2 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<!DOCTYPE html>
<html>

<style type="text/css" media="screen">
h2[id]::before {
display: block;
content: " ";
margin-top: -125px;
height: 125px;
}
</style>

<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110956727-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand All @@ -13,8 +22,22 @@
gtag('js', new Date());
gtag('config', 'UA-110956727-1');

</script> -->
<!-- Matomo -->
<script>
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://apcstatview.in2p3.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
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>
<!-- End Matomo Code -->

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Expand Down
28 changes: 25 additions & 3 deletions CoC.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<!DOCTYPE html>
<html>

<style type="text/css" media="screen">
h2[id]::before {
display: block;
content: " ";
margin-top: -125px;
height: 125px;
}
</style>

<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110956727-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand All @@ -13,9 +22,22 @@
gtag('js', new Date());
gtag('config', 'UA-110956727-1');


</script> -->
<!-- Matomo -->
<script>
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://apcstatview.in2p3.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
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>
<!-- End Matomo Code -->

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Expand Down
18 changes: 16 additions & 2 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110956727-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand All @@ -23,8 +23,22 @@
gtag('js', new Date());
gtag('config', 'UA-110956727-1');

</script> -->
<!-- Matomo -->
<script>
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://apcstatview.in2p3.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
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>
<!-- End Matomo Code -->

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Expand Down
20 changes: 17 additions & 3 deletions acknowledging.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110956727-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand All @@ -23,8 +23,22 @@
gtag('js', new Date());
gtag('config', 'UA-110956727-1');

</script> -->
<!-- Matomo -->
<script>
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://apcstatview.in2p3.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
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>
<!-- End Matomo Code -->

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Expand Down Expand Up @@ -117,7 +131,7 @@
<p id="bibtex-proc" style="display:none;">
@INPROCEEDINGS{gammapy:2017,
author = {{Deil}, C. and {Zanin}, R. and {Lefaucheur}, J. and {Boisson}, C. and
{Khelifi}, B. and {Terrier}, R. and {Wood}, M. and {Mohrmann}, L. and
{Khélifi}, B. and {Terrier}, R. and {Wood}, M. and {Mohrmann}, L. and
{Chakraborty}, N. and {Watson}, J. and {Lopez-Coto}, R. and
{Klepser}, S. and {Cerruti}, M. and {Lenain}, J.~P. and {Acero}, F. and
{Djannati-Ata{\"\i}}, A. and {Pita}, S. and {Bosnjak}, Z. and
Expand Down
27 changes: 24 additions & 3 deletions contact.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
<!DOCTYPE html>
<html>

<style type="text/css" media="screen">
h2[id]::before {
display: block;
content: " ";
margin-top: -125px;
height: 125px;
}
</style>

<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110956727-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand All @@ -14,9 +22,22 @@
gtag('js', new Date());
gtag('config', 'UA-110956727-1');


</script> -->
<!-- Matomo -->
<script>
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://apcstatview.in2p3.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
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>
<!-- End Matomo Code -->

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Expand Down
28 changes: 25 additions & 3 deletions contribute.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<!DOCTYPE html>
<html>

<style type="text/css" media="screen">
h2[id]::before {
display: block;
content: " ";
margin-top: -125px;
height: 125px;
}
</style>

<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110956727-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand All @@ -13,9 +22,22 @@
gtag('js', new Date());
gtag('config', 'UA-110956727-1');


</script> -->
<!-- Matomo -->
<script>
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://apcstatview.in2p3.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
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>
<!-- End Matomo Code -->

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Expand Down
18 changes: 16 additions & 2 deletions cta.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110956727-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand All @@ -23,8 +23,22 @@
gtag('js', new Date());
gtag('config', 'UA-110956727-1');

</script> -->
<!-- Matomo -->
<script>
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://apcstatview.in2p3.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
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>
<!-- End Matomo Code -->

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Expand Down
28 changes: 26 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<!DOCTYPE html>
<html>

<style type="text/css" media="screen">
h2[id]::before {
display: block;
content: " ";
margin-top: -125px;
height: 125px;
}
</style>

<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110956727-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand All @@ -13,8 +22,23 @@
gtag('js', new Date());
gtag('config', 'UA-110956727-1');

</script> -->
<!-- Matomo -->
<script>
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://apcstatview.in2p3.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
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>
<!-- End Matomo Code -->

<script defer data-domain="gammapy.org" src="https://plausible.io/js/script.js"></script>

<meta charset="utf-8">
Expand Down
19 changes: 16 additions & 3 deletions news.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110956727-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand All @@ -23,9 +23,22 @@
gtag('js', new Date());
gtag('config', 'UA-110956727-1');


</script> -->
<!-- Matomo -->
<script>
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://apcstatview.in2p3.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
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>
<!-- End Matomo Code -->

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Expand Down
18 changes: 16 additions & 2 deletions team.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</style>

<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110956727-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand All @@ -22,8 +22,22 @@
gtag('js', new Date());
gtag('config', 'UA-110956727-1');

</script> -->
<!-- Matomo -->
<script>
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://apcstatview.in2p3.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
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>
<!-- End Matomo Code -->

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Expand Down

0 comments on commit 4c99b10

Please sign in to comment.