to my knowledge there is no basket left when you arrive at the thankyou-page.
therefore i save the basket parameters for google analytics in a session cookie one step earlier: on the order page.
on the thankyou-page i get the desired values from my session-cookie and push them to google analytics