Globally enable / disable tracking after initialization within App
See original GitHub issueIs your feature request related to a problem? Please describe. In the context of the EU Cookie Directive, tracking is only permitted with the consent of the website visitor. In a cookie dialog, the visitor agrees or refuses to the setting of cookies. Matomo tracking can only be activated with consent.
Describe the solution you’d like After first initialization of Matomo in index.tsx (as wrapper around die App) there shoud be a way to disable / enable Matomo tracking from anywhere within the app.
Something like
const { disableTracking } = useMatomo();
Describe alternatives you’ve considered Enabling / Disabling all tracking-events manually in a component, based on a flag.
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:5
Top Results From Across the Web
How can I enable or disable the GPS programmatically on ...
Simply call this method in onResume of onCreate after initializing GoogleApiClient . private void updateMarkers() { if (mMap == null) { return; } ......
Read more >App Startup - Android Developers
If automatic initialization is disabled for a component, you can use AppInitializer to manually initialize that component and its dependencies.
Read more >Change Tracking - EF Core - Microsoft Learn
In this article. How to track entities; Entity states; Tracking from queries; Simple query and update; Query then insert, update, and delete.
Read more >JavaScript Tracking Client: Integrate - Develop Matomo
You can use the JavaScript tracking client to track any application that supports ... just after the opening <body> tag (or within the...
Read more >Making ASP.NET Application Always Running
Since both Application_Start and Preload methods will be called in environments with auto-start enabled, we need to ensure that the initialization logic ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@kuzdogan as mentioned in the post you link, to
ensure GDPR compliance [snip] Users can opt-out of all tracking
, which they can’t with the current implementation of this library.I understand that the French authorities have allowed Matomo to work without user consent, but given that GDPR applies to quite a few more countries than France, I think we still need to be able to disable/enable it on demand.
Beyond that, in my opinion, it’s not just about legislation, it’s also about giving users of the library options and allowing them to make the decissions on their own.
It seems we don’t need to show a pop-up? https://matomo.org/gdpr-analytics/