Hey!
Thanks for a great plugin, makes life much easier 👍
However I have some issues (which is probably wholly dependent on me not really understanding how Gatsby works under the hood)
I was of course thinking that the best way would be that onAccept, just start the hotjar and GAnalytics to begin tracking if accepted, else just keep them off. However, this does not work, window / trackGoogleAnalytics is undefined. Tried using browser-monads but not really sure how that would help to be honest, since that would just make the undefined as well. How would one use the browser globals to do these calls? Do you have an example implementation?
Hey! Thanks for a great plugin, makes life much easier 👍
However I have some issues (which is probably wholly dependent on me not really understanding how Gatsby works under the hood)
I was of course thinking that the best way would be that onAccept, just start the hotjar and GAnalytics to begin tracking if accepted, else just keep them off. However, this does not work, window / trackGoogleAnalytics is undefined. Tried using
browser-monads
but not really sure how that would help to be honest, since that would just make the undefined as well. How would one use the browser globals to do these calls? Do you have an example implementation?Many thanks!