poitch / dart-matomo Goto Github PK
View Code? Open in Web Editor NEWA Dart Matomo Client
License: MIT License
A Dart Matomo Client
License: MIT License
I get an app crash with no error message and no Exception under the following circumstances:
The cause is in the fk_user_agent
plugin:
flutter-fast-kit/fk_user_agent#4
This issue is fixed through this PR:
flutter-fast-kit/fk_user_agent#5
But the fk_user_agent
plugin was not published to pub.dev since April 2021.
I am trying to track custom event but no data is entered to the events section in the dashboard using this line of code :
MatomoTracker.trackEvent('PlaySong', 'play')
Knowing that screen tracking is working and visits logs are appearing
It would be nice to provide the param token_auth
which is needed when a request is processed after a day.
Building an app with matomo 0.1.0 for iOS outputs this build error:
[!] No podspec found for `flutter_user_agentx` in `.symlinks/plugins/flutter_user_agentx/ios`
As far as I understand, this project was forked as Floating-Dartists/matomo-tracker and is now maintained there.
If that's the case, this repo could be marked as read-only with a reference to the forked one, and also, on pub.dev the package could be marked as archived with a link to the new one.
Hey there poitch :) I hope you had a nice christmas. It seems like the latest pull request has fixed the web compatibility so maybe this is worth to create a new release on pub.dev?
Best regards and stay healthy
Matomo seems to be throwing and error when initializing, started to happen when updating to 0.1.1.
_CastError: type '_InternalLinkedHashMap<String, String?>' is not a subtype of type 'Map<String, String>?' in type cast
File "matomo.dart", line 384, in _MatomoDispatcher.send
File "matomo.dart", line 261, in MatomoTracker._dequeue
File "matomo.dart", line 183, in MatomoTracker.initialize.<fn>
File "zone.dart", line 1362, in _rootRunUnary
File "zone.dart", line 1265, in _CustomZone.runUnary
File "zone.dart", line 1170, in _CustomZone.runUnaryGuarded
File "zone.dart", line 1207, in _CustomZone.bindUnaryCallbackGuarded.<fn>
File "zone.dart", line 1370, in _rootRunUnary
File "zone.dart", line 1265, in _CustomZone.runUnary
File "zone.dart", line 1191, in _CustomZone.bindUnaryCallback.<fn>
File "timer_impl.dart", line 395, in _Timer._runTimers
File "timer_impl.dart", line 426, in _Timer._handleMessage
File "isolate_patch.dart", line 184, in _RawReceivePortImpl._handleMessage
I am not able to use await with trackScreen function in order to waitfor the function to execute before executing another function
The trackScreenWithName() method does nothing with eventName parameter. Maybe this should be added at line #239:
eventName: eventName,
Or am I missing a point?
The API documentation mentions custom dimensions
That could be put to use for experimentation frameworks and A/B testing if I'm not mistaken (still relatively new to Matomo and Dart). Is that parameter something within the scope of the plugin ?
https://developer.matomo.org/api-reference/tracking-api#optional-user-info
dimension[0-999] โ A Custom Dimension value for a specific Custom Dimension ID (requires Matomo 2.15.1 + Custom Dimensions plugin see the Custom Dimensions guide). If Custom Dimension ID is 2 use dimension2=dimensionValue to send a value for this dimension. The configured Custom Dimension has to be in scope "Visit".
It would be beneficial to have native Dart support without the need to use it within a Flutter app but, instead, be able to use it for Dart CLI Tools and other applications.
I'm still a bit new to all this, but I was wondering why TraceableStatelessWidget and TraceableStatefulWidget aren't const constructors?
Hi, matomo team
I am using flutter with kong api's HMAC authentication and I need to add authentication code in headers and Digest in request body.
Could you let us customize header in matomo?
Thanks.
Because matomo 1.1.0 depends on package_info_plus ^1.0.4 and no versions of matomo match >1.1.0 <2.0.0, matomo ^1.1.0 requires package_info_plus ^1.0.4. So, because sample_app depends on both package_info_plus ^3.0.1 and matomo ^1.1.0, version solving failed. pub get failed
As above log, when I updated package_info_plus to version 3.0.1, pub get will not work.
Please update your libraries in the package regularly.
I moved MatomoTracker().initialize() out of main.dart into some other page, where the 'visitorId' where known to be set.
The Android build works fine, but the PWA can not track events. The problem is that 'contentBase' is set to something like "http://localhost:36673/#loading/null" (this is from chrome debug). When the url is built and posted in the 'send' method, that '#' causes the parameters after url be truncated! So there is no e_c, e_a, and e_n in the sent request.
This took me some hours to find out and I solved my problem by adding contentBaseUrl parameter in initialize().
May be better if some kind of url encoding added when the url has been created in the 'send' method, before posting. Or in the initialize() at: contentBase = html.window.location.href;
I am trying to track custom event but no data is entered to the events section in the dashboard using this line of code :
MatomoTracker.trackEvent('PlaySong', 'play')
Knowing that screen tracking is working and visits logs are appearing
Hey, first of all: Thanks for this awesome package :)
I think it would be great to have ECommerce Tracking Functionality.
Matomo allows sending through a value (optional) for an event, see https://matomo.org/docs/event-tracking/.
Can value be added as an optional parameter?
Hey ๐ Thanks for the package.
In my project, I spent around an hour trying to figure out why my events doesn't dispatch to matomo. Then I went to the source code and saw that the URL does not contain the matomo.php
postfix. I think it should be added in case the customer did not provide it during initialization.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.