The Google Analytics tracking code is a snippet of JavaScript that collects and sends data to Analytics from a website.