pb-sxp-ui 1.15.32 → 1.15.33

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.js CHANGED
@@ -652,6 +652,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
652
652
  const [playbookType, setPlaybookType] = useState();
653
653
  const [chatlabsId, setChatlabsId] = useState();
654
654
  const finalPageData = useMemo(() => pageData !== null && pageData !== void 0 ? pageData : data, [pageData, data]);
655
+ const pixelPvStatusRef = useRef(false);
655
656
  const isShowConsent = useMemo(() => {
656
657
  var _a, _b, _c, _d;
657
658
  return (((((_d = (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.consent) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.privacy_necessity) && !isAgreePolicy && !isEditor) || isOpenConsent) &&
@@ -1015,6 +1016,10 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1015
1016
  }
1016
1017
  }
1017
1018
  if (eventName === 'PageView' && (pixelEventParamsJson === null || pixelEventParamsJson === void 0 ? void 0 : pixelEventParamsJson.event_name) === 'PageView') {
1019
+ if (!pixelPvStatusRef.current) {
1020
+ pixelPvStatusRef.current = true;
1021
+ return;
1022
+ }
1018
1023
  const currentUrl = window.location.href;
1019
1024
  const newUrl = updateQueryStringParameter(currentUrl, 'timestamp', Date.now());
1020
1025
  history.pushState({ path: newUrl }, '', newUrl);