Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Make Matomo Configurable for Community Portals #1545

Open
dghelm opened this issue Jan 13, 2022 · 0 comments
Open

Make Matomo Configurable for Community Portals #1545

dghelm opened this issue Jan 13, 2022 · 0 comments
Labels
enhancement New feature or request portal-ux Portal setup/operation UX

Comments

@dghelm
Copy link
Contributor

dghelm commented Jan 13, 2022

Overview

(Follow-up on #1534 )
Currently, Matomo and the Matomo Tag Manager setups are hard-coded to our analytics setup. This needs to accommodate skynetpro and community portals.

Design or Proposal

Because siasky.net, skynetpro, and default community portal setups all will serve the same skylink as their homepage, we need to devise a way of either:
a) only loading this code on Skynet Labs sites
b) blocking API calls from non-Skynet Labs hosts as a way to "reject" that incoming data
c) making this configurable to allow community portals to easily configure (and/or build + deploy) their own frontend to be using their own Matomo configurations

I think C is best, but obviously the most complicated.

We should also re-consider if piwik.js should be served from the Matomo server or part of the build on Skynet. If a portal is not using the Tag Manager, then serving from Skynet makes sense, because then there is no vulnerability potentially exposed by an insecurity in the host server. But the Tag Manager re-opens the site to loading off-Skynet code, so for extended compatibility, it might be best to load piwik.js from the Matomo server.

@dghelm dghelm added enhancement New feature or request portal-ux Portal setup/operation UX labels Jan 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request portal-ux Portal setup/operation UX
Projects
None yet
Development

No branches or pull requests

1 participant