@wxt-dev/analytics 0.2.3 → 0.2.4
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/client.mjs +5 -3
- package/package.json +1 -1
package/dist/client.mjs
CHANGED
|
@@ -80,7 +80,9 @@ function createBackgroundAnalytics(config) {
|
|
|
80
80
|
providers.map((provider) => provider.identify(event))
|
|
81
81
|
);
|
|
82
82
|
} else if (config?.debug) {
|
|
83
|
-
console.debug(
|
|
83
|
+
console.debug(
|
|
84
|
+
"[analytics] Analytics disabled, identify() not uploaded"
|
|
85
|
+
);
|
|
84
86
|
}
|
|
85
87
|
},
|
|
86
88
|
page: async (url, forwardMeta) => {
|
|
@@ -100,7 +102,7 @@ function createBackgroundAnalytics(config) {
|
|
|
100
102
|
providers.map((provider) => provider.page(event))
|
|
101
103
|
);
|
|
102
104
|
} else if (config?.debug) {
|
|
103
|
-
console.debug("[analytics]
|
|
105
|
+
console.debug("[analytics] Analytics disabled, page() not uploaded");
|
|
104
106
|
}
|
|
105
107
|
},
|
|
106
108
|
track: async (eventName, eventProperties, forwardMeta) => {
|
|
@@ -116,7 +118,7 @@ function createBackgroundAnalytics(config) {
|
|
|
116
118
|
providers.map((provider) => provider.track(event))
|
|
117
119
|
);
|
|
118
120
|
} else if (config?.debug) {
|
|
119
|
-
console.debug("[analytics]
|
|
121
|
+
console.debug("[analytics] Analytics disabled, track() not uploaded");
|
|
120
122
|
}
|
|
121
123
|
},
|
|
122
124
|
setEnabled: async (newEnabled) => {
|