If you are developing a new website or you already have some website and want to know how many visitors are visiting your website daily, How is the user behaviour on your website, how many of them are visiting on mobile and much more questions can be answered once you add tracking code provided by Google Analytics to your website.
Google Analytics provides a simple tracking code in java script which you can copy and paste into your website’s head html tag. For this first, you will have to add your website to google Analytics, and get the tracking code as below,
Login to Google Analytics https://analytics.google.com/analytics/web/#/
Once logged in, click on “Admin” from left sidebar bottom and from Accounts tab as shown below, click on “Create Account”
From opened page, add “Account Name” and click “Next”
From the next opened page, Select “Web” as shown below and click “Next”
From next tab, Give Name to your property, enter website, select category, timezone and click on Create. You will be prompted to accept the license.
After accepting the license, you will be shown a window which has a java script code which you can copy and paste to your website’s HEAD tag, like below,