matomo-uniapp

1.0.4 • Public • Published

Matomo Plugin for UniApp

This Matomo plugin is designed for UniApp.

Installation

npm install matomo-uniapp

Usage

import App from './App'
import Matomo from 'matomo-uniapp'

Vue.use(Matomo, {
  url: 'https://your-matomo-instance.com',
  siteId: 1,
})

const app = new Vue({
  ...App
})
app.$mount()

//When the user logs in, set the user ID.
matomo.setUserId('example-user-id');

API

new Matomo(options)

  • options (Object):
    • url (String): The URL of your Matomo instance.
    • siteId (Number): The ID of the site you want to track.

matomo.setUserId(userId)

  • userId (String): Defines the User ID for this request. The User ID is any non-empty unique string identifying the user (such as an email address or a username).

License

MIT License

Keywords

matomo, uniapp

/matomo-uniapp/

    Package Sidebar

    Install

    npm i matomo-uniapp

    Weekly Downloads

    120

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    6.37 kB

    Total Files

    4

    Last publish

    Collaborators

    • wzsg