MatomoTracker
Vaadin 10+ integration to Matomo analytics solution
This add-on adds basic Matomo (previously known as Piwik) view tracking analytics in Vaadin 10+ applications.
Tracking is enabled with annotation in MainLayout. View tracking is done automatically based on Routes. Views can be excluded. See code examples and API documentation for more information.
You need Matomo cloud instance and subscription before you can use this integration add-on.
Sponsored development
Major pieces of development of this add-on has been sponsored by multiple customers of Vaadin. Read more about Expert on Demand at: Support and Pricing
Sample code
How to enable @EnableMatomoTracker(value = "https://my-matomo.cloud", siteId = "siteid") public class MainLayout extends VerticalLayout implements RouterLayout { ... } Ignore view from tracking @IgnoreMatomoTracker public class IgnoredView extends VerticalLayout { ... } Track custom event public class MainView extends VerticalLayout { public MainView() { add(new Text("Main view"), new Button("Send an event", click -> { MatomoTracker.getCurrent().sendEvent("Examples", "Event button"); })); } }
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Version 1.0.2
- Changed license to Apache 2
- Released
- 2020-12-02
- Maturity
- BETA
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 10+
- Browser
- Firefox
- Opera
- Safari
- Google Chrome
- iOS Browser
- Android Browser
- Internet Explorer
- Microsoft Edge
MatomoTracker - Vaadin Add-on Directory
Vaadin 10+ integration to Matomo analytics solutionMatomoTracker version 1.0.0
### 1.0.0
- First version
MatomoTracker version 1.0.1
### Version 1.0.1
- Fixes issue with duplicated attach events
MatomoTracker version 1.0.2
### Version 1.0.2
- Changed license to Apache 2