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 +9 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -3677,13 +3677,15 @@ var useAmplitude = function useAmplitude() {
|
|
|
3677
3677
|
};
|
|
3678
3678
|
|
|
3679
3679
|
var initializeAmplitude = function initializeAmplitude(apiKey) {
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
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) {
|