Pulling Revenue into Code

This example was given a few months ago in another post but was never answered. Seeing if someone has answers now.

Trying to include a Pixel amount to report about revenue, cause most of the thank you page located in iframe.
In example I have to run function “report_revenut(‘35.45’, ‘EUR’);” where 35.45 is amount of cart total which I have to take from thank you page itself.
Could you please provide a code sample how to get this “35.45” number?

Have a look at using the Wix API for the Thank You Page itself.
https://www.wix.com/corvid/reference/$w.ThankYouPage.html

Then you can use something like the getOrder function.
https://www.wix.com/corvid/reference/$w.ThankYouPage.html#getOrder

Then you have a choice to use Order, LineItem or Totals.
https://www.wix.com/corvid/reference/$w.ThankYouPage.html#Order
https://www.wix.com/corvid/reference/$w.ThankYouPage.html#LineItem
https://www.wix.com/corvid/reference/$w.ThankYouPage.html#Totals