@acekyub wrote:
Matomo is good analytics, but I have an analytical problem for single page applications using vue js
this is my initialization
Vue.use(VueMatomo, {
host: ‘https://example.com’,
siteId: 2,
trackerFileName: ‘piwik’,
router: router,
enableLinkTracking: true,
requireConsent: false,
trackInitialView: true,
debug: true
})and this is the code for the record link
var currentUrl = location.href
var titlePage = document.title
var pathUrl = window.location.hash.substr(1)
this.$piwik.setCustomUrl(pathUrl)
this.$piwik.setDocumentTitle(titlePage)
this.$piwik.deleteCustomVariables(1, ‘page’)
this.$piwik.setGenerationTimeMs(5)
this.$piwik.trackPageView()
this.$piwik.enableLinkTracking()the problem is that the page is recorded twice, when I go to the localhost / x page, the previous page will remain in the record, when going to the localhost / y page, the previous page will also remain in the record
is there a solution for this?
Posts: 1
Participants: 1