I had a task to track GA goals. A problem was some action has redirection to third-party resource OAuth.
I decided to use RoR's flash. Category and action information is stored in 'ga_action' key in flash.
The GA's default embed code was modified a little bit.