[
https://issues.apache.org/jira/browse/TINKERPOP-2776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17610143#comment-17610143
]
Divij Vaidya commented on TINKERPOP-2776:
-----------------------------------------
Hey [~martijnvisser]
The bottleneck to resolving this task is the absence of a unified header &
footer in the website code base where we can inject the tracking code. I have
not been able to dedicate time to change the website code yet. If you like,
please feel free to pick up this Jira. I will be happy to provide code review
for the changes that you make.
> Add website analytics for TinkerPop apache site
> -----------------------------------------------
>
> Key: TINKERPOP-2776
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2776
> Project: TinkerPop
> Issue Type: Improvement
> Components: documentation
> Reporter: Divij Vaidya
> Assignee: Divij Vaidya
> Priority: Minor
>
> Mailing list discussion:
> [https://lists.apache.org/thread/3nm6522slgk3619zc9ylz5yomknk7oh8]
> The code that needs to added to each page is as follows:
> {code:java}
> <!-- Matomo -->
> <script>
> var _paq = window._paq = window._paq || [];
> /* We explicitly disable cookie tracking to avoid privacy issues */
> _paq.push(['disableCookies']);
> /* tracker methods like "setCustomDimension" should be called before
> "trackPageView" */
> _paq.push(['trackPageView']);
> _paq.push(['enableLinkTracking']);
> (function() {
> var u="https://analytics.apache.org/";
> _paq.push(['setTrackerUrl', u+'matomo.php']);
> _paq.push(['setSiteId', '27']);
> 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 --> {code}
> Once, this code is added and deployed, we should be able to see the analytics
> at [https://matomo.privacy.apache.org/]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)