You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are currently two issues with our Matomo setup (introduced in #419):
We don't have an opt-out button (this is recommended by Matomo for GDPR compliance). I can't get the code for this to work in Docsify (it is included in the privacy page, but commented out for now).
More importantly: page visits are not properly logged. In particular, direct visits inside one browser session (tab/window/whatever) are logged, but any subsequent page visits within that same session are not. This is probably because Docsify does something "smart", capturing the sub-page clicks, changing the address in the address bar and refreshing the page to contain the content you clicked on, but not actually doing any HTTP requests. The page just changes content through client-side Javascript. Apparently (and not surprisingly) this does not jive with Matomo's logging script.
We could investigate how to fix this inside Docsify, but we should not spend too much effort on this (e.g. writing a Docsify Matomo plugin would not be sustainable for us, but maybe there's an easy trick to make Matomo work with Docsify or Docsify's page update system could be slightly tweaked so that it emulates HTTP requests better...).
Also related to #405: with mkdocs I think we wouldn't have any of these problems, so that would also be a solution.
The text was updated successfully, but these errors were encountered:
I suspect problem 2 can be solved by setting the routerMode setting to history (because every path is now after the pound sign in https://guide.esciencecenter.nl/#/). Note that this changes all paths and that all pages are then saved in the user's browser history.
However, when I try this out locally, deep linking does not work anymore, which makes sense, because there are no HTML pages at the paths.
There are currently two issues with our Matomo setup (introduced in #419):
We could investigate how to fix this inside Docsify, but we should not spend too much effort on this (e.g. writing a Docsify Matomo plugin would not be sustainable for us, but maybe there's an easy trick to make Matomo work with Docsify or Docsify's page update system could be slightly tweaked so that it emulates HTTP requests better...).
Also related to #405: with mkdocs I think we wouldn't have any of these problems, so that would also be a solution.
The text was updated successfully, but these errors were encountered: