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

JS Modules

JS Modules are reusable pieces of code that technical users create within Sitecore Personalize, making it easier to maintain and scale custom code within your implementation. JS Modules simplify development in the following ways:

  • Enabling reuse of code functions throughout the application. You create the code once, then publish it to enable its usage in the Personalize app.

  • Accelerating development with a built-in coding canvas that includes syntax validation, field auto-complete based on your data model, a data model picker, and support for the moment.js library for timestamp formatting.

  • Validating - when you save your code, the Personalize app checks JavaScript syntax, format, and compatibility with the JS engine.

  • Allowing you to view all code dependencies in one centralized location and efficiently manage any changes to existing functionality.

Do you have some feedback for us?

If you have suggestions for improving this article,

Privacy policySitecore Trust CenterCopyright © 1999-2025 Sitecore