Home > The Blog about Blogging > WordPress > How to Easily Install Google Analytics GA4

How to Easily Install Google Analytics GA4

On March 26, 2022, Google announced the end of what we all know to be “Google Analytics” or what we refer to as “GA”. Many aren’t even sure what universal analytics even is, but it’s just your standard setup of Google Analytics. Most users run free accounts (so do we) and it’s the gold standard for web tracking.

If you want to advertise, get into an ad network, or do sponsorships, you need to be running Google Analytics. This is what advertisers refer to when they want to know your stats.

Over two years ago, Google came out with their next version of Google Analytics, which is referred to as “GA4” since it’s the fourth version of their platform. This was a huge change that most have not jumped into. Ad agencies, ad networks, and other brands still do not use it or can’t use the data from it when analyzing your site for a deal. But they will have to get up to speed, as GA4 is going to become the standard.

If you’re not sure you want to take on this change/addition, let us know and we can help. You can contact us here.

When is the old Google Analytics being Retired?

The good news is Google is giving us plenty of time to start changing over. Universal Analytics is going to stop tracking on July 1, 2023. Then they will give us at least six months to access the historical data. My hope is they will give us all an easy way to export all our data for every property. Some of us have been blogging since 2004 and have years and years of quality Google Analytics tracking data.

So we have over a year (at the time of this post) to get GA4 installed and tracking. Luckily it takes about 5 minutes to do and I’m going to show you how. If you don’t want to deal with text and screenshots, then you can just jump down to the video.

How to Setup GA4 to Track Alongside Universal Analytics

Important note – there is a way to connect GA4 property to the code you already have on your site, but from my experience, the tracking data was not reliable, so we recommend just adding both.

For those thinking you have to just stop the current setup of Google Analytics cold turkey, you do not!

You can actually run both Universal (what you’re used to) and GA4 (the new one) concurrently on the same site because they are actually two different properties. So this is a perfect time to get it setup, so you can get a little over a years worth of data in the new GA4 property before Google retires Universal.

This process takes about 5 minutes and the hardest part will probably be figuring out how you actually integrate Google Analytics into your site. Since it’s different for each site and there about 100 ways to actually add tracking code to a site, I’m going to run over the most common way we see it, using the Insert Headers and Footers plugin.

Step 1 – Log into your GA account and click the admin in the lower left corner.

screenshot of select admin link in google analytics interface

Step 2 – In the middle property column, click “Create Property”

screenshot of create property in google analytics

Step 3 – Fill in the property details

You will want to name the property (I usually recommend just your website name and then add “GA4” so you know)

Select the reporting time zone. It would be good if you have it set to the same time zone you live in.

Select your currency.

Hit the “Next” button

screenshot of spaces to fill in google analytics data

Select your Industry category (if you can’t find one that matches, just pick other)

Select your Business size

Choose what you want to measure. I typically just click the first box as this step doesn’t have any bearing on anything.

Click the “Create” button.

screenshot of google analytics industry selections

Step 4 – Choose the web platform to create your data stream

Unless you are using an Android or iOS app, you will pick web as your platform.

screenshot of web data stream option

Fill in your URL (make sure your protocol is correct – HTTP vs HTTPS) and make sure you URL is exactly as it is in the browser. If it has www, include it. If not, do not include it.

Name the Stream whatever you want. I typically just use the site name.

You can deselect some enhanced measurements by checking the little cog wheel, but I recommend keeping this all the same.

Click the “Create stream” button.

screenshot of data stream website URL and name

Step 5 – Copy the new tracking code

This option allows you to either grab the new code under the Tagging Instructions section.

We recommend doing the Add new on-page tag, but if you want to connect your new property to your current universal property, you can do so using the “use existing on-page tag”. While this can work, we have seen the tracking data is not consistent for some reason, so we do recommend just adding the new on-page tag. You can run this and universal tags concurrently.

screenshot of google analytics ga4 tracking code

Step 6 – Go to your site and paste the new code in

This step is going to be very different for each site. You will need to look through your current site to see how Google analytics was implemented. There are about 100 ways you can do it, so it might be through a plugin, the theme, the customizer, etc. Find this out first.

If you use the Insert Headers and Footers plugin for your tracking codes, then you will take the new code copied from above and just go below the current tag and paste it in. You will now see two tracking tags on there.

screenshot of insert headers and footer plugin

If you use something like Monster Insights or Exact Metrics, you can grab just the Measurement ID from Step 5 above (starts with G-) and go into the settings of either of these plugins and there is a dual tracking option where you copy in the new ID and hit save.

If you use the GA Google Analytics plugin, it doesn’t currently support dual tracking, so you will need to install the Insert Headers and Footer plugin and put the new code in.

Here are some potential places to look on your site (not exhaustive)

  • If you use Genesis, look to see if you have the Simple Hooks plugin and check the first box. You can also check under Genesis > Theme Settings > Header/Footer scripts and then in the header box
  • If you use Site Kit (I don’t recommend this plugin), you can connect a second tracking code according to their FAQ
  • If you use Divi, check under Divi > Theme Options and then in the Integrations tab.
  • If you use Astra, check to see if you have Astra hooks in the customizer and see if it’s in there
  • If you have Kadence Pro, check to see if you have the custom scripts option turned on in the customizer and check there. You can also check under Appearance > Kadence > Elements to see if there is a hook setup in there.
  • If you have the code snippets plugin (we use this often), you might have one called Google analytics or header code so check those.

If you still can’t find it, just install the insert headers and footers and add the new GA4 code.

Installing GA4 Video

Leave a Reply

Your email address will not be published.