Skip to content

Commit

Permalink
TEZ-4581: ASF matomo integration for web site analytics
Browse files Browse the repository at this point in the history
1. Use matomo for gathering usage statistics
2. Update the privacy policy link accordingly
  • Loading branch information
zabetak committed Oct 4, 2024
1 parent 607b2bc commit b2d0785
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 70 deletions.
52 changes: 0 additions & 52 deletions docs/src/site/markdown/privacy-policy.md

This file was deleted.

36 changes: 18 additions & 18 deletions docs/src/site/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,23 @@

<body>
<head>
<!-- Start of Google analytics
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ?
'https://ssl' : 'http://www') +
'.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
End of Google analytics -->
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '63']);
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 -->
<style>
.well.sidebar-nav {
background-color: #fff;
Expand Down Expand Up @@ -155,7 +155,7 @@
</div>
<br/>
<div class="row span12">
<a href="privacy-policy.html">Privacy Policy</a>
<a href="https://privacy.apache.org/policies/privacy-policy-public.html">Privacy Policy</a>
</div>
</footer>

Expand Down

0 comments on commit b2d0785

Please sign in to comment.