From c8c6f7bcdaddaedde38af6db8493b7871de3377c Mon Sep 17 00:00:00 2001 From: dalyd14 Date: Thu, 26 Aug 2021 15:54:47 -0400 Subject: [PATCH] Fix for when Google Ads track is calling RudderElement.properties instead of RudderElement.message.properties --- integrations/GoogleAds/browser.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integrations/GoogleAds/browser.js b/integrations/GoogleAds/browser.js index 02e65ffdde..634fabff92 100644 --- a/integrations/GoogleAds/browser.js +++ b/integrations/GoogleAds/browser.js @@ -64,10 +64,10 @@ class GoogleAds { const { eventName } = conversionData; const sendToValue = `${this.conversionId}/${conversionLabel}`; const properties = {}; - if (rudderElement.properties) { - properties.value = rudderElement.properties.revenue; - properties.currency = rudderElement.properties.currency; - properties.transaction_id = rudderElement.properties.order_id; + if (rudderElement.message.properties) { + properties.value = rudderElement.message.properties.revenue; + properties.currency = rudderElement.message.properties.currency; + properties.transaction_id = rudderElement.message.properties.order_id; } properties.send_to = sendToValue; window.gtag("event", eventName, properties);