Code for various analytics packages.