@getuserfeedback/adapters 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/gtm/template-generation.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,8 +46,10 @@ Template generation:
|
|
|
46
46
|
|
|
47
47
|
The GTM template no longer exposes consent settings in its UI.
|
|
48
48
|
|
|
49
|
-
-
|
|
50
|
-
- `
|
|
49
|
+
- The template follows GTM Consent Mode directly.
|
|
50
|
+
- getuserfeedback `defaultConsent` scopes are inferred from GTM's standard consent signals only.
|
|
51
|
+
- `analytics.measurement` follows `analytics_storage`.
|
|
52
|
+
- There is no custom consent remapping UI or runtime path.
|
|
51
53
|
- If no GTM consent state is available, the adapter leaves `defaultConsent` unset.
|
|
52
54
|
|
|
53
55
|
### Color scheme behavior
|
|
@@ -541,7 +541,7 @@ const getConsentState = function() {
|
|
|
541
541
|
return result;
|
|
542
542
|
};
|
|
543
543
|
|
|
544
|
-
const
|
|
544
|
+
const deriveDefaultConsentFromGtmConsentState = function() {
|
|
545
545
|
const consentState = getConsentState();
|
|
546
546
|
const grantedScopeLookup = {};
|
|
547
547
|
const grantedScopes = [];
|
|
@@ -617,7 +617,7 @@ if (colorScheme !== undefined) {
|
|
|
617
617
|
initOptions.colorScheme = colorScheme;
|
|
618
618
|
}
|
|
619
619
|
|
|
620
|
-
const defaultConsent =
|
|
620
|
+
const defaultConsent = deriveDefaultConsentFromGtmConsentState();
|
|
621
621
|
if (defaultConsent !== undefined) {
|
|
622
622
|
initOptions.defaultConsent = defaultConsent;
|
|
623
623
|
}
|