poitch / dart-matomo

A Dart Matomo Client
MIT License
20 stars 39 forks source link

Set custom dimensions on tracker #38

Open BonnetM opened 2 years ago

BonnetM commented 2 years ago

An alternative approach to what #37 offered. For our project's needs, we felt it was better to add custom dimensions directly on the MatomoTracker itself. The custom dimension is then sent with all subsequent events. Usage :

MatomoTracker.setCustomDimension(1, "customValue")