SAP Knowledge Base Article - Public

2573994 - Custom JavaScript Code in Career Site Builder - Recruiting Marketing

Symptom

  • Custom JavaScript content is missing on a Career Site Builder page.
  • How can custom JavaScript code be used in CSB pages of Recruiting Marketing?

Environment

  • SAP SuccessFactors Recruiting Marketing (RMK)
  • Career Site Builder (CSB) versions

Reproducing the Issue

Content added via custom JavaScript code cannot be seen when accessing a Career Site Builder page.

Cause

Invalid custom JavaScript code.

Resolution

The Header and Footer settings in Career Site Builder allow customers to add custom JavaScript code to the pages. The intent of custom JavaScript in Career Site Builder is primarily for web service tracking like Google Analytics.

Custom JavaScript will be stripped out of the header and footer during the RMK to RCM integration (for customers using integration with Recruiting Management). Therefore, to ensure the correct visualization of the header and footer in RMK and RCM and the consistency in the look and feel between both sides, custom JavaScript code should not be added to control site appearance.

If customers decide to add custom JavaScript code with purposes other than tracking, pages might not display the configured content across the application process and the site theme and styling might be affected.

Although such a practice is not forbidden in RMK/CSB implementations, it is not recommended to add custom javascript in the header and footer and any such addition will not be supported by our Support and Development teams, as it does not follow the product recommendations for the JavaScript functionality implementation.

See Also

2528548 - Partner resources for Career Site Builder Implementations

2341294 - Recruiting Marketing (RMK) - Implementation tips & tricks from Support

Keywords

Custom JavaScript Code, Java Script, Content missing / not displayed, CSB Header/Footer, Tracking Pixels , KBA , LOD-SF-RMK , Recruiting Marketing , Problem

Product

SAP SuccessFactors Recruiting all versions