You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by rz...@apache.org on 2022/12/02 13:56:53 UTC

[opennlp-site] 01/01: OPENNLP-1399 - Integrate ASF Matomo into OpenNLP website

This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a commit to branch OPENNLP-1399
in repository https://gitbox.apache.org/repos/asf/opennlp-site.git

commit 5f0543763aec4444cc4f81c4e7c1b87ee3d901dd
Author: Richard Zowalla <rz...@apache.org>
AuthorDate: Fri Dec 2 14:56:44 2022 +0100

    OPENNLP-1399 - Integrate ASF Matomo into OpenNLP website
---
 src/main/jbake/templates/header.ftl | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/src/main/jbake/templates/header.ftl b/src/main/jbake/templates/header.ftl
index b1687004..bf3bf588 100755
--- a/src/main/jbake/templates/header.ftl
+++ b/src/main/jbake/templates/header.ftl
@@ -34,6 +34,25 @@
     <!-- RSS Feed -->
     <link rel="alternate" type="application/rss+xml" title="RSS" href="/${config.feed_file}" />
 
+    <!-- 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']);
+        /* Measure a visit to flink.apache.org and nightlies.apache.org/flink as the same visit */
+        _paq.push(['trackPageView']);
+        _paq.push(['enableLinkTracking']);
+        (function() {
+            var u="//analytics.apache.org/";
+            _paq.push(['setTrackerUrl', u+'matomo.php']);
+            _paq.push(['setSiteId', '33']);
+            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 -->
+
     <!-- Favicon -->
     <link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
     <link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">