@blotoutio/providers-google-analytics-4-sdk 0.37.0 → 0.38.1
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/index.cjs.js +4 -4
- package/index.js +4 -4
- package/index.mjs +4 -4
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -36,9 +36,6 @@ const initGA4 = (ID, executionContext) => {
|
|
|
36
36
|
functional_storage: 'granted',
|
|
37
37
|
personalization_storage: 'granted',
|
|
38
38
|
security_storage: 'granted',
|
|
39
|
-
ad_storage: 'denied',
|
|
40
|
-
ad_user_data: 'denied',
|
|
41
|
-
ad_personalization: 'denied',
|
|
42
39
|
});
|
|
43
40
|
}
|
|
44
41
|
upsert(executionContext, packageName, (providerMap) => providerMap.set('gtag', true), () => new Map());
|
|
@@ -77,6 +74,9 @@ const getItems = (contents = []) => {
|
|
|
77
74
|
item_id: content.id.toString(),
|
|
78
75
|
quantity: content.quantity || 1,
|
|
79
76
|
};
|
|
77
|
+
if (content.sku) {
|
|
78
|
+
data['item_sku'] = content.sku;
|
|
79
|
+
}
|
|
80
80
|
if (content.title) {
|
|
81
81
|
data['item_name'] = content.title;
|
|
82
82
|
}
|
|
@@ -301,7 +301,7 @@ const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
|
301
301
|
}
|
|
302
302
|
return {
|
|
303
303
|
loaded: isLoaded,
|
|
304
|
-
sdkVersion: "0.
|
|
304
|
+
sdkVersion: "0.38.1" ,
|
|
305
305
|
};
|
|
306
306
|
};
|
|
307
307
|
|
package/index.js
CHANGED
|
@@ -37,9 +37,6 @@ var ProvidersGoogleAnalytics4Sdk = (function () {
|
|
|
37
37
|
functional_storage: 'granted',
|
|
38
38
|
personalization_storage: 'granted',
|
|
39
39
|
security_storage: 'granted',
|
|
40
|
-
ad_storage: 'denied',
|
|
41
|
-
ad_user_data: 'denied',
|
|
42
|
-
ad_personalization: 'denied',
|
|
43
40
|
});
|
|
44
41
|
}
|
|
45
42
|
upsert(executionContext, packageName, (providerMap) => providerMap.set('gtag', true), () => new Map());
|
|
@@ -78,6 +75,9 @@ var ProvidersGoogleAnalytics4Sdk = (function () {
|
|
|
78
75
|
item_id: content.id.toString(),
|
|
79
76
|
quantity: content.quantity || 1,
|
|
80
77
|
};
|
|
78
|
+
if (content.sku) {
|
|
79
|
+
data['item_sku'] = content.sku;
|
|
80
|
+
}
|
|
81
81
|
if (content.title) {
|
|
82
82
|
data['item_name'] = content.title;
|
|
83
83
|
}
|
|
@@ -302,7 +302,7 @@ var ProvidersGoogleAnalytics4Sdk = (function () {
|
|
|
302
302
|
}
|
|
303
303
|
return {
|
|
304
304
|
loaded: isLoaded,
|
|
305
|
-
sdkVersion: "0.
|
|
305
|
+
sdkVersion: "0.38.1" ,
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
|
package/index.mjs
CHANGED
|
@@ -34,9 +34,6 @@ const initGA4 = (ID, executionContext) => {
|
|
|
34
34
|
functional_storage: 'granted',
|
|
35
35
|
personalization_storage: 'granted',
|
|
36
36
|
security_storage: 'granted',
|
|
37
|
-
ad_storage: 'denied',
|
|
38
|
-
ad_user_data: 'denied',
|
|
39
|
-
ad_personalization: 'denied',
|
|
40
37
|
});
|
|
41
38
|
}
|
|
42
39
|
upsert(executionContext, packageName, (providerMap) => providerMap.set('gtag', true), () => new Map());
|
|
@@ -75,6 +72,9 @@ const getItems = (contents = []) => {
|
|
|
75
72
|
item_id: content.id.toString(),
|
|
76
73
|
quantity: content.quantity || 1,
|
|
77
74
|
};
|
|
75
|
+
if (content.sku) {
|
|
76
|
+
data['item_sku'] = content.sku;
|
|
77
|
+
}
|
|
78
78
|
if (content.title) {
|
|
79
79
|
data['item_name'] = content.title;
|
|
80
80
|
}
|
|
@@ -299,7 +299,7 @@ const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
|
299
299
|
}
|
|
300
300
|
return {
|
|
301
301
|
loaded: isLoaded,
|
|
302
|
-
sdkVersion: "0.
|
|
302
|
+
sdkVersion: "0.38.1" ,
|
|
303
303
|
};
|
|
304
304
|
};
|
|
305
305
|
|