Added Analytics function to track user hits by ip address, referrer and user agent