AmazingDreams / vue-matomo

Vue plugin for Matomo Analytics
MIT License
274 stars 61 forks source link

tracking urls as part of page views #60

Closed nareshv closed 4 years ago

nareshv commented 4 years ago

https://github.com/AmazingDreams/vue-matomo/blob/7dcd4fdfc1ba9b7f3465bdf803a218a53543c381/src/index.js#L37

Above code only takes care of the meta title (if defined in the router), Is it possible to use this code at https://developer.matomo.org/guides/spa-tracking to add page tracking with urls as well ?

        _paq.push(['setCustomUrl', '/' + window.location.hash.substr(1)]);
        _paq.push(['setDocumentTitle', 'My New Title']);
        _paq.push(['trackPageView']);
AmazingDreams commented 4 years ago

You mean you wish to set custom urls in the route meta?

Naresh Kumar Vudutha notifications@github.com schreef op 16 april 2020 17:10:53 CEST:

https://github.com/AmazingDreams/vue-matomo/blob/7dcd4fdfc1ba9b7f3465bdf803a218a53543c381/src/index.js#L37

Above code only takes care of the meta title (if defined in the router), Is it possible to use this code at https://developer.matomo.org/guides/spa-tracking to add page tracking with urls as well ?

    _paq.push(['setCustomUrl', '/' + window.location.hash.substr(1)]);
       _paq.push(['setDocumentTitle', 'My New Title']);
       _paq.push(['trackPageView']);

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/AmazingDreams/vue-matomo/issues/60

nareshv commented 4 years ago

I am wondering if thats possible.

Events vs Pageviews in SPA applications

AmazingDreams commented 4 years ago

This issue should have been fixed in 3.13.5-0, it was actually I regression bug I missed