How to configure and use Google Analytics 4 in a blog made with Blogger



Why is this change necessary?

If you use Google Analytics to get statistics on your blog, then you have received emails from Google saying that you need to switch to a property of Google Analytics 4. They have messages like this:

authentication

Universal Analytics will no longer process new data in standard properties starting July 1, 2023. Prepare now by configuring and switching to a Google Analytics 4 property.

What they mean is that from July 1, 2023, statistics will only be counted if you have set a new type of “identifier”.

The old identifier will continue to collect statistics until then.

But it is not possible to convert data from the old identifier to a new one: if you want to get updated analytics from July 2, 2023, or if you want to compare data from then with data from the last 12 months, then you need to install the new identifier (ie a Google Analytics 4 property) on your blog now.

Blogger doesn’t support this?

In short – not yet, hopefully soon.

A long time ago (10+ years?) we had to install analytics in our Theme (called model at that time) manually. And because of where in the model it was set up, there were problems with counting mobile vs. desktop visits.

Eventually Blogger added a Google Analytics Property ID field to the settings tab, and code to use this value in our blogs. All we had to do was add our blog to Google Analytics, get its ID value from there, and paste that ID value into the Blogger Settings tab.

At the moment, this field only accepts and uses “old style” Universal Analytics tags.

Hopefully Blogger will start accepting Google Analytics 4 properties “soon”. But I don’t know when it will happen. And I know I want to be able to look at the blog-performance versus this time last year. So I didn’t wait for Blogger: instead, I manually installed and installed properties of Google Analytics 4 for my most important blogs now.

How to convert an existing blog’s Google Analytics profile to GA4

Choose the Admin tab (from the right side panel)

Choose the blog you want to switch to Google Analytics 4 from the website dropdown

In the Properties column, click on GA4 Setup Assistant

Click on Get started

Review the information in the window that opens (it will almost certainly be what you want – you can only migrate tags if you use them – and if you do, you probably don’t need to read this article!)

Click on Create a property

Click the Go to your GA4 property button – this opens the new property.

In the right column, click on Data flows.

Under the Web option, click action-arrow next to your property name. This will open a pop-up where you can get the information to install it on your blog.

Scroll down to Labeling instructionsand click Add a new tag to the page

Click Global site tag and use the button to copy the tag that is shown

Edit the Theme of your blog in the usual way, and paste the code somewhere between the e tags: I like to put it just before, because that’s where the code like this would usually be placed. (Hint: use the

Work done: in a few hours, your GA4 property should say that it is now collecting data for your blog. Therefore, when July 2023 arrives, you will be able to look back and see year-over-year trends in your blog visitors.

How to set up a Google Analytics 4 profile for a blog that doesn’t use Analytics now

Login to www.blogger.com with the Google account you want to use to collect data for this blog.

Choose the Admin tab (from the right side panel)

Click Create a property

Enter a name for your property (ie reporting unit – usually the same name as my blog), and choose a reporting time zone and currency. Click Afterwards.

Choose your options (how big your operation is, what you want to do with the data).

Click Next.

You will be taken to the Data Streams tab.

Choose Web, then enter the website name and URL. Click Create Stream.

To go Labeling instructionsand then Add New on-page URL

Click Add New on-page Tag and then click on Tag Global Site.

Copy the code and install it on your blog from:

  • Editing your Blogger Theme in the usual way
  • Find the tag (see How to find things in HTML mode in this articleif you are not sure how to find the label – the function is very similar in the theme editor)
  • Paste the code you copied just before

The work done: yours should soon have the code from the net tag counting the things on your site, and you will be able to see the data in the property of Google Analytics that you have made for the blog.

Related articles

How to edit your Blogger Theme

Leave a Comment