Skip to content

Commit

Permalink
[MPOM-310] switch to Matomo Maven site tracking (POM documentation)
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Mar 12, 2022
1 parent 4604141 commit 8c52ca6
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/site-docs/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ under the License.
</skin>

<edit>${project.scm.url}</edit>
<googleAnalyticsAccountId>UA-140879-1</googleAnalyticsAccountId>

<publishDate position="right" />
<version position="right" />
Expand All @@ -54,6 +53,26 @@ under the License.
<item name="ASF" href="https://maven.apache.org/pom/asf/index.html" />
</breadcrumbs>

<head>
<![CDATA[<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
/* We explicitly disable cookie tracking to avoid privacy issues */
_paq.push(['disableCookies']);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//matomo.privacy.apache.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '3']);
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 -->]]>
</head>

<menu name="Overview">
<item name="Introduction" href="index.html"/>
<!-- According to https://issues.apache.org/jira/browse/MNGSITE-152 -->
Expand Down

0 comments on commit 8c52ca6

Please sign in to comment.