acsi-core 0.9.16 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3677,13 +3677,15 @@ var useAmplitude = function useAmplitude() {
3677
3677
  };
3678
3678
 
3679
3679
  var initializeAmplitude = function initializeAmplitude(apiKey) {
3680
- init(apiKey, {
3681
- defaultTracking: {
3682
- pageViews: true,
3683
- sessions: true,
3684
- formInteractions: true
3685
- }
3686
- });
3680
+ if (process.env.NODE_ENV === 'production' || process.env.REACT_APP_ENABLE_AMPLITUDE === 'true') {
3681
+ init(apiKey, {
3682
+ defaultTracking: {
3683
+ pageViews: true,
3684
+ sessions: true,
3685
+ formInteractions: true
3686
+ }
3687
+ });
3688
+ }
3687
3689
  };
3688
3690
 
3689
3691
  function initSentry(dsn, release) {