You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2023/03/11 11:51:34 UTC

[streampipes] branch docs/add-matomo-pydocs created (now 4ea1e197e)

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

bossenti pushed a change to branch docs/add-matomo-pydocs
in repository https://gitbox.apache.org/repos/asf/streampipes.git


      at 4ea1e197e docs: add matomo tracking to python docs

This branch includes the following new commits:

     new 4ea1e197e docs: add matomo tracking to python docs

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[streampipes] 01/01: docs: add matomo tracking to python docs

Posted by bo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch docs/add-matomo-pydocs
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 4ea1e197ececd184ea7bd057b82c9e84dfe9abc9
Author: bossenti <bo...@posteo.de>
AuthorDate: Sat Mar 11 12:51:16 2023 +0100

    docs: add matomo tracking to python docs
    
    Signed-off-by: bossenti <bo...@posteo.de>
---
 .../partials/integrations/analytics/matomo.html    | 36 ++++++++++++++++++++++
 streampipes-client-python/mkdocs.yml               |  2 ++
 2 files changed, 38 insertions(+)

diff --git a/streampipes-client-python/docs/overrides/partials/integrations/analytics/matomo.html b/streampipes-client-python/docs/overrides/partials/integrations/analytics/matomo.html
new file mode 100644
index 000000000..3df831b50
--- /dev/null
+++ b/streampipes-client-python/docs/overrides/partials/integrations/analytics/matomo.html
@@ -0,0 +1,36 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  ~
+-->
+<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', '35']);
+        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>
+
diff --git a/streampipes-client-python/mkdocs.yml b/streampipes-client-python/mkdocs.yml
index 373d76c86..68fec6b1f 100644
--- a/streampipes-client-python/mkdocs.yml
+++ b/streampipes-client-python/mkdocs.yml
@@ -37,6 +37,8 @@ extra:
   social:
     - icon: fontawesome/brands/github-alt
       link: https://github.com/apache/streampipes
+  analytics:
+    provider: matomo
 
   version:
     provider: mike