AmazingDreams / vue-matomo

Vue plugin for Matomo Analytics
MIT License
272 stars 60 forks source link

Add options to transform urls before sending. #141

Open robinp opened 5 months ago

robinp commented 5 months ago

By default the full url is sent for tracking. This PR adds functionality to control which parts are included.

A practical use-case is to exclude the fragment parts after the #, since these are typically local details.

One thing I'm not sure about is the default url used (if a router is not present), assumed window.location.href (see change), but feel free to revise.

TEST=ran lint, eyeballed cases in network inspector