nystudio107 / instantanalytics

DEPRECATED Instant Analytics brings full Google Analytics support to your Twig templates and automatic Craft Commerce integration with Google Enhanced Ecommerce.
Other
101 stars 4 forks source link

FR: Config option to disable per environment #1

Closed lindseydiloreto closed 8 years ago

lindseydiloreto commented 8 years ago

Feature request...

Can we have an environment-aware config option for "run analytics"? We'd like to keep the analytics disabled on the staging server, where we're not running in devMode.

The way you did it in SEOmatic is perfect!

https://github.com/nystudio107/seomatic/blob/master/config.php#L58

khalwat commented 8 years ago

Implemented in develop:

https://github.com/nystudio107/instantanalytics/tree/develop