Skip to content

Commit f54c122

Browse files
zikaaristayseesong
andauthored
Update src/connections/sources/catalog/libraries/website/javascript/index.md
Co-authored-by: stayseesong <[email protected]>
1 parent cbfae45 commit f54c122

File tree

1 file changed

+2
-2
lines changed
  • src/connections/sources/catalog/libraries/website/javascript

1 file changed

+2
-2
lines changed

src/connections/sources/catalog/libraries/website/javascript/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -923,9 +923,9 @@ To minimize client-side data loss, Segment provides a few workarounds. However,
923923
924924
## Installing the library under a custom global namespace
925925
926-
When loading Analytics.js through snippet code, the SDK gets installed on `window.analytics` global variable by default. However, if that causes a conflict with another library on your page, the global variable used by Analytics.js can be changed assuming you are using snippet version 5.2.1 or later.
926+
When you load Analytics.js through snippet code, by default, the SDK installs on `window.analytics` global variable. If this causes a conflict with another library on your page, you can change the global variable used by Analytics.js if you use snippet version 5.2.1 or later.
927927
928-
Simply make this one change in the begining of your snippet code as shown below. In this case, Analytics.js will use `window.custom_key` to load instead of `window.analytics`.
928+
Change the global variable in the beginning of your snippet code as shown below. In this case, Analytics.js uses `window.custom_key` to load instead of `window.analytics`.
929929
930930
```diff
931931
- !function(){var i="analytics", ...

0 commit comments

Comments
 (0)