Skip to content
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

The version of the app is not reported in Matomo #3769

Open
Tracked by #2855
teolemon opened this issue Mar 16, 2023 · 5 comments
Open
Tracked by #2855

The version of the app is not reported in Matomo #3769

teolemon opened this issue Mar 16, 2023 · 5 comments

Comments

@teolemon
Copy link
Member

teolemon commented Mar 16, 2023

What

  • The version of the app is not reported in Matomo

Part of

@teolemon teolemon added 🐛 bug Something isn't working 📈 Matomo labels Mar 16, 2023
@monsieurtanuki
Copy link
Contributor

In analytics_helper.dart, we initialize matomo that way:

      await MatomoTracker.instance.initialize(
        url: 'https://analytics.openfoodfacts.org/matomo.php',
        siteId: 2,
        visitorId: uuid,
      );

I'm not familiar with matomo at all, but it looks like there's a field String contentBase in MatomoTracker that is used as a "root url" for all events (like 'https://myapp.com' in 'https://myapp.com/product/1234').
And as we don't specify a value (parameter contentBaseUrl) in the initialize method, the default value is something like 'https://$packageName'. Therefore no version inside.

@teolemon If what I say makes sense, how would you like to put the app version in the content base url? 'https://$packageName:$versionNumber'?

@teolemon teolemon mentioned this issue Mar 17, 2023
2 tasks
@M123-dev
Copy link
Member

M123-dev commented Apr 1, 2023

Mhh you are right looking the package has these features, but I could not find anything about a content base in the matomo docs, you'd thing that would be a more requested usecase but it does not seem like it

@M123-dev
Copy link
Member

M123-dev commented Apr 1, 2023

My overall opinion is "use the right tool for a job" maybe we are better off with a different platform for mobile analytics one which is aimed at apps. countly seems to be a good oss choice

@teolemon
Copy link
Member Author

teolemon commented Jul 1, 2024

@monsieurtanuki @g123k this solution makes sense
I'm looking at it to create a segment to see if users doing prices come back more often

@monsieurtanuki
Copy link
Contributor

@teolemon Just checking: you mean https://$packageName:$versionNumber would be alright? To be implemented now?

@teolemon teolemon added the good first issue Good for newcomers label Sep 24, 2024
@teolemon teolemon removed the 🐛 bug Something isn't working label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Status: 💬 To discuss and validate
Development

No branches or pull requests

3 participants