@janus-idp/backstage-plugin-matomo
TypeScript icon, indicating that this package has built-in type declarations

1.8.0 • Public • Published

Matomo Plugin

The matomo plugin shows the basic analytics from Matomo

Matomo tab

Getting started

  1. Install the plugin
yarn workspace app add @janus-idp/backstage-plugin-matomo
  1. Make sure the Matomo backend plugin is installed and configured

Entity Pages

  1. 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>
);
  1. Add matomo.io/site-idannotation to catalog-info-yaml
metadata:
  name: matomo-website
  annotations:
    matomo.io/site-id: '<YOUR_MATOMO_SITE_ID'
  1. Add contact us and matomo instance url for user guidance
matomo:
  frontendBaseUrl: ${MATOMO_INSTANCE_URL}
  contactUsLink: mailto:${MATOMO_CONTACT_EMAIL}

Package Sidebar

Install

npm i @janus-idp/backstage-plugin-matomo

Homepage

red.ht/rhdh

Weekly Downloads

165

Version

1.8.0

License

Apache-2.0

Unpacked Size

14.5 MB

Total Files

475

Last publish

Collaborators

  • asoro-rh
  • pataknight
  • nickboldt
  • tomaskral
  • tumido