andrezimpel / gatsby-plugin-gdpr-cookies

Gatsby plugin to add Google Analytics (V4 is supported), Google Tag Manager, Facebook Pixel, TikTok Pixel and Hotjar in a GDPR form to your site.
Apache License 2.0
101 stars 70 forks source link

Environments-option has no effect #53

Closed DamageSami closed 3 years ago

DamageSami commented 3 years ago

Hi, I am on version 2.0.0, and the environments-option in plugin config seems to have no effect.

I was running in development environment on my local machine, tested and tried out the plugin, and it seemed to work fine, so I removed the development -environment from the plugin config. But after restarting the process and a refresh, I still see that analytics and gtm is being loaded, on my browser network tab. I then also tried to remove even the production -environment from the config, but it has no effect. I have cookies with a consent present.

Is there a bug or am I missing something?

andrezimpel commented 3 years ago

Thank you for reporting! This was actually a bug. I'm releasing 2.0.1 right now which fixes the issue.