Step 1. Go to Google analytics and click Admin to go to the administration page.
Step 2. Click to create Property. Select the measure you want, enter the website name and URL, and click create. (If you are querying the existing website tracking code, skip this step and go to step 3.)
Step 3. Under the Tracking info menu, Tracking Code submenu showing the Global Site Tag (gtag.js) tracking code for this property.
Copy and paste this code as the first item into the of every webpage you want to track.