Add Google Analytics to your website
Can I add Google Analytics to my website?
Yes, you can add a Google Analytics tracking code to your website to collect visitor data. Follow the steps below.
1. Get your Google Analytics tracking code
Go to Google Analytics at https://analytics.google.com/, sign up, and log in. Follow the prompts to add your website, and provide an account name, a website name, and your website's domain name.
Select an industry category and reporting time zone.
When finished, click Get Tracking ID.
Copy the JavaScript tracking code from the global site tag (gtag.js) section for site verification.
2. Return to your website's admin console, navigate to website management > site verification, and paste the code into the text box.
Paste the tracking code from the previous step into the input box in the HTML tag verification section. Then, click save in the upper-right corner.
3. After adding the code, wait 24 to 48 hours. Then, log in to your Google Analytics account to view your website statistics.