question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Globally enable / disable tracking after initialization within App

See original GitHub issue

Is 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:open
  • Created 3 years ago
  • Reactions:6
  • Comments:5

github_iconTop GitHub Comments

3reactions
opsidaocommented, Mar 29, 2022

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

0reactions
kuzdogancommented, Mar 29, 2022

It seems we don’t need to show a pop-up? https://matomo.org/gdpr-analytics/

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found