Google analytics overview
What is google analytics
Google Analytics is a service which provided by Google to analyze traffic to your application. It will allow you to track following in your web or mobile application
Number of users using the application
Where do they come from
User behaviors
What system do they used(OS and browser details)
What are the most visited content in your application
How to enable google analytics
Sign in to Google Analytics
To use google analytics, Create or sign in to your Analytics account.
Go to Google analytics site
If you are new to Google analytics, create a account
If you have a valid google analytics account, Sign in to that
Add an account and property
In order to setup the analytics, you have to perform following actions in your account
Create an account
Create a property
Set up the Analytics tag
Add tag to your website
Create an account
If you've already been using Analytics, you already have an account and may not want to add another one
If you have not already signed in, sign in to Analytics
Click Admin.
In the Account column, click Create Account.
Enter an account name.
Configure the data-sharing settings to control which data you share with Google.
Click Next to add the first property to the account.
Create a property
Enter a name for the property.
Select the reporting time zone
Click Next and provide information about your business
Click on create
Set up the Analytics tag
If you created a Google Analytics 4 property, Click Add stream, then click on Web. You will see your tracking code and Global Site Tag under data streams → web → Data stream
If you don't see a Data Streams option in the Property column, you can find it inside Tracking Info → Tracking Code
Copy and paste the entire code section to <head> section in every page you want to track on your website
Now we are ready with the Google analytics setup. You can then use the Realtime report to verify that you're receiving data.
That's all for today and see you soon in another very exiting tutorial