analytics-next icon indicating copy to clipboard operation
analytics-next copied to clipboard

In a sandboxed environment, addEventListener may not behave as expected

Open phudangthe opened this issue 2 years ago • 0 comments

Hi All,

I added the Segment snippet into my Shopify Custom Pixel (https://help.shopify.com/en/manual/promoting-marketing/pixels/custom-pixels/code#third-party-sdk) and use object analytics to track events, it worked well until 05 Oct 2023, seems the function analytics.track("Checkout Started", trackingData) doesn't push tracking data to Segment. I'm seeing a warning message in web browser console "In a sandboxed environment, addEventListener may not behave as expected."

image

Update: I have tried to deactive Google Tag Manager in Destination, then tracking data can be sent to Segment.

Please help to check.

Thanks & Regards, Phu

phudangthe avatar Nov 17 '23 07:11 phudangthe