-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analytics - Add Matomo support, test and verify #1143
Comments
Sounds good. In case you want a quick start:
It's been a while since I wrote it but it should be good unless they've changed the API somehow. 😄 |
Great, thanx! Hopefully it will work right away :) |
I'm a bit confused, there are code in new-backend. I guess this is not added in .Net backend. |
Ok. Right now it feels that adding (allowing) the analytics object in .Net backend would suffice. If this isnt done, backend would filter out the analytics object thats manually added to config. |
The matomo-tracker package in the psuedo code is intended for nodejs and should not be used. Trying another lib for our purposes : @jonkoops/matomo-tracker |
@jacobwod But in Matomo you'll need to specify: This make it hard to automate translation. Especially as sometimes multiple key/values are sent. Matomo only acceps 1 pair as default without plugins. This also make it troublesome as activeMap: "mapName" and sometimes cleanMode is sent. So right now it looks like I will need translate and hardcode all tracking events. |
Are you sure? According to the documentation for the tracker you intend to use, you can do: tracker.trackEvent({
category: 'sample-page',
action: 'click-event',
name: 'test', // optional
value: 123, // optional, numerical value
}) |
Yes exactly, but you will need to specify. So as the event gets more than 1 key/value we cant possibly know what to put in name: "what name", value: "what value". |
I'll investigate further........ |
So, because an event does not have a value as {value: "the value"}. A translation needs to be made to get the correct value.
|
@jacobwod What do you think about the idea to move The positive: We get to track how many hits a search creates I think the positive outweighs the negative as we will be able to get more relevant data for free. For example: If many people search for something that results in zero hits, maybe that would give us a hint that we can improve something, and this is just one use case. Hajk/new-client/src/models/SearchModel.js Line 70 in 4657375
|
Sounds like a good idea. Perhaps we could take a look into the |
Today, Analytics.js has working support for Plausible tracking since #1065, and is prepared (placeholder and commented example code etc) for Matomo tracking.
The Matomo tracking script need to be added, tested, edited and verified before pushed to dev.
The text was updated successfully, but these errors were encountered: