I'm strugling with implementing vue-matomo and was wondering if someone could help me;
When i change the url in my browser and hit enter I, the correct page is logged.
e.g. someWebsite.com/home, someWebsite.com/inbox, someWebsite.com/my-profile.. etc
However, when I use the internal routing I keep getting the same url:
e.g. someWebsite.com/home, someWebsite.com/home, someWebsite.com/home ...
the url does appear to change, windows.location also returns the new url on each page...
Vue.use(VueMatomo, {
// Configure your matomo server and site by providing
host: 'https://tracker.someWebsite.com',
siteId: 2,
// Changes the default .js and .php endpoint's filename
// Default: 'matomo'
trackerFileName: 'matomo',
// Overrides the autogenerated tracker endpoint entirely
// Default: undefined
// trackerUrl: 'https://example.com/whatever/endpoint/you/have',
// Overrides the autogenerated tracker script path entirely
// Default: undefined
// trackerScriptUrl: 'https://example.com/whatever/script/path/you/have',
// Enables automatically registering pageviews on the router
router: router,
// Enables link tracking on regular links. Note that this won't
// work for routing links (ie. internal Vue router links)
// Default: true
enableLinkTracking: true,
// Require consent before sending tracking information to matomo
// Default: false
requireConsent: false,
// Whether to track the initial page view
// Default: true
trackInitialView: true,
// Run Matomo without cookies
// Default: false
disableCookies: false,
// Enable the heartbeat timer (https://developer.matomo.org/guides/tracking-javascript-guide#accurately-measure-the-time-spent-on-each-page)
// Default: false
enableHeartBeatTimer: false,
// Set the heartbeat timer interval
// Default: 15
heartBeatTimerInterval: 15,
// Whether or not to log debug information
// Default: false
debug: false,
// UserID passed to Matomo (see https://developer.matomo.org/guides/tracking-javascript-guide#user-id)
// Default: undefined
userId: undefined,
// Share the tracking cookie across subdomains (see https://developer.matomo.org/guides/tracking-javascript-guide#measuring-domains-andor-sub-domains)
// Default: undefined, example '*.example.com'
cookieDomain: undefined,
// Tell Matomo the website domain so that clicks on these domains are not tracked as 'Outlinks'
// Default: undefined, example: '*.example.com'
domains: undefined,
// A list of pre-initialization actions that run before matomo is loaded
// Default: []
// Example: [
// ['API_method_name', parameter_list],
// ['setCustomVariable','1','VisitorType','Member'],
// ['appendToTrackingUrl', 'new_visit=1'],
// etc.
// ]
preInitActions: [],
});
Hi,
I'm strugling with implementing vue-matomo and was wondering if someone could help me; When i change the url in my browser and hit enter I, the correct page is logged. e.g. someWebsite.com/home, someWebsite.com/inbox, someWebsite.com/my-profile.. etc However, when I use the internal routing I keep getting the same url: e.g. someWebsite.com/home, someWebsite.com/home, someWebsite.com/home ...
the url does appear to change, windows.location also returns the new url on each page...