@statsig/web-analytics 0.0.1-beta.30 → 0.0.1-beta.31
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/README.md +4 -8
- package/package.json +3 -3
- package/src/AutoCapture.js +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Statsig Web Analytics
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Web analytics lets you track and watch key measures for your website easily. It is different from product analytics because it's simpler and more direct, making it great for marketers, web site maintainers, or anyone familiar with tools like Google Analytics.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Getting Started
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
## Running unit tests
|
|
10
|
-
|
|
11
|
-
Run `nx test web-analytics` to execute the unit tests via [Jest](https://jestjs.io).
|
|
7
|
+
Read through the [Documentation](https://docs.statsig.com/webanalytics/overview) or check out the [Samples](https://github.com/statsig-io/js-client-monorepo/tree/main/samples).
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statsig/web-analytics",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.31",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@statsig/client-core": "0.0.1-beta.
|
|
6
|
-
"@statsig/js-client": "0.0.1-beta.
|
|
5
|
+
"@statsig/client-core": "0.0.1-beta.31",
|
|
6
|
+
"@statsig/js-client": "0.0.1-beta.31"
|
|
7
7
|
},
|
|
8
8
|
"jsdelivr": "./build/statsig-web-analytics.min.js",
|
|
9
9
|
"type": "commonjs",
|
package/src/AutoCapture.js
CHANGED
|
@@ -16,7 +16,7 @@ class AutoCapture {
|
|
|
16
16
|
const { sdkKey } = _client.getContext();
|
|
17
17
|
this._errorBoundary = new client_core_1.ErrorBoundary(sdkKey);
|
|
18
18
|
(0, client_core_1.monitorClass)(this._errorBoundary, this);
|
|
19
|
-
__STATSIG__ =
|
|
19
|
+
__STATSIG__ = (0, client_core_1._getStatsigGlobal)();
|
|
20
20
|
const instances = (_a = __STATSIG__.acInstances) !== null && _a !== void 0 ? _a : {};
|
|
21
21
|
instances[sdkKey] = this;
|
|
22
22
|
__STATSIG__.acInstances = instances;
|