GithubHelp home page GithubHelp logo

dart-matomo's People

Contributors

bendix20 avatar kawachencofinpro avatar krille-chan avatar lukaslihotzki avatar poitch avatar stefan01 avatar svprdga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dart-matomo's Issues

Const Contructors

I'm still a bit new to all this, but I was wondering why TraceableStatelessWidget and TraceableStatefulWidget aren't const constructors?

build broken on iOS

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`

feat: native dart support

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.

[Feat] customize request headers

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.

tracking event is not working

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

Add matomo.php postfix to the site URL

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.

CastError when initializing

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

Custom Dimensions for A-B testing

What

The API documentation mentions custom dimensions

Why

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

API parameters

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".

Deprecate this package

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.

Problem with '#' in contentBase

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;

event tracking is not working

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

Not compatible with new update of package_info_plus

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.

Create a new release

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.