diff --git a/src/docs/components/docs/configuration.jsx b/src/docs/components/docs/configuration.jsx
index 03af72d7..d26c5582 100644
--- a/src/docs/components/docs/configuration.jsx
+++ b/src/docs/components/docs/configuration.jsx
@@ -81,6 +81,19 @@ export default class CmpApi extends Component {
by pubvendors.json.
+
+ gdprApplies (Boolean):
+
+ Indicates that the publisher has configured the CMP to apply GDPR. This flag does not change the behavior of the CMP.
+
+
+
+ gdprAppliesGlobally (Boolean):
+
+ Indicates that the publisher has configured the CMP to apply GDPR to all (including non-EU) visitors.
+ This flag does not change the behavior of the CMP.
+
+
theme (Object):
diff --git a/src/docs/lib/stub.js b/src/docs/lib/stub.js
index afc75d4f..60f87003 100644
--- a/src/docs/lib/stub.js
+++ b/src/docs/lib/stub.js
@@ -27,7 +27,7 @@ function buildScript(config, cmpLocation='../cmp.bundle.js') {
if (command === 'ping') {
if (callback) {
callback({
- gdprAppliesGlobally: !!(window.__cmp && window.__cmp.config && window.__cmp.config.storeConsentGlobally),
+ gdprAppliesGlobally: !!(window.__cmp && window.__cmp.config && window.__cmp.config.gdprAppliesGlobally),
cmpLoaded: false
});
}
diff --git a/src/lib/cmp.js b/src/lib/cmp.js
index 21ec6739..81897851 100644
--- a/src/lib/cmp.js
+++ b/src/lib/cmp.js
@@ -89,7 +89,7 @@ export default class Cmp {
ping: (_, callback = () => {}) => {
const result = {
- gdprAppliesGlobally: config.storeConsentGlobally,
+ gdprAppliesGlobally: config.gdprAppliesGlobally,
cmpLoaded: true
};
callback(result, true);
diff --git a/src/lib/config.js b/src/lib/config.js
index a9b55555..dd3817e0 100644
--- a/src/lib/config.js
+++ b/src/lib/config.js
@@ -10,6 +10,7 @@ const defaultConfig = {
localization: {},
forceLocale: null,
gdprApplies: true,
+ gdprAppliesGlobally: false,
allowedVendorIds: null,
theme: {}
};