@janus-idp/backstage-plugin-matomo
v1.10.1
Published
The matomo plugin shows the basic analytics from [Matomo](https://matomo.org/)
Downloads
153
Readme
Matomo Plugin
The matomo plugin shows the basic analytics from Matomo
Getting started
- Install the plugin
yarn workspace app add @janus-idp/backstage-plugin-matomo
- Make sure the Matomo backend plugin is installed and configured
Entity Pages
- Add the plugin as a tab to website entity pages
// In packages/app/src/components/catalog/EntityPage.tsx
import { MatomoPage } from '@janus-idp/plugin-matomo';
const websiteEntityPage = (
<EntityLayout>
<EntityLayout.Route path="/matomo" title="Matomo">
<MatomoPage />
</EntityLayout.Route>
</EntityLayout>
);
- Add
matomo.io/site-id
annotation tocatalog-info-yaml
metadata:
name: matomo-website
annotations:
matomo.io/site-id: '<YOUR_MATOMO_SITE_ID'
- Add
contact us
andmatomo instance url
for user guidance
matomo:
frontendBaseUrl: ${MATOMO_INSTANCE_URL}
contactUsLink: mailto:${MATOMO_CONTACT_EMAIL}