Google analytics is used to measure, collect, analyze and report on internet data to understand how a website is used and how to optimize usage. It allows users to better understand visitors, make data-driven decisions, and improve conversions and sales. Key aspects of analytics include setting objectives, defining key performance indicators and metrics, analyzing acquisition, behavior and outcomes, and taking action based on insights rather than just reporting data. The overall goal is to focus analytics on business priorities and goals.