SAP Knowledge Base Article - Public

3049401 - Cookie Manager - Custom Provider JavaScript - Recruiting Marketing

Symptom

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.

Environment

SAP SuccessFactors Recruiting Marketing (RMK)

Resolution

The purpose of a Custom Provider is if you are adding custom code to your career site that drops cookies. Custom providers do not need to be used for the majority of the situations since all standard providers included in CSB are already available.

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

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

Product

SAP SuccessFactors Recruiting all versions