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
Copy file name to clipboardExpand all lines: src/connections/sources/catalog/libraries/website/javascript/index.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -887,6 +887,38 @@ If the above routes don't work, Segment provides these workarounds to help with
887
887
888
888
* Consider tracking data using one of Segment's[server-side libraries](/docs/connections/sources/#server). By using a server-side library, you no longer have to worry about ad blockers and privacy browsers preventing Segment from loading. This option may require more code to track something like a`.page()` call, since now you have to manually pass contextual information that otherwise would've been collected automatically by Analytics.js, such as`url`,`path`,`referrer`. Note that some destinations are device-mode only.
889
889
890
+
##Add destinations from npm
891
+
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.
Pass in the destination plugin to the added config option called`plugins`. A list of all action destination packages can be found[here](https://github.com/segmentio/action-destinations/blob/main/packages/destinations-manifest/package.json){:target="_blank"}.