In this post, we are going to see How to install Google Analytics in our WordPress website and you will be able to easily track all the important trackable things of your website,
It is very easy that you can easily use Google Analytics on any website. You can easily install to any WordPress website
How many Ways to Install Google Analytics
There are 2 ways to install Google Analytics on a website.
- By Google Analytics Code
- By Google Tag Manager
What I just told you, 2 ways to install Google Analytics, it uses 2 methods. If you are a beginner or are in the field of digital marketing,
then I especially suggest you learn a little bit about working on Google Tag Manager. If you do not understand the platform of the manager,
if you do not know how to use Google Tag Manager, then you will also get a solution on this website.
You can go and see it now in this Particular post we can install. How would that look on the website to Google Analytics then you will able to track your website data.
Requirements for Google Analytics Account
- Google Account
- Website in WordPress
How to Create Google Analytics Account
If you already have an account on Google Analytics, then it is a very good thing, if you do not, then with the help of the step I am telling you, you will be able to easily create your Google Analytics account on Google Analytics.
- 1. Search keyword Google Analytics on Google
- 2.Open the first result from the Google search engine
- 3.Click on set up for free button
When you click on setup for free button, you will open the option of Create Account
- 4.Fill Your Account Details
- 5.Click on the next button below down the page
After filling the account details, you have to click on the Next button
- 6.Select Your Platform type
If you are creating Google Analytics for website only then select WEB option. if you are creating for Apps then you can select Apps option. if you want to use Google Analytics on both Apps and Web then you can choose Apps and Web Option.
I have website platform, so I have chosen the WEB option
- 7.After selecting the platform you have to click on the Next button.
- 8. Fill Your website name, website URLs, website category, and Reporting time zone.
- 9.Then click the Create Button.
- 10.Tick Google Analytics Terms and Conditions and click on accept button below down.
Congratulations You have created a Google Analytics Account
Now you have got a code, with the help of which you can track the website data by inserting it into the head tag of your website.
How to connect the website to google analytics in WordPress
By Google Analytics code to install in wordPress website
You have to copy the one you have on your Google Analytics account.
1.Copy Tracking Code from Google Analytics
2. Open your WordPress Admin Panel.
3. Go to Appearance Option and Select Theme Editor in the WordPress admin panel
4. Search Theme header(header.Php) file on your theme editor section then open it.
5. Paste your code between the Header tag on the Theme header (header.PHP file).
After following all these steps, your account will be ready, now all the activities which are on your WordPress website will be found on the Google Analytics website.
By Google Tag Manager to install google analytics in WordPress website
We have learned how to install Google Analytics in a WordPress website with the help of Google Analytics code, that is also very easy,
Now we are going to teach how we can install Google Analytics in a WordPress website with the help of Google Tag Manager
1.Search Google tag Manager on Google Search Engine
2.Open First Result from Google search engine (Make sure Your google account logged in Browser)
3.Click on Click Here to create an account option
4.Fill Your Account details on account setup
You have to Fill Your account Name, and Country,
5.Fill Your details in Container setup then
In Container setup you have to fill container name and select your Targeted Platform then Click on create button
Congratulation You have Created a Google Tag Manager Account.
Now you will have found the tracking code of Google Tag Manager, you should copy the code first.
How to Insert Google Tag Manager Code in WordPress website
1.Copy Your Head and body Code From Your google tag manager
2. Go to your WordPress admin panel
3. Go to appearance option and click on theme editor option
4.Find Theme header (header.Php) file then open it
5.Google tag manager tracking code paste between the Head and Body tag.
Now your account is set up
Now what you have to do is let Google Analytics on your website with the help of Google Tag Manager,
So let’s know how we connect our website to Google Analytics with the help of Google Tag Manager
Connect Google Analytics to the website with the help of Google Tag Manager
1.Click on add new tag button
2. Insert Tag Name
3.Click on Tag Configuration
4.Choose Google Analytic:Universal Analytic from Tag configuration Popup.
5. Fill your Select your Track type(Pageviews) and Click to the new variable option
6.Now, insert your google analytic tracking code
7.click on the save button top right corner
Congratulation Now your tag is setup.
If you want to see that Google Tag Manager is well set up on your website, for this you will find the option of preview button in the top right corner and click on it and you can also use a Chrome extension to check Google Tag Manager.
How Google Analytics Works?
In this article you are going to know the basics of how Google Analytics works, we’ll look at how Google Analytics collects data, including the Google Analytics tracking code.
And we’ll also cover how you can modify the data coming into reports, using the different configuration options.we have to collect data before Google Analytics tracking code can use that report. So the first step is data collection.
Now Google Analytics can collect data in many different ways. The most common is the use of the Google Analytics tracking code. This is usually implemented using Google Tag Manager so we actually use Tag Manager to deploy the tracking code to our website.
We can also collect data from Empey HTML or Instant Mobile Pages as well as from mobile apps and feed the data directly into Google Analytics using the measurement protocol so that it is around the data collection. The next stage is data processing.
This is where the configuration data we have done inside Google Analytics applies, as it is processed, things like filters will be applied at this stage, the target configuration and above. Finally, there is reporting.
This is where we can access that process data through a web interface or using the Google Analytics API.
We can also use other tools, for example, Google Data Studio, Google Sheets, and much more and it’s actually still using the API, but pulling that data into a different device, so we Can represent that data so imagine data and presented in different ways.
You can do customization and all of these steps. For example, when you are collecting data, Google Analytics will automatically collect page views for the pages that people are viewing on your website, but you can also send additional custom data to Google Analytics,
E.g. For people who scroll out, click on the events outbound link to see the post and more. You can see my post on tracking events with Google Tag Manager to start collecting these custom interactions when the data is processed, you can also choose to import the data into Google Analytics to expand your report Can.
For example, you can import advertising cost data from platforms such as Facebook, LinkedIn, and Twitter in your reports. If you are interested in importing this type of data, see my post on importing data into Google Analytics.
And you can customize the way you were reporting using the built-in options in Google Analytics, including custom reports and dashboards, but we can go even further, as I mentioned,
We can see e.g. Create dashboards and reports, inside Google Data Studio. So now that we have covered the three main areas of Google Analytics, how that data is actually reported inside Google Analytics through collections.
How does google analytics tracking code work?
Let’s look at how the Google Analytics tracking code works in more detail. Here we can see analytics dot js. Now, this is the Google Analytics tracking code, just remember that it can be contained inside Google Tag Manager.
Now the important thing is that the tracking code is that it should be placed on all the different pages of our site. If we miss the age, we are going to have a difference in content. And we are also likely to see some self-referrals from our own website inside our report.
So really important. Place code on all pages of our site, perhaps using Google Tag Manager. From here on, what happens is the tracking code checks whether that user’s browser has an existing browser cookie or not. If there is no cookie, it will create a new cookie. And if there is an existing cookie or cookie for us.
What Happens Now A Google Analytics tracking code collects all the details about the user, including information about which page they are on and what is next. And all this is sent to Google servers and from here the hit is processed to the hit that is implemented, and then we can finally see that detail. In this case, a four-page view of our Google Analytics report.
That’s why the Google Analytics tracking code works. It is also important to note that the tag manager load, as well as the tracking manager, is asynchronous or async. And this means that the tracking code will not delay the loading of our site.
So even though we keep the code or tag manager at the top of all our pages, it is not really going to stop that page and important content from being loaded, because someone visits our site.
We’ve already talked briefly about modifying what’s collected in Google Analytics, so we can supplement page usage with event transactions and other types of hits. And we’ve also talked about importing data and customizing your reports, but there are more ways than just modifying and optimizing your data inside Google Analytics.
If you want to permanently modify the data that arrives in your report, the best way to do this is to use a filter, allowing you to decide what is included and what is not included in your report is.
The most common filter people use in Google Analytics is an IP filter. This is where we stop showing our traffic in our reports by leaving our own IP address. Let’s see how we can create a filter in Google Analytics.
So to modify my data using a filter I come to the admin section and select the filter. From here I can click on Add filter. And now I can name my filter, in this case,
How to Create Simple IP address Exclusion Filter in Google Analytics
I am going to create a simple IP address exclusion filter. From here I can use either a predefined filter that has a simplified template or a custom filter so that you can actually select
Enter IP address and IP address. Now this is completely fine, but you have the option to do the same in the custom filter and so I can click on the custom. And in this particular case,
I’m going to filter based on the IP address. And I can enter my IP address now. It is also useful if you have rain, actually, enter a regular expression in your filter pattern inside your filter configuration. Once I’ve added my IP address I simply save.
And now I am going to show my own traffic inside Google Analytics, preventing it from moving forward. So this shows you how you can permanently modify the data shown in a particular reporting view inside Google Analytics.
I hope that you will understand this thing very well, share it as much as you can with your friends. If you still have a problem after this, then you can tell me by writing in the comment box what the problem is.