Great question — answering as the UphillTech team:
I just set this up today! Here is the documentation: https://developers.google.com/analytics/devguides/collection/analyticsjs/events No, you won't be able to send events to your affiliates Google Analytics. You can only send events to your own Google Analytics. It's your site, so you would have the Google code with your user id. All events would go to your Google console. You can't have multiple users tracking the same site in their own console. (You might if you try really hard, but I'm sure Google would disapprove and not support that.) For a sale event, this is what I used: -if session[:deposit].to_f > 0 :javascript if (ga!=null) ga('send', 'event', 'user', 'deposit', 'amount',...
Full answer by Chloe: https://webmasters.stackexchange.com/a/58278 (CC BY-SA 3.0).
Need it done for your business? UphillTech.