--- url: >- https://developer-portal.gainsight.com/docs/custom-widgets/v2/scripts-overview.md description: >- How global scripts work — where they run, how they're injected, and how they compare to widgets --- # Scripts Overview Scripts are JavaScript files that run across your community pages, independent of individual widgets. Use them for analytics, tracking, shared utilities, or any page-level behavior that applies globally instead of to one widget at a time. ## How Scripts Work Each script you declare in the `scripts` array of `extensions_registry.json` becomes a `