@jetshop/core 5.15.1 → 5.15.2
Sign up to get free protection for your applications and to get access to all the features.
- package/ChannelHandler/ChannelHandler.d.ts +1 -0
- package/ChannelHandler/ChannelHandler.js +4 -5
- package/ChannelHandler/ChannelHandler.js.map +1 -1
- package/ChannelHandler/channelUtils.d.ts +1 -0
- package/ChannelHandler/channelUtils.js +2 -1
- package/ChannelHandler/channelUtils.js.map +1 -1
- package/analytics/AnalyticsProvider.d.ts +10 -0
- package/analytics/AnalyticsProvider.js +12 -0
- package/analytics/AnalyticsProvider.js.map +1 -1
- package/analytics/integrations/ga4.js +20 -24
- package/analytics/integrations/ga4.js.map +1 -1
- package/analytics/integrations/gtag/gtag.js +20 -24
- package/analytics/integrations/gtag/gtag.js.map +1 -1
- package/analytics/integrations/gtm/gtm.js +8 -17
- package/analytics/integrations/gtm/gtm.js.map +1 -1
- package/analytics/trackerRegistry.d.ts +8 -8
- package/boot/client/startClient.js +2 -1
- package/boot/client/startClient.js.map +1 -1
- package/boot/server/createRenderer.js +2 -1
- package/boot/server/createRenderer.js.map +1 -1
- package/package.json +1 -1
@@ -22,6 +22,7 @@ export declare class ChannelHandler {
|
|
22
22
|
setRecommendedChannel: (recommendedChannel: SelectedChannel) => void;
|
23
23
|
getRecommendedChannel: () => SelectedChannel;
|
24
24
|
setChannels: (channels: Channel[]) => void;
|
25
|
+
setChannelGroup: (channels: Channel[]) => void;
|
25
26
|
getChannels: () => Channel[];
|
26
27
|
getChannelHeaders: () => {
|
27
28
|
currency: string;
|
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
10
10
|
return t;
|
11
11
|
};
|
12
12
|
import qs from 'qs';
|
13
|
-
import { getChannelBasename, getChannelHeaders, getLanguageFromCulture, isInDev
|
13
|
+
import { getChannelBasename, getChannelHeaders, getLanguageFromCulture, isInDev } from './channelUtils';
|
14
14
|
export class ChannelHandler {
|
15
15
|
constructor(args = {
|
16
16
|
selectedChannel: undefined,
|
@@ -30,10 +30,9 @@ export class ChannelHandler {
|
|
30
30
|
this.getRecommendedChannel = () => this.recommendedChannel;
|
31
31
|
this.setChannels = (channels) => {
|
32
32
|
this.channels = channels;
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
});
|
33
|
+
};
|
34
|
+
this.setChannelGroup = (channels) => {
|
35
|
+
this.selectedChannelGroup = channels;
|
37
36
|
};
|
38
37
|
this.getChannels = () => this.channels;
|
39
38
|
this.getChannelHeaders = () => getChannelHeaders(this.selectedChannel);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ChannelHandler.js","sourceRoot":"","sources":["ChannelHandler.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,OAAO,EAAE,MAAM,IAAI,CAAC;AAGpB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,
|
1
|
+
{"version":3,"file":"ChannelHandler.js","sourceRoot":"","sources":["ChannelHandler.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,OAAO,EAAE,MAAM,IAAI,CAAC;AAGpB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,EACR,MAAM,gBAAgB,CAAC;AAGxB,MAAM,OAAO,cAAc;IAOzB,YACE,OAMI;QACF,eAAe,EAAE,SAAS;QAC1B,kBAAkB,EAAE,SAAS;QAC7B,QAAQ,EAAE,SAAS;QACnB,mBAAmB,EAAE,SAAS;QAC9B,oBAAoB,EAAE,SAAS;KAChC;QAgBH,2BAAsB,GAAG,CAAC,mBAAwC,EAAE,EAAE,CACpE,CAAC,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC,CAAC;QAEnD,uBAAkB,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;QAEhD,uBAAkB,GAAG,CAAC,eAAgC,EAAE,EAAE;YACxD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACzC,CAAC,CAAC;QAEF,0BAAqB,GAAG,CAAC,kBAAmC,EAAE,EAAE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,eAAe,CAAC;QACvC,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACnD,CAAC;IAqIO,sBAAsB,CAAC,GAAW;QACxC,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,QAAQ,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC3C,MAAM,aAAa,GAAG,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,KAAK,CAAC,GAAG,CAAC,KAAI,EAAE,CAAC;QACjD,aAAa,CAAC,KAAK,EAAE,CAAC;QACtB,IAAI,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAC;QAC9B,aAAa,CAAC,OAAO,CACnB,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAC7D,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
@@ -56,6 +56,7 @@ export declare function getSelectedAndRecommendedChannel({ url, singleDomainMode
|
|
56
56
|
selectedChannel: SelectedChannel;
|
57
57
|
recommendedChannel: SelectedChannel;
|
58
58
|
channels: Channel[];
|
59
|
+
group: Channel[];
|
59
60
|
};
|
60
61
|
export declare function getChannelHeaders(channel?: SelectedChannel): {
|
61
62
|
currency: string;
|
@@ -295,7 +295,8 @@ export function getSelectedAndRecommendedChannel({ url, singleDomainMode, channe
|
|
295
295
|
selectedChannel,
|
296
296
|
recommendedChannel,
|
297
297
|
// for testing purposes mainly
|
298
|
-
channels: availableChannels
|
298
|
+
channels: availableChannels,
|
299
|
+
group: availableChannels
|
299
300
|
};
|
300
301
|
}
|
301
302
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llowed: boolean;
|
23
23
|
consentedToTracking: boolean;
|
24
|
+
cookies: Cookies;
|
24
25
|
useTrackingConsentAPI: boolean;
|
25
26
|
}
|
26
27
|
export interface AnalyticsProviderContext {
|
27
28
|
config: AnalyticsConfig;
|
28
29
|
trackerRegistry: TrackerRegistry;
|
29
30
|
}
|
31
|
+
export declare const defaultConsentSettings: {
|
32
|
+
ad_storage: string;
|
33
|
+
analytics_storage: string;
|
34
|
+
personalization_storage: string;
|
35
|
+
functionality_storage: string;
|
36
|
+
security_storage: string;
|
37
|
+
wait_for_update: number;
|
38
|
+
};
|
39
|
+
export declare const CONSENT_COOKIE_NAME = "GoogleTrackingConsents";
|
30
40
|
export declare const AnalyticsContext: Context<AnalyticsProviderContext>;
|
31
41
|
export interface AnalyticsProviderProps {
|
32
42
|
releware?: AnalyticsConfigReleware;
|
@@ -9,6 +9,15 @@ import { createServerTracker, trackerRegistry } from './trackerRegistry';
|
|
9
9
|
import { Helmet } from 'react-helmet-async';
|
10
10
|
import { usePreconnectLinks } from '../hooks/usePreconnectLinks';
|
11
11
|
import { ga4Tracker } from './integrations/ga4';
|
12
|
+
export const defaultConsentSettings = {
|
13
|
+
ad_storage: 'denied',
|
14
|
+
analytics_storage: 'denied',
|
15
|
+
personalization_storage: 'denied',
|
16
|
+
functionality_storage: 'granted',
|
17
|
+
security_storage: 'granted',
|
18
|
+
wait_for_update: 500
|
19
|
+
};
|
20
|
+
export const CONSENT_COOKIE_NAME = 'GoogleTrackingConsents';
|
12
21
|
function isMSExternal(external) {
|
13
22
|
return 'msTrackingProtectionEnabled' in external;
|
14
23
|
}
|
@@ -26,6 +35,7 @@ const initialAnalyticsConfig = {
|
|
26
35
|
},
|
27
36
|
trackingAllowed: false,
|
28
37
|
consentedToTracking: false,
|
38
|
+
cookies: undefined,
|
29
39
|
useTrackingConsentAPI: false
|
30
40
|
};
|
31
41
|
export const AnalyticsContext = createContext({
|
@@ -93,6 +103,7 @@ const AnalyticsProvider = function AnalyticsProvider(props) {
|
|
93
103
|
releware: props.releware,
|
94
104
|
trackingAllowed: trackingAllowed,
|
95
105
|
consentedToTracking: consentedToTracking === 'agreed',
|
106
|
+
cookies: props.cookies,
|
96
107
|
useTrackingConsentAPI
|
97
108
|
}), [
|
98
109
|
trackingID,
|
@@ -102,6 +113,7 @@ const AnalyticsProvider = function AnalyticsProvider(props) {
|
|
102
113
|
props.releware,
|
103
114
|
trackingAllowed,
|
104
115
|
consentedToTracking,
|
116
|
+
props.cookies,
|
105
117
|
useTrackingConsentAPI
|
106
118
|
]);
|
107
119
|
const { gtm, gtag, releware } = analyticsConfig;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AnalyticsProvider.js","sourceRoot":"","sources":["AnalyticsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAW,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAG1D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,mBAAmB,EACnB,eAAe,EAEhB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;
|
1
|
+
{"version":3,"file":"AnalyticsProvider.js","sourceRoot":"","sources":["AnalyticsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAW,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE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B,SAAS,CAAC,UAAU;QACpB,8BAA8B;QAC7B,SAAyB,CAAC,YAAY,CAAC;IAE1C,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,KAAK,EAAE;QAChC,OAAO,KAAK,CAAC;KACd;IAED,qBAAqB;IACrB,IAAI,MAAM,CAAC,QAAQ,IAAI,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE;QACpD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,2BAA2B,EAAE,CAAC;KACvD;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,eAAe,iBAAiB,CAAC"}
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { injectScript } from '../utils/script';
|
2
2
|
import { getBrand } from '../../../core/components/OpenGraph/OpenGraphProductData';
|
3
|
+
import { Cookies } from 'react-cookie';
|
4
|
+
import { CONSENT_COOKIE_NAME, defaultConsentSettings } from '../AnalyticsProvider';
|
3
5
|
const gtag = () => window.gtag;
|
4
6
|
function productToItem(product, selectedVariation, useArticleNumberAsId = false, brandCustomField, category) {
|
5
7
|
var _a, _b, _c, _d;
|
@@ -33,22 +35,11 @@ export function ga4Tracker({ trackingId, additionalGtagTrackingIds = [], currenc
|
|
33
35
|
w.dataLayer.push(arguments);
|
34
36
|
};
|
35
37
|
if (config.useTrackingConsentAPI) {
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
*/
|
42
|
-
const consent = config.consentedToTracking ? 'granted' : 'denied';
|
43
|
-
gtag()('consent', 'default', {
|
44
|
-
ad_storage: consent,
|
45
|
-
// https://www.simoahava.com/analytics/consent-mode-google-tags/#restrict-advertising-storage
|
46
|
-
analytics_storage: consent,
|
47
|
-
personalization_storage: consent,
|
48
|
-
functionality_storage: 'granted',
|
49
|
-
security_storage: 'granted',
|
50
|
-
wait_for_update: 500
|
51
|
-
});
|
38
|
+
const consents = config.cookies.get(CONSENT_COOKIE_NAME) || defaultConsentSettings;
|
39
|
+
// NB: Only cookieless pings will be sent to Google servers.
|
40
|
+
// There’s also a wait time of 500 milliseconds before any Google tags are allowed to fire,
|
41
|
+
// to give time for the update command to be invoked.
|
42
|
+
gtag()('consent', 'default', Object.assign({}, consents));
|
52
43
|
// NB: This only works when you set ad_storage to denied.
|
53
44
|
// https://developers.google.com/tag-platform/devguides/consent#redact_ads_data
|
54
45
|
gtag()('set', 'ads_data_redaction', true);
|
@@ -71,14 +62,19 @@ export function ga4Tracker({ trackingId, additionalGtagTrackingIds = [], currenc
|
|
71
62
|
gtag();
|
72
63
|
},
|
73
64
|
consent(consents) {
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
65
|
+
const cookies = new Cookies();
|
66
|
+
// Fallback to all granted if no consents are passed
|
67
|
+
const consent = consents
|
68
|
+
? consents
|
69
|
+
: {
|
70
|
+
ad_storage: 'granted',
|
71
|
+
analytics_storage: 'granted',
|
72
|
+
personalization_storage: 'granted',
|
73
|
+
functionality_storage: 'granted',
|
74
|
+
security_storage: 'granted'
|
75
|
+
};
|
76
|
+
gtag()('consent', 'update', Object.assign({}, consent));
|
77
|
+
cookies.set(CONSENT_COOKIE_NAME, JSON.stringify(Object.assign({}, consent)));
|
82
78
|
},
|
83
79
|
trackProduct({ quantity, action, product, selectedVariation, list, listName, index, category }, context, eventId) {
|
84
80
|
const productItem = Object.assign(Object.assign({}, productToItem(product, selectedVariation, useArticleNumberAsId, brandCustomField, category)), { quantity, item_list_name: list || listName || context.list, index: index });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ga4.js","sourceRoot":"","sources":["ga4.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,yDAAyD,CAAC;
|
1
|
+
{"version":3,"file":"ga4.js","sourceRoot":"","sources":["ga4.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAA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,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;QACtD,CAAC;QACD,kBAAkB,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,QAAQ,EAAE,OAAO;YAClE,IAAI,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE;gBACjC,aAAa;gBACb,WAAW;gBACX,OAAO;aACR,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
|
@@ -2,6 +2,8 @@ import { injectScript } from '../../utils/script';
|
|
2
2
|
import { getBrand } from '../../../components/OpenGraph/OpenGraphProductData';
|
3
3
|
import { unSlugify } from '../unslugify';
|
4
4
|
import { breadcrumbsWithoutProduct } from '../../utils/breadcrumbsWithoutProduct';
|
5
|
+
import { CONSENT_COOKIE_NAME, defaultConsentSettings } from '../../AnalyticsProvider';
|
6
|
+
import { Cookies } from 'react-cookie';
|
5
7
|
const gtag = () => window.gtag;
|
6
8
|
function getProductData({ product, selectedVariation, useArticleNumberAsId = false, brandCustomField, category = '' }) {
|
7
9
|
const brand = getBrand(product, brandCustomField);
|
@@ -49,22 +51,11 @@ export const gtagTracker = ({ trackingId, additionalGtagTrackingIds = [], curren
|
|
49
51
|
w.dataLayer.push(arguments); // I'm not sure why but this dosen't work using rest params. Don't change this line
|
50
52
|
};
|
51
53
|
if (config.useTrackingConsentAPI) {
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
*/
|
58
|
-
const consent = config.consentedToTracking ? 'granted' : 'denied';
|
59
|
-
gtag()('consent', 'default', {
|
60
|
-
ad_storage: consent,
|
61
|
-
// https://www.simoahava.com/analytics/consent-mode-google-tags/#restrict-advertising-storage
|
62
|
-
analytics_storage: consent,
|
63
|
-
personalization_storage: consent,
|
64
|
-
functionality_storage: 'granted',
|
65
|
-
security_storage: 'granted',
|
66
|
-
wait_for_update: 500
|
67
|
-
});
|
54
|
+
const consents = config.cookies.get(CONSENT_COOKIE_NAME) || defaultConsentSettings;
|
55
|
+
// NB: Only cookieless pings will be sent to Google servers.
|
56
|
+
// There’s also a wait time of 500 milliseconds before any Google tags are allowed to fire,
|
57
|
+
// to give time for the update command to be invoked.
|
58
|
+
gtag()('consent', 'default', Object.assign({}, consents));
|
68
59
|
// NB: This only works when you set ad_storage to denied.
|
69
60
|
// https://developers.google.com/tag-platform/devguides/consent#redact_ads_data
|
70
61
|
gtag()('set', 'ads_data_redaction', true);
|
@@ -86,14 +77,19 @@ export const gtagTracker = ({ trackingId, additionalGtagTrackingIds = [], curren
|
|
86
77
|
gtag();
|
87
78
|
},
|
88
79
|
consent(consents) {
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
80
|
+
const cookies = new Cookies();
|
81
|
+
// Fallback to all granted if no consents are passed
|
82
|
+
const consent = consents
|
83
|
+
? consents
|
84
|
+
: {
|
85
|
+
ad_storage: 'granted',
|
86
|
+
analytics_storage: 'granted',
|
87
|
+
personalization_storage: 'granted',
|
88
|
+
functionality_storage: 'granted',
|
89
|
+
security_storage: 'granted'
|
90
|
+
};
|
91
|
+
gtag()('consent', 'update', Object.assign({}, consent));
|
92
|
+
cookies.set(CONSENT_COOKIE_NAME, JSON.stringify(Object.assign({}, consent)));
|
97
93
|
},
|
98
94
|
trackProduct({ quantity, action, product, selectedVariation, list, listName, index, category }, context, eventId) {
|
99
95
|
const productData = Object.assign(Object.assign({}, getProductData({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"gtag.js","sourceRoot":"","sources":["gtag.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;
|
1
|
+
{"version":3,"file":"gtag.js","sourceRoot":"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EAAE,iBAAiB,EAAE;YACjC,aAAa;YACb,WAAW;YACX,OAAO;SACR,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
|
@@ -2,6 +2,7 @@ import { injectScript } from '../../utils/script';
|
|
2
2
|
import { getBrand } from '@jetshop/core/components/OpenGraph/OpenGraphProductData';
|
3
3
|
import { unSlugify } from '../unslugify';
|
4
4
|
import { breadcrumbsWithoutProduct } from '../../utils/breadcrumbsWithoutProduct';
|
5
|
+
import { CONSENT_COOKIE_NAME, defaultConsentSettings } from '../../AnalyticsProvider';
|
5
6
|
function push(event) {
|
6
7
|
if (window.dataLayer) {
|
7
8
|
if (event.ecommerce) {
|
@@ -55,29 +56,19 @@ export const gtmTracker = ({ containerId, currency, useArticleNumberAsId = false
|
|
55
56
|
document.location.search
|
56
57
|
});
|
57
58
|
if (config.useTrackingConsentAPI) {
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
*/
|
64
|
-
const consent = config.consentedToTracking ? 'granted' : 'denied';
|
65
|
-
w.dataLayer.push({
|
66
|
-
event: 'gtm_consent_default',
|
67
|
-
ad_storage: consent,
|
68
|
-
// https://www.simoahava.com/analytics/consent-mode-google-tags/#restrict-advertising-storage
|
69
|
-
analytics_storage: consent,
|
70
|
-
personalization_storage: consent,
|
71
|
-
functionality_storage: 'granted',
|
72
|
-
security_storage: 'granted',
|
73
|
-
wait_for_update: 500
|
74
|
-
});
|
59
|
+
const consents = config.cookies.get(CONSENT_COOKIE_NAME) || defaultConsentSettings;
|
60
|
+
// NB: Only cookieless pings will be sent to Google servers.
|
61
|
+
// There’s also a wait time of 500 milliseconds before any Google tags are allowed to fire,
|
62
|
+
// to give time for the update command to be invoked.
|
63
|
+
w.dataLayer.push(Object.assign({ event: 'gtm_consent_default' }, consents));
|
75
64
|
}
|
76
65
|
injectScript({ src: script });
|
77
66
|
},
|
78
67
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
79
68
|
consent() {
|
80
69
|
// Consent updated should be handled from inside GTM
|
70
|
+
// It should be just a matter of dataLayer.push({ event: 'gtm_consent_update', ...consents })).
|
71
|
+
// One can have a look in Simo Ahava GTM template for an example.
|
81
72
|
},
|
82
73
|
trackProduct({ quantity, action, product, selectedVariation, list, listName, index, category }, context, eventId) {
|
83
74
|
const productData = Object.assign(Object.assign({}, getProductData({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"gtm.js","sourceRoot":"","sources":["gtm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,MAAM,yDAAyD,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;
|
1
|
+
{"version":3,"file":"gtm.js","sourceRoot":"","sources":["gtm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,MAAM,yDAAyD,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AAOjC,SAAS,IAAI,CAAC,KAA0B;IACtC,IAAI,MAAM,CAAC,SAAS,EAAE;QACpB,IAAI,KAAK,CAAC,SAAS,EAAE;YACnB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;SAC5C;QAED,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC9B;AACH,CAAC;AAED,SAAS,cAAc,CAAC,EACtB,OAAO,EACP,iBAAiB,EACjB,oBAAoB,GAAG,KAAK,EAC5B,gBAAgB,EAChB,QAAQ,GAAG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AE,eAAe;YACtB,aAAa;YACb,WAAW;YACX,OAAO;SACR,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
|
@@ -6,6 +6,14 @@ export interface TrackingFunctionContext {
|
|
6
6
|
emit: (event: string, props: any) => void;
|
7
7
|
list?: string;
|
8
8
|
}
|
9
|
+
declare type Consent = 'granted' | 'denied';
|
10
|
+
interface BaseConsentEvents {
|
11
|
+
ad_storage: Consent;
|
12
|
+
analytics_storage: Consent;
|
13
|
+
personalization_storage: Consent;
|
14
|
+
security_storage: Consent;
|
15
|
+
[key: string]: Consent;
|
16
|
+
}
|
9
17
|
export interface TrackProductProps {
|
10
18
|
action: 'view' | 'remove' | 'add' | 'click' | 'heed_recommendation';
|
11
19
|
product: Product;
|
@@ -57,14 +65,6 @@ export interface InitOptions {
|
|
57
65
|
trackerRegistry: TrackerRegistry;
|
58
66
|
config: AnalyticsConfig;
|
59
67
|
}
|
60
|
-
declare type Consent = 'granted' | 'denied';
|
61
|
-
interface BaseConsentEvents {
|
62
|
-
ad_storage: Consent;
|
63
|
-
analytics_storage: Consent;
|
64
|
-
personalization_storage: Consent;
|
65
|
-
security_storage: Consent;
|
66
|
-
[key: string]: Consent;
|
67
|
-
}
|
68
68
|
export interface BaseTrackingEvents {
|
69
69
|
consent: (props: BaseConsentEvents, context: TrackingFunctionContext, eventId?: string) => void;
|
70
70
|
trackProduct: (props: TrackProductProps, context: TrackingFunctionContext, eventId?: string) => void;
|
@@ -82,7 +82,7 @@ const startClient = (tree, config) => {
|
|
82
82
|
const channels = data.channels;
|
83
83
|
const geoipCountry = window.__GEOIP_COUNTRY__;
|
84
84
|
const acceptedLanguages = JSON.parse(window.__ACCEPTED_LANGUAGES__);
|
85
|
-
const { selectedChannel, recommendedChannel } = getSelectedAndRecommendedChannel({
|
85
|
+
const { selectedChannel, recommendedChannel, group } = getSelectedAndRecommendedChannel({
|
86
86
|
url: window.location.href,
|
87
87
|
cookies,
|
88
88
|
channels,
|
@@ -93,6 +93,7 @@ const startClient = (tree, config) => {
|
|
93
93
|
channelHandler.setSelectedChannel(selectedChannel);
|
94
94
|
channelHandler.setRecommendedChannel(recommendedChannel);
|
95
95
|
channelHandler.setChannels(channels);
|
96
|
+
channelHandler.setChannelGroup(group);
|
96
97
|
const channelOverrides = config.channelOverrides && selectedChannel.name
|
97
98
|
? config.channelOverrides[selectedChannel.name]
|
98
99
|
: {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"startClient.js","sourceRoot":"","sources":["startClient.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,gCAAgC,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAErE,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,aAAa,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAA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
|
118
118
|
const channels = yield globalClient.getChannels();
|
119
|
-
const { selectedChannel, recommendedChannel, redirect } = getSelectedAndRecommendedChannel({
|
119
|
+
const { selectedChannel, recommendedChannel, redirect, group } = getSelectedAndRecommendedChannel({
|
120
120
|
url: fullUrl,
|
121
121
|
singleDomainMode,
|
122
122
|
channels,
|
@@ -134,6 +134,7 @@ const createRenderer = (template, tree, options) => {
|
|
134
134
|
recommendedChannel,
|
135
135
|
channels
|
136
136
|
});
|
137
|
+
channelHandler.setChannelGroup(group);
|
137
138
|
const createClientOpts = {
|
138
139
|
apolloConfig,
|
139
140
|
schema,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createRenderer.js","sourceRoot":"","sources":["createRenderer.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAIhD,OAAO,KAAuB,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAE1D,OAAO,uBAAuB,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE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