Portable wrapper for Google Analytics