Skip to main content
Users
CloudPortalLogin
  • Powered byPowered by
Introduction to Sitecore Personalize
Managing accounts and system settings
Identifying guests
Introduction to experiments
Introduction to experiences
Decisioning
View dashboards
Developer Center
Connecting to an external system
Using client-side JavaScript
Using server-side JavaScript
AI in Personalize
Glossary
  • Sitecore Personalize
  • Developer Center
  • JS Modules
  • Manage JS modules

Manage JS modules

The JS modules page allows you to view and manage all your reusable JS modules in one central location. You open the JS modules library by clicking Developer center > JS modules. Search for the module by name or ID, or use one of the filters to narrow down the list of modules.

JS modules page with search bar and filter options.

Team members with a User, Developer, or Admin role in Sitecore Cloud Portal can manage JS modules.

Check module usage

To help you manage your JS modules, you can check the usage of a published module within the app. This can be useful to debug functionality, or remove a module from a programmable decision if need be.

To check a module's usage:

  1. From the JS modules page, open the module.

  2. On the Usage pane, you can see the number of places in which the module is reused.

  3. To see a detailed list of where the JS module is used, click View list.

  4. In the Module usage dialog, to open a place where the module is used, such as a programmable decision, click Open link icon.

Duplicate a module

You can duplicate a module to copy its code, description and tags to a new module. This is useful when the module is being used within the application and you want to modify and test it before publishing it for reuse.

To duplicate a module:

  1. From the JS modules page, open the module you want to duplicate.

  2. Click Duplicate.

  3. In the Name your new module field, enter a new name for the JS module

  4. Click Create.

Delete a module

You can delete a module that is not used anywhere within the Personalize application. If you attempt to delete a module that is in use, a message displays that includes the places within the app where the module is used.

To delete a module that is in use, you must first remove it from everywhere it is used:

  1. From the JS modules page, open the module you want to delete.

  2. Click Horizontal ellipsis > Delete.

  3. In the confirmation dialog, click View where this is used.

  4. Click Open link icon adjacent to the programmable that uses the JS module. This navigates to the the decision canvas.

  5. Click Edit iconicon to open the programmable.

  6. Click the icon and deselect the JS module to clear the module's checkbox to disable its use within this programmable decision.

To delete an unused module:

  1. From the JS modules page, open the module you want to delete.

  2. Click Horizontal ellipsis > Delete.

  3. In the confirmation dialog, click Delete.

Do you have some feedback for us?

If you have suggestions for improving this article,

Privacy policySitecore Trust CenterCopyright © 1999-2026 Sitecore