SAP Knowledge Base Article - Public

3049401 - Custom Provider JavaScript Configuration in Cookie Manager for Recruiting Marketing

Symptom

The Cookie Manager tab in Career Site Builder allows customization of settings for the career site's cookie banner and cookie consent manager dialog.
Under the cookie sections, users can specify the Provider JavaScript.
This article provides observations regarding the JavaScript code that can be included in the Cookie Manager configuration.

Environment

SAP SuccessFactors Recruiting Marketing

Resolution

The purpose of a Custom Provider is to add custom code to your career site that drops cookies. Custom providers are not required for most situations, as all standard providers included in CSB are already available.

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

  • 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 1: 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.

IMPORTANT NOTE 2: LinkedIn Provider cannot be moved away from the Advertising section. Adding a custom provider is not going to work for this. However, it's possible to change the label of the section instead.

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, LinkedIn

Keywords

Recruiting, Recruiting Marketing, JavaScript, Cookie Manager, Career Site Builder, CSB, cookies, cookies provider, cookie banner, cookie consent manager, custom, SAP Professional Services , KBA , LOD-SF-RMK-CSB , Career Site Builder , How To

Product

SAP SuccessFactors Recruiting all versions