I find this function name too generic to really read.  Why not call this analytics_callback?