How to add Google Analytics to track visitors to website ?

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

Once logged in, click on “Admin” from left sidebar bottom and from Accounts tab as shown below, click on “Create Account”

Google Analytics

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,

Google Analytics3
How to pull data from Google Sheets... x
How to pull data from Google Sheets to HTML table

Leave a Comment

Sign up to our newsletter!

ADB Commands Android Android Applications Android Build system Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development, Debugging and Performance Tools Development and Build Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia NDK / Middleware / HAL Operating System Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web Design and Development Website Hosting Wordpress Yocto Embedded Linux