TheoTech / glorifycc

song database for spfio
1 stars 2 forks source link

google analytics #26

Open jonathanarde opened 8 years ago

jonathanarde commented 8 years ago

include google analytics only in production

chrislim commented 8 years ago

Check in the template proces.env.NODE_ENV === 'production' If it is, then inject in the template the analytics script. Otherwise do not.

chrislim commented 7 years ago

Here is the guide for tracking events with analytics: https://developers.google.com/analytics/devguides/collection/analyticsjs/events