Skip to content

Commit

Permalink
GC-158 When accessing the TCF it is pulling from the wrong location, …
Browse files Browse the repository at this point in the history
…use userConsent.gdpr.consentString (#10808)
  • Loading branch information
southern-growthcode authored Dec 11, 2023
1 parent eecdc2e commit 222b442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/growthCodeRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ function callServer(configParams, items, expiresAt, userConsent) {
url = tryAppendQueryString(url, 'pid', configParams.pid);
url = tryAppendQueryString(url, 'u', window.location.href);
url = tryAppendQueryString(url, 'gcid', gcid);
if ((userConsent !== null) && (userConsent.gdpr !== null) && (userConsent.gdpr.consentData.getTCData.tcString)) {
url = tryAppendQueryString(url, 'tcf', userConsent.gdpr.consentData.getTCData.tcString)
if ((userConsent !== null) && (userConsent.gdpr !== null) && (userConsent.gdpr.consentString)) {
url = tryAppendQueryString(url, 'tcf', userConsent.gdpr.consentString)
}

ajax.ajaxBuilder()(url, {
Expand Down

0 comments on commit 222b442

Please sign in to comment.