SAP Knowledge Base Article - Public

3049401 - Cookie Manager - Custom Provider JavaScript - Recruiting Marketing


Cookie Manager tab in Career Site Builder allows you to customize the settings for your career site's cookie banner as well as cookie consent manager dialog. Under cookie sections it's possible to specify the Provider JavaScript.

In this article we are going to provide you some observations with regards the JavaScript code that can be included in the Cookie Manager configuration.


SAP SuccessFactors Recruiting Marketing (RMK)


Before adding any custom JavaScript in Cookies Provider JavaScript consider the follow:

  • Only pure JavaScript is allowed (no <script> tags or HTML)
  • External scripts must be added as a variable, such as:
    1. Instead of <script>...</script> , use var script = document.createElement('script'); script.src='jshostedexternallyhere.min.js'; document.body.appendChild(script);
  • Custom plugins also need to be done a specific way too, such as:
    1. Provider javascript - jQuery(body).trigger( "custom");
    2. custom plugin - <script>jQuery(body).on("custom",function(){} )</script>

IMPORTANT NOTE: Although the practice of including JavaScript is allowed in CSB, such addition will not be supported by SAP Product Support and/or Development teams. Please make sure to have your code reviewed by an implementation partner or SAP Professional Services.

For more information about Cookie Manager refer to the Cookie Manager Tab in Career Site Builder Global Settings section of our Recruiting guide.

See Also

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


KBA , LOD-SF-RMK-CSB , Career Site Builder , How To


SAP SuccessFactors Recruiting all versions