The current best practice way of doing it is using G event. The one that I'm the most proud of is Amazon uses it for their internal API tools. Every single API call goes through requests, which is astonishing because it means like it's powering the entire internet.