@phygitallabs/tapquest-core 6.7.11 → 6.7.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phygitallabs/tapquest-core",
3
- "version": "6.7.11",
3
+ "version": "6.7.12",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -19,9 +19,9 @@ const GTAG_CONSENT_DENIED = {
19
19
  ad_personalization: "denied",
20
20
  } as const;
21
21
 
22
- const GTAG_CONSENT_GRANTED_ANALYTICS = {
23
- analytics_storage: "granted",
24
- } as const;
22
+ // const GTAG_CONSENT_GRANTED_ANALYTICS = {
23
+ // analytics_storage: "granted",
24
+ // } as const;
25
25
 
26
26
  const GTAG_CONSENT_GRANTED_ADS = {
27
27
  ad_storage: "granted",
@@ -70,10 +70,10 @@ export function GtagConsentSync() {
70
70
  }, []);
71
71
 
72
72
  // GA / GTM: grant analytics when user accepted analytics
73
- useEffect(() => {
74
- if (!isAnalyticsAllowed) return;
75
- pushConsentUpdate({ ...GTAG_CONSENT_GRANTED_ANALYTICS });
76
- }, [isAnalyticsAllowed]);
73
+ // useEffect(() => {
74
+ // if (!isAnalyticsAllowed) return;
75
+ // pushConsentUpdate({ ...GTAG_CONSENT_GRANTED_ANALYTICS });
76
+ // }, [isAnalyticsAllowed]);
77
77
 
78
78
  // Google AdSense: grant ad consent when user accepted advertising
79
79
  useEffect(() => {
@@ -6,7 +6,7 @@ import { AchievementServiceProvider } from "@phygitallabs/achievement";
6
6
  import { GenerateCertificateServiceProvider } from "@phygitallabs/generate-certificate";
7
7
  import { PhygitalConsentProvider } from "@phygitallabs/phygital-consent";
8
8
  import { GtagConsentSync } from "../modules/data-tracking";
9
- // import { GtagGtmScriptToggleFromConsent } from "../modules/data-tracking";
9
+ import { GtagGtmScriptToggleFromConsent } from "../modules/data-tracking";
10
10
 
11
11
  import serviceApiUrl from "../constants/service";
12
12
  import { APIConfig, ServiceConfig } from "../types/service";
@@ -153,6 +153,7 @@ export const ServicesProvider: React.FC<ServicesProviderProps> = ({
153
153
  }}
154
154
  >
155
155
  <GtagConsentSync />
156
+ <GtagGtmScriptToggleFromConsent/>
156
157
  {children}
157
158
  </PhygitalConsentProvider>
158
159
  </GenerateCertificateServiceProvider>