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 13:12:48 UTC
[streampipes] 03/03: docs: add matomo tracking to python docs (#1409)
This is an automated email from the ASF dual-hosted git repository.
bossenti pushed a commit to branch rel/0.91.0
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit c0c97b0e71d0c29c7ca825ed5d80e12881419f3f
Author: Tim <50...@users.noreply.github.com>
AuthorDate: Sat Mar 11 14:06:48 2023 +0100
docs: add matomo tracking to python docs (#1409)
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