Are you looking for an option to add Google Analytics into your WordPress Site without a plugin? If y'all are wondering "how to install Google Analytics on WordPress website", this guide will assist you lot.

Importance Of Google Analytics For Your WordPress Website:

Some of the major benefits of adding Google Analytics lawmaking to your WordPress website:

  1. Identify the traffic sources and the countries where the traffic comes from
  2. Understand your audience better with Google Analytics integration to WordPress website
  3. Track the web pages and blogs, and know what type of content generates a lot of traffic
  4. Rails the conversions and acquirement generated
  5. Improve your website user experience

Permit's see how to connect Google Analytics into a website without using any plugin.

Here we go!

Google Analytics iii

You lot're simply 5 steps away from adding the tracking code manually for your site.

Let'due south see what is the best way to install Google Analytics on the WordPress website.

Step #1: Create a Google Account

Create a Google account if you lot oasis't, and set up a property.

Google Analytics

Step #2: Log In To Google Analytics

Now sign into Google Analytics. Select your e-mail address and log in.

Stride #3: Get Your Google Analytics Tracking ID & Copy Tracking Code

GA

After you've logged in into Google Analytics, go to the Admin at the bottom-left corner of your Analytics dashboard.

You can see three columns in the Admin settings. In the middle cavalcade, go to the Tracking Info and and then select the Tracking code link.

You'll be able to run across the Tracking Code tab to show your property's unique tracking ID. You will come across the complete Google Analytics tracking code.

The Tracking Code tab volition open and show your property'due south unique tracking ID, along with the total Google Analytics tracking code.

After getting your GA tracking code, y'all will need to re-create the full code.

GA anim

Step #4: Log In To WordPress And Add together The Code

Log in the admin of your WordPress website.

One time logged in into the admin panel, get to the Appearance > Theme Editor tab in the sidebar. On this screen, yous can encounter all of your site'due south files listed on the correct side, and each file'south code snippet displayed in the middle of the page.

GA

If you're only planning to track visitor activity on some specific pages of your website, then add code in the particular page.

But if you desire to add together lawmaking for the entire site, then click the header.php file along with the right-hand side. Click on it to open up and the code editor will be displayed in the eye of the screen.

Notice the endmost </head> tag. Once you find it, paste Google Analytics tracking code simply before the </head> tag. Subsequently that click on the "Update File" button to salve your changes.

Pace #5: Examination Your Connection To Google Analytics

After adding Google Analytics code to WordPress, it takes 24 to 48 hours for new information to populate.

Then while you won't see any traffic to your site immediately, you can retest the connexion that you take established.

Check by returning to the Tracking Lawmaking tab in Google Analytics. To the right of your Tracking ID is a Status Update. To confirm everything is working properly, click on Send Exam Traffic. This will open up your site in a small window.

GA

If all is well, your account should update to testify an active user count of 1. Wow!

If you don't meet user count immediately, be patient. Google says this can accept up to a infinitesimal.

Google Analytics iv

In GA4, only 2 to iii steps are unlike from GA3.

Step #i: Create A Google Business relationship

Same as GA3.

Footstep #2: Log In To Google Analytics

Same as GA3.

Stride #3: Go Your Google Analytics Stream ID & Copy Stream Code

After logged in into Google Analytics, Go to the Admin at the bottom-left corner of your Analytics dashboard.

You lot would come across 3 columns of Admin settings. In the middle column, click on Data Streams and then click the Spider web.

Afterwards that Add together your site URL and click on the "Create Stream" push.

After that go to the "Global site tag" tab and need to copy the full code.

GA anim

Stride #4: Log In To WordPress And Add The Lawmaking

Same every bit GA3.

Step #5: Test Your Connection To GA

After adding Google Analytics code to WordPress, it takes 24 to 48 hours for new data to populate.

And then while you won't commencement seeing the data on any traffic to your site immediately, yous can examination the connectedness you've established.

If the active user count doesn't announced immediately, exist patient. Google says this can accept up to a minute.