2022-04-25 21:31:14 +02:00
|
|
|
import {MatomoLiteTracker} from "../src/tracker";
|
|
|
|
import {BrowserFeatures, detectBrowserPlugins} from "../src/browserfeatures";
|
|
|
|
import {defaultDownloadFileExtensions, enableLinkTracking} from "../src/linktracking";
|
|
|
|
import {PerformanceMetric} from "../src/performancetracking";
|
|
|
|
|
|
|
|
const matomo = new MatomoLiteTracker("https://dev.matomo", 1)
|
|
|
|
matomo.performanceMetric = new PerformanceMetric()
|
2022-04-26 15:10:40 +02:00
|
|
|
|
2022-04-25 21:31:14 +02:00
|
|
|
const features = new BrowserFeatures()
|
|
|
|
features.addBrowserPlugins(detectBrowserPlugins())
|
|
|
|
matomo.browserFeatures = features
|
|
|
|
matomo.customDimensions = {
|
|
|
|
2: "something"
|
|
|
|
}
|
|
|
|
|
|
|
|
enableLinkTracking(matomo, defaultDownloadFileExtensions)
|
|
|
|
matomo.trackPageview()
|