@jetshop/core 5.16.0 → 5.16.1
Sign up to get free protection for your applications and to get access to all the features.
- package/analytics/AnalyticsProvider.js +14 -2
- package/analytics/AnalyticsProvider.js.map +1 -1
- package/analytics/integrations/ga4.d.ts +2 -1
- package/analytics/integrations/ga4.js +18 -15
- package/analytics/integrations/ga4.js.map +1 -1
- package/analytics/trackerRegistry.d.ts +1 -1
- package/package.json +1 -1
@@ -133,7 +133,7 @@ const AnalyticsProvider = function AnalyticsProvider(props) {
|
|
133
133
|
useArticleNumberAsId: ga.useArticleNumberAsId
|
134
134
|
}));
|
135
135
|
}
|
136
|
-
if (ga4.trackingId
|
136
|
+
if (ga4.trackingId) {
|
137
137
|
registry.add(ga4Tracker({
|
138
138
|
currency: selectedChannel.currency.format.code,
|
139
139
|
trackingId: ga4.trackingId,
|
@@ -150,6 +150,18 @@ const AnalyticsProvider = function AnalyticsProvider(props) {
|
|
150
150
|
brandCustomField: shopConfig.brandCustomField,
|
151
151
|
useArticleNumberAsId: ga.useArticleNumberAsId || ga4.useArticleNumberAsId
|
152
152
|
}));
|
153
|
+
const registred = registry.trackers();
|
154
|
+
const ga4Registred = registred.includes('ga4');
|
155
|
+
if (gtm.useGa4Events && !ga4Registred) {
|
156
|
+
registry.add(ga4Tracker({
|
157
|
+
currency: selectedChannel.currency.format.code,
|
158
|
+
trackingId: gtm.containerId,
|
159
|
+
additionalGtagTrackingIds: [],
|
160
|
+
brandCustomField: shopConfig.brandCustomField,
|
161
|
+
useArticleNumberAsId: ga4.useArticleNumberAsId,
|
162
|
+
useGa4EventsFromGtm: gtm.useGa4Events
|
163
|
+
}));
|
164
|
+
}
|
153
165
|
}
|
154
166
|
// What do we do about this?
|
155
167
|
// This is something we did for B***an* so that they'd have GTAG events in GTM,
|
@@ -190,7 +202,7 @@ const AnalyticsProvider = function AnalyticsProvider(props) {
|
|
190
202
|
};
|
191
203
|
}, [analyticsConfig, registry]);
|
192
204
|
const preconnectLinks = usePreconnectLinks({
|
193
|
-
ga: consentedToTracking && !!(ga === null || ga === void 0 ? void 0 : ga.trackingId),
|
205
|
+
ga: consentedToTracking && (!!(ga === null || ga === void 0 ? void 0 : ga.trackingId) || !!(ga4 === null || ga4 === void 0 ? void 0 : ga4.trackingId)),
|
194
206
|
gtm: consentedToTracking && !!(gtm === null || gtm === void 0 ? void 0 : gtm.containerId)
|
195
207
|
});
|
196
208
|
return (React.createElement(AnalyticsContext.Provider, { value: value },
|
@@ -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;AAsChD,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,UAAU,EAAE,QAAQ;IACpB,iBAAiB,EAAE,QAAQ;IAC3B,uBAAuB,EAAE,QAAQ;IACjC,qBAAqB,EAAE,SAAS;IAChC,gBAAgB,EAAE,SAAS;IAC3B,eAAe,EAAE,GAAG;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;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B;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"}
|
@@ -17,11 +17,12 @@ export interface GA4Item extends GA4Categories {
|
|
17
17
|
index?: number;
|
18
18
|
quantity?: number;
|
19
19
|
}
|
20
|
-
export declare function ga4Tracker({ trackingId, additionalGtagTrackingIds, currency, brandCustomField, useArticleNumberAsId }: {
|
20
|
+
export declare function ga4Tracker({ trackingId, additionalGtagTrackingIds, currency, brandCustomField, useArticleNumberAsId, useGa4EventsFromGtm }: {
|
21
21
|
trackingId: string;
|
22
22
|
additionalGtagTrackingIds: string[];
|
23
23
|
currency: string;
|
24
24
|
brandCustomField: string;
|
25
25
|
useArticleNumberAsId?: boolean;
|
26
|
+
useGa4EventsFromGtm?: boolean;
|
26
27
|
}): Tracker;
|
27
28
|
export {};
|
@@ -21,7 +21,7 @@ function productToItem(product, selectedVariation, useArticleNumberAsId = false,
|
|
21
21
|
? product === null || product === void 0 ? void 0 : product.articleNumber
|
22
22
|
: (_a = product === null || product === void 0 ? void 0 : product.id) === null || _a === void 0 ? void 0 : _a.toString(), price: ((_b = selectedVariation === null || selectedVariation === void 0 ? void 0 : selectedVariation.price) === null || _b === void 0 ? void 0 : _b.incVat) || ((_c = product === null || product === void 0 ? void 0 : product.price) === null || _c === void 0 ? void 0 : _c.incVat), item_variant: (_d = selectedVariation === null || selectedVariation === void 0 ? void 0 : selectedVariation.values) === null || _d === void 0 ? void 0 : _d.join('_'), item_brand: getBrand(product, brandCustomField) }, item_categories);
|
23
23
|
}
|
24
|
-
export function ga4Tracker({ trackingId, additionalGtagTrackingIds = [], currency, brandCustomField, useArticleNumberAsId = false }) {
|
24
|
+
export function ga4Tracker({ trackingId, additionalGtagTrackingIds = [], currency, brandCustomField, useArticleNumberAsId = false, useGa4EventsFromGtm = false }) {
|
25
25
|
return {
|
26
26
|
name: 'ga4',
|
27
27
|
initBrowser({ config }) {
|
@@ -49,21 +49,24 @@ export function ga4Tracker({ trackingId, additionalGtagTrackingIds = [], currenc
|
|
49
49
|
// https://developers.google.com/tag-platform/devguides/consent#redact_ads_data
|
50
50
|
ga4()('set', 'ads_data_redaction', true);
|
51
51
|
}
|
52
|
-
|
53
|
-
if (
|
54
|
-
|
55
|
-
|
52
|
+
// We presume these are added from GTM
|
53
|
+
if (!useGa4EventsFromGtm) {
|
54
|
+
w.gtag('js', new Date());
|
55
|
+
if (process.env.REACT_APP_DEBUG_MODE === 'true') {
|
56
|
+
ga4()('config', trackingId, {
|
57
|
+
debug_mode: true
|
58
|
+
});
|
59
|
+
}
|
60
|
+
else {
|
61
|
+
ga4()('config', trackingId);
|
62
|
+
}
|
63
|
+
additionalGtagTrackingIds.forEach((id) => {
|
64
|
+
ga4()('config', id);
|
65
|
+
});
|
66
|
+
injectScript({
|
67
|
+
src: `https://www.googletagmanager.com/gtag/js?id=${trackingId}`
|
56
68
|
});
|
57
69
|
}
|
58
|
-
else {
|
59
|
-
ga4()('config', trackingId);
|
60
|
-
}
|
61
|
-
additionalGtagTrackingIds.forEach((id) => {
|
62
|
-
ga4()('config', id);
|
63
|
-
});
|
64
|
-
injectScript({
|
65
|
-
src: `https://www.googletagmanager.com/gtag/js?id=${trackingId}`
|
66
|
-
});
|
67
70
|
ga4();
|
68
71
|
},
|
69
72
|
consent(consents) {
|
@@ -147,7 +150,7 @@ export function ga4Tracker({ trackingId, additionalGtagTrackingIds = [], currenc
|
|
147
150
|
eventId
|
148
151
|
});
|
149
152
|
},
|
150
|
-
trackList({ listName, products, category }, _context, eventId) {
|
153
|
+
trackList({ listName, products, category = '' }, _context, eventId) {
|
151
154
|
const items = products.map((product, i) => {
|
152
155
|
var _a;
|
153
156
|
return (Object.assign(Object.assign({}, productToItem(product, null, useArticleNumberAsId, brandCustomField, category)), { price: (_a = product.price) === null || _a === void 0 ? void 0 : _a.incVat, item_list_name: listName, index: i }));
|
@@ -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;AACnF,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,GAAG,GAAG,GAAG,EAAE,CAAE,MAAc,CAAC,IAAI,CAAC;AAsBvC,SAAS,aAAa,CACpB,OAAgB,EAChB,iBAAiC,EACjC,oBAAoB,GAAG,KAAK,EAC5B,gBAAyB,EACzB,QAAiB;;IAEjB,MAAM,eAAe,GAAG,QAAQ;SAC7B,KAAK,CAAC,GAAG,CAAC;SACV,MAAM,CAAC,OAAO,CAAC;SACf,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE;QACpB,IAAI,CAAC,KAAK,CAAC,EAAE;YACX,GAAG,CAAC,aAAa,GAAG,CAAC,CAAC;SACvB;aAAM;YACL,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAyB,CAAC,GAAG,CAAC,CAAC;SACzD;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAmB,CAAC,CAAC;IAE1B,uBACE,SAAS,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,EACxB,OAAO,EAAE,oBAAoB;YAC3B,CAAC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa;YACxB,CAAC,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,EAAE,0CAAE,QAAQ,EAAE,EAC3B,KAAK,EAAE,CAAA,MAAA,iBAAiB,aAAjB,iBAAiB,uB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