Closed hmaesta closed 3 years ago
Hey! Thanks for the PR. We won't merge this because I feel like it is defensive code. What we will do is add an enabled prop to the component, where you can add any logic required to disable/enable analytics :)
Thank's for the feedback, Antony. Indeed I am super defensive with Javascript 😂
Thank you for the great work, guys.
Added a simple verification to avoid loading Google Analytics if
gaMeasurementId
is not defined.Must be updated in the future if supporting multiple IDs.