When you sign in to Google Analytics, Google will give you a tracking code. This tracking code needs to be placed on every page of your website. This allows Google to track visitors on your site along with a lot of other metrics such as type of browser and location. This information is sent to Google, which is then collated in your Google Analytics account. Using other tools such as Google Tag Manager or a WordPress plugin can help with this task.