🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

matomo-js-client-types

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

matomo-js-client-types

Types for Matomo window._paq

5.0.0
latest
Source
npm
Version published
Weekly downloads
163
66.33%
Maintainers
1
Weekly downloads
 
Created
Source

Extracted and improved from https://github.com/zaxbux/vue-matomo/blob/197647f/src/types/matomo.ts

Matomo JavaScript Tracking Client source code https://github.com/matomo-org/matomo/blob/5.x-dev/js/piwik.js

Matomo JavaScript Tracking Client docs https://developer.matomo.org/api-reference/tracking-javascript

Usage:

npm i -D matomo-js-client-types

/// <reference types="matomo-js-client-types" />
// Strictly typed now:
window._paq = window._paq || []
window._paq.push(['setSiteId', '3'])
window._paq.push([function () {
  console.log(this.hasRememberedConsent())
}])

Keywords

matomo

FAQs

Package last updated on 07 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts