You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+18-15
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ If you use analytics.js-core as an npm module, you can use its types out of the
18
18
19
19
### Using types with the AJS Snippet
20
20
21
-
If you create a source at https://app.segment.com, Segement automatically generates a JS snippet that you can add to your website. (for more information visit our [documentation](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/quickstart/)).
21
+
If you create a source at https://app.segment.com, Segment automatically generates a JS snippet that you can add to your website. (for more information visit our [documentation](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/quickstart/)).
22
22
23
23
To use types with the snippet, add `analytics` as part of the global module.
24
24
Something like this:
@@ -34,46 +34,49 @@ declare global {
34
34
```
35
35
36
36
## Using as a standalone `npm` package
37
-
We recommend using the CDN version of `analytics.js` as it offers all the project and workspace specific settings, enabled integrations, and middleware. But if you prefer to use `analytics.js-core` as a standalone npm package using your own tooling & workflow, you can do the following:
38
37
39
-
1- Install the dependencies
38
+
We recommend using the CDN version of `analytics.js` as it offers all the project and workspace specific settings, enabled integrations, and middleware. But if you prefer to use `analytics.js-core` as a standalone npm package using your own tooling & workflow, you can do the following:
0 commit comments