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.
package/dist/index.js CHANGED
@@ -3675,13 +3675,15 @@ var useAmplitude = function useAmplitude() {
3675
3675
  };
3676
3676
 
3677
3677
  var initializeAmplitude = function initializeAmplitude(apiKey) {
3678
- amplitude.init(apiKey, {
3679
- defaultTracking: {
3680
- pageViews: true,
3681
- sessions: true,
3682
- formInteractions: true
3683
- }
3684
- });
3678
+ if (process.env.NODE_ENV === 'production' || process.env.REACT_APP_ENABLE_AMPLITUDE === 'true') {
3679
+ amplitude.init(apiKey, {
3680
+ defaultTracking: {
3681
+ pageViews: true,
3682
+ sessions: true,
3683
+ formInteractions: true
3684
+ }
3685
+ });
3686
+ }
3685
3687
  };
3686
3688
 
3687
3689
  function initSentry(dsn, release) {