I want to only track page views when the user opts-in.
I have an opt-in button that sets a localStorage cookie
cookie:accepted to true.
Now I want to use my trigger
nuxtRoute only to be triggered if that cookie is set to true.
So my trigger has this rule:
Where the referenced variable looks like this:
But still my nuxtRoute trigger appears in the debug bar all the time.
Is this because I use localStorage instead of a cookie?
Or is this the wrong approach to handle this?
I would be really glad if somebody could elaborate a bit how this module is actually used…
Thank you in advance.