Added legacy support for Google Analytics