Skip to content

Commit 466b78e

Browse files
authored
Apply suggestions from code review
1 parent 79597f4 commit 466b78e

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -889,16 +889,16 @@ If the above routes don't work, Segment provides these workarounds to help with
889889

890890
## Add destinations from npm
891891

892-
Bundle the destinations you want loaded from [npm](https://www.npmjs.com/package/@segment/analytics-next){:target="_blank"} instead of having them loaded from CDN. This enables you to have fewer network requests when adding destinations.
892+
Bundle the destinations you want loaded from [npm](https://www.npmjs.com/package/@segment/analytics-next){:target="_blank"} instead of having them loaded from a remote CDN. This enables you to have fewer network requests when adding destinations.
893893

894894
* To add actions-based destinations from npm:
895895

896896
```js
897897
import vwo from '@segment/analytics-browser-actions-vwo'
898898
import braze from '@segment/analytics-browser-actions-braze'
899899

900-
AnalyticsBrowser.load({
901-
writeKey,
900+
const analytics = AnalyticsBrowser.load({
901+
writeKey: '<WRITE_KEY>',
902902
plugins: [vwo, braze],
903903
})
904904
```
@@ -912,7 +912,7 @@ Bundle the destinations you want loaded from [npm](https://www.npmjs.com/package
912912
import { AnalyticsBrowser } from '@segment/analytics-next'
913913
import GoogleAnalyticsIntegration from '@segment/analytics.js-integration-google-analytics'
914914

915-
// the following rig assumes configuration for Google Analytics will be available in the fetched settings
915+
// The following example assumes configuration for Google Analytics will be available in the fetched settings
916916
const analytics = AnalyticsBrowser.load({
917917
writeKey: '<WRITE_KEY>',
918918
classicIntegrations: [ GoogleAnalyticsIntegration ]

0 commit comments

Comments
 (0)