diff --git a/src/v1/sources/shopify/transform.js b/src/v1/sources/shopify/transform.js index b0785bacc4..e645d1b692 100644 --- a/src/v1/sources/shopify/transform.js +++ b/src/v1/sources/shopify/transform.js @@ -429,9 +429,9 @@ const processIdentifierEvent = async (event, metricMetadata) => { function processPixelEvent(inputEvent) { const { name, query_parameters, clientId, data } = inputEvent; - const { checkout } = data; - const { order } = checkout; - const { customer } = order; + const { checkout } = data ?? {}; + const { order } = checkout ?? {}; + const { customer } = order ?? {}; let message; switch (name) { case PIXEL_EVENT_TOPICS.PAGE_VIEWED: