import GoogleAnalytics from 'react-ga';

GoogleAnalytics.initialize('UA-30688952-5', {
    debug: (process.env.NODE_ENV !== 'production'),
    titleCase: true,
    sampleRate: 100,
    forceSSL: true
});

export default GoogleAnalytics;

@@ -173,10 +173,56 @@
 te: 
-10
+(process.env.NODE_ENV === 'production') ? 100 : 
 0,%0A 

Make sure GA events are not transmitted outside of production