SAP Knowledge Base Article - Public

3779325 - Google Analytics Cookies Are Created Despite User Cookie Preferences - Recruiting Marketing

Symptom

Google Analytics cookies (_ga_*) are created immediately after the career site loads, before the user accepts cookies through the Cookie Banner.

Environment

SAP SuccessFactors Recruiting Marketing

Reproducing the Issue

  1. Open the career site in an incognito browser session.
  2. Open the browser's Developer Tools.
  3. Navigate to Application > Cookies.
  4. Select the career site URL.
  5. Observe that Google Analytics cookies (_ga_*) have already been created.

Cause

The Google Analytics ID / Google Tag Manager ID is configured through Custom JavaScript or a Custom Plugin rather than through the standard Career Site Builder (CSB) configuration.

The Cookie Consent Manager does not work with custom JavaScript unless that custom JavaScript is configured within the Cookie Manager tab.

Resolution

The Cookie Consent Manager works with:

  • CSB features, such as Google Tag Manager and Google Analytics.
  • Custom cookies/scripts that are configured inside the Cookie Manager tab.

To ensure that Google Analytics cookies are created only after the appropriate user consent has been provided:

  1. Remove any Google Analytics / Google Tag Manager scripts that have been added through Custom JavaScript and/or Custom Plugins.
  2. Configure the Google Analytics 4 ID / Google Tag Manager ID via CSB > Settings > Site Configuration > Site Information.
  3. Configure Google Analytics / Google Tag Manager under Advertising Cookies Section via CSB > Appearance > Global > Cookie Manager

    See Also

    KBA 3057157 - Cookie Consent Manager - Recommendations for Google Analytics and Google Tag Manager - Recruiting Marketing

    Keywords

    RMK, CSB, Google Analytics, GA4, _ga cookies, Career Site, cookie preferences, cookie consent, Cookie Consent Manager, cookie compliance, user consent, consent preferences, advertising cookies, marketing cookies, custom JavaScript, custom plugin, tracking ID, gtag, Google Tag Manager, GTM, cookie consent violation , KBA , LOD-SF-RMK-CSB-CMA , Cookie Manager , Problem

    Product

    SAP SuccessFactors Recruiting all versions