Closed giuliaghisini closed 1 year ago
in particular:
Suggestion: add it in src/utils.js like:
.... **const trackerUrl = window.env?.RAZZLE_MATOMO_TRACKER_URL || config.settings.matomoTrackerUrl || undefined;
const srcUrl = window.env?.RAZZLE_MATOMO_SRC_URL || config.settings.matomoSrcUrl || undefined;** if (siteId) { _matomo.instance = createInstance({ urlBase, siteId, **trackerUrl, srcUrl,** }); } else { /* eslint-disable-next-line */ console.warn( 'Matomo SiteID is not defined, page actions will not be tracked', ); }
....
in particular:
Suggestion: add it in src/utils.js like:
.... **const trackerUrl = window.env?.RAZZLE_MATOMO_TRACKER_URL || config.settings.matomoTrackerUrl || undefined;
....