diff --git a/src/v0/destinations/ga4_v2/customMappingsHandler.js b/src/v0/destinations/ga4_v2/customMappingsHandler.js index c001fefe65..1eb1c2c868 100644 --- a/src/v0/destinations/ga4_v2/customMappingsHandler.js +++ b/src/v0/destinations/ga4_v2/customMappingsHandler.js @@ -139,7 +139,7 @@ const boilerplateOperations = (ga4Payload, message, Config, eventName) => { ga4Payload.events[0].name = eventName; const integrationsObj = getIntegrationsObj(message, 'ga4'); - if (isHybridModeEnabled(Config) && integrationsObj && integrationsObj.sessionId) { + if (isHybridModeEnabled(Config) && integrationsObj?.sessionId) { ga4Payload.events[0].params.session_id = integrationsObj.sessionId; }