Skip to content

Matomo plugin? #187

Description

@mhf-ir

Any plan to support Matomo? https://matomo.org/

Activity

  1. DavidWells commented on Jul 19, 2021

    @DavidWells
    Owner

    Hello there!

    I won't have time to build this integration myself but you are more than welcome to 😃

    See https://getanalytics.io/plugins/writing-plugins/#1-provider-plugins for writing a plugin.

    Essentially, you will want to map the page, track methods to the Matomo JS calls

    export default function pluginExample(userConfig) {
      return {
        /* All plugins require a name */
        name: 'matomo-plugin',
        /* Everything else below this is optional depending on your plugin requirements */
        config: {
          whatEver: userConfig.whatEver,
          elseYouNeed: userConfig.elseYouNeed
        },
        initialize: ({ config }) => {
          // load matomo script to page
        },
        page: ({ payload }) => {
          // call matomo specific page tracking
        },
        track: ({ payload }) => {
          // call matomo event tracking
        },
        loaded: () => {
          // return boolean so analytics knows when it can send data to third party
          return !!window.myPluginLoaded
        }
      }
    }
  2. DavidWells commented on Jul 20, 2021

    @DavidWells
    Owner

    Moving over to this thread #153

    Let me know if you have any questions on creating plugins

  3. daun commented on Jun 29, 2026

    @daun

    A third-party Matomo plugin is available at analytics-plugin-matomo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions