Managing cookie consent #115
-
It's not clear how to manage consent with the matomo-tracker for flutter. What I want to create:
To my knowledge that is not possible right? You can reinitialize the MatomoTracker... or maybe you can? |
Beta Was this translation helpful? Give feedback.
Answered by
carlosfarfangalindoNL222
Aug 4, 2023
Replies: 1 comment
-
I figured it out. First, you can create a method which will generate a new instance of MatomoTracker:
Next, whenever you want to change siteId and url, just call the createTracker function with the new siteId and url:
And I can reassign the variable 'tracker' when the user is logged in. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
carlosfarfangalindoNL222
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured it out.
First, you can create a method which will generate a new instance of MatomoTracker:
Next, whenever you want to change siteId and url, just call the createTracker function with the new siteId and url:
…