AmazingDreams / vue-matomo

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

How can I initiate a request #98

Closed yaolunmao closed 2 years ago

yaolunmao commented 2 years ago

Hello, I want to apply this plug-in to uniapp。 您好,我想应用此插件到uniapp。

But there is no route in the uniapp 但是uniapp里面没有路由

So I can only monitor routing changes myself 所以我只能自己监听路由变化

Then actively send the request to matomo 然后主动将请求发送给matomo

How can I initiate a request? 请问怎么才能主动发起请求呢?

yaolunmao commented 2 years ago

Sorry, I just finished asking questions and knew how to do it. Excuse me, thank you! Using this. $matomo. Trackrequest() solves my problem 不好意思我刚刚问完问题就知道怎么做了,打扰了,谢谢!使用this.$matomo.trackRequest()就解决了我的问题