Posts tagged with bing

I need to create a function on which will record the 'Total Order value' on my order confirmation page in woocommerce, the function will be be used by microsoft ads to record the value of order against what i have spent, anybody any experience of doing this?

The code provided by microsoft is:

window.uetq.push('event', '', {'revenue_value': Replace_with_Variable_Revenue_Function(), 'currency': 'Replace_with_Currency_Code'});

So i need to create a function called 'revenue_value' for example which will pass the total order value to the above code. Anybody point me the right direction.