Added support for providing custom variables to analytics events.