Trying to add some custome code to a Wix store

Trying to track sales with the following code - I thought -“totals” would pull through the sales total for a purchase - but it doesn’t seem to work. Code is: conv(‘track’, ‘sale’, {‘transactionId’:‘orderGuid’, ‘ordervalue’:totals, ‘voucher’:‘FREEDEL’, ‘currency’:‘GBP’, ‘event’:407244});