@@ -172,7 +172,7 @@ export default class GA {
172
172
const { event, properties, name } = rudderElement . message ;
173
173
const options = this . extractCheckoutOptions ( rudderElement ) ;
174
174
const props = rudderElement . message . properties ;
175
- const { products } = properties ;
175
+ const { products, revenue } = properties ;
176
176
let { total } = properties ;
177
177
const data = { } ;
178
178
const eventCategory = rudderElement . message . properties . category ;
@@ -196,7 +196,7 @@ export default class GA {
196
196
window . ga ( `${ this . trackerName } ecommerce:addTransaction` , {
197
197
affiliation : properties . affiliation ,
198
198
shipping : properties . shipping ,
199
- revenue : total ,
199
+ revenue : total || revenue ,
200
200
tax : properties . tax ,
201
201
id : orderId ,
202
202
currency : properties . currency ,
@@ -280,7 +280,7 @@ export default class GA {
280
280
window . ga ( `${ this . trackerName } ec:setAction` , "purchase" , {
281
281
id : orderId ,
282
282
affiliation : props . affiliation ,
283
- revenue : total ,
283
+ revenue : total || revenue ,
284
284
tax : props . tax ,
285
285
shipping : props . shipping ,
286
286
coupon : props . coupon ,
0 commit comments