pb-sxp-ui 1.15.18 → 1.15.19
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/dist/index.cjs +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +8 -3
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/context/SxpDataSourceProvider.js +8 -3
- package/lib/core/context/SxpDataSourceProvider.js +8 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -1006,13 +1006,18 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
1006
1006
|
return uri + separator + key + '=' + value;
|
1007
1007
|
}
|
1008
1008
|
}
|
1009
|
-
if (eventName === 'PageView') {
|
1009
|
+
if (eventName === 'PageView' && (pixelEventParamsJson === null || pixelEventParamsJson === void 0 ? void 0 : pixelEventParamsJson.event_name) === 'PageView') {
|
1010
1010
|
const currentUrl = window.location.href;
|
1011
1011
|
const newUrl = updateQueryStringParameter(currentUrl, 'timestamp', Date.now());
|
1012
1012
|
history.pushState({ path: newUrl }, '', newUrl);
|
1013
1013
|
}
|
1014
|
-
|
1015
|
-
|
1014
|
+
else {
|
1015
|
+
const body = getEventParamsByJson(pixelEventParamsJson);
|
1016
|
+
window === null || window === void 0 ? void 0 : window.fbq('track', pixelEventParamsJson === null || pixelEventParamsJson === void 0 ? void 0 : pixelEventParamsJson.event_name, body);
|
1017
|
+
if (eventName === 'PageView' && typeof (window === null || window === void 0 ? void 0 : window.gtag) === 'function') {
|
1018
|
+
window === null || window === void 0 ? void 0 : window.gtag('event', 'page_view');
|
1019
|
+
}
|
1020
|
+
}
|
1016
1021
|
}
|
1017
1022
|
else if (eventName === 'PageView' && typeof (window === null || window === void 0 ? void 0 : window.gtag) === 'function') {
|
1018
1023
|
window === null || window === void 0 ? void 0 : window.gtag('event', 'page_view');
|