import MatomoTracker from "@datapunt/matomo-tracker-js";
//codes
//....
//...
const tracker = new MatomoTracker({
urlBase: "https://example.com/",
siteId: 1,
// linkTracking: false, // optional, default value: true
// configurations: { // optional, default value: {}
// // any valid matomo configuration, all below are optional
// disableCookies: true,
// setSecureCookie: true,
// setRequestMethod: 'POST'
// }
})
how can i instantiate the external package class in my service worker of chrome extension
tried doing the same in contentscript but did'nt work.
any suggestions on how can i instantiate external package class in service worker of chrome extension?
is it possible?