Help with referencing Wix variables in JavaScript

I want to put some JavaScript code on the thank you page after people finish checking out that would be sent to Google Analytics to help with affiliate sales. An example of the code that I’m trying to write can be fount here: [UA] Universal Analytics ecommerce - Tag Manager Help . I need to get the values of the order number and total value of the order after all the discount codes have been applied but before the shipping and tax values. What are the names of the variables I need access to get this done? I understand I might have to do some math on my end to get the values I need, so what variables would I need to give me what I need? Lastly, is there anything I need to reference in order to get access to those variables? Any help would be greatly appreciated.

Hi, I’m looking to do the same thing. Were you able to figure this out? Even with Corvid now, I can’t find a way to get to those variables.