How to set-up and use Google Analytics 4 in a blog made with Blogger
✅ Step 1: Create a Google Analytics 4 Property
-
Go to Google Analytics.
-
Click Admin (⚙️ gear icon in the lower-left corner).
-
Under Account, choose or create your account.
-
Under Property, click + Create Property.
-
Fill in:
-
Property name (e.g., My Blogger Blog)
-
Time zone and currency
-
-
Click Next, choose your industry and size, then click Create.
✅ Step 2: Set Up a Data Stream
-
After creating the property, click "Web" (for website tracking).
-
Enter your Blogger blog URL (e.g.,
https://yourblog.blogspot.com
) and a stream name. -
Click Create Stream.
✅ Step 3: Get Your GA4 Measurement ID
-
After creating the data stream, you'll see a Measurement ID like
G-XXXXXXXXXX
. -
Copy it. You’ll need this for your Blogger template.
✅ Step 4: Add GA4 to Your Blogger Blog
There are two ways to add GA4 to Blogger:
Option A: Add GA4 via HTML <head>
(Recommended for accuracy)
-
In Blogger, go to Theme > click the down arrow next to the "Customize" button > choose Edit HTML.
-
Look for the
</head>
tag in your template. -
Just above
</head>
, paste the following code (replaceG-XXXXXXXXXX
with your ID): -
Save the theme.
✅ Step 5: Test Your Setup
-
Go back to your GA4 property.
-
Click Admin > Data Streams > Your Stream.
-
Use “View tag instructions” to check if the tag is active.
-
Visit your blog in another tab.
-
In GA4, go to Reports > Realtime and check if your visit shows up.
Optional: Verify with Google Tag Assistant
Use the Tag Assistant Chrome extension to confirm your GA4 tag is firing correctly on your Blogger page.
đ Notes
-
GA4 vs Universal Analytics: GA4 is the new standard; older Universal Analytics is deprecated.
-
Blogger's built-in Analytics setting only supports Universal Analytics, not GA4. So manual insertion is necessary for GA4.
-
It may take a few hours before full data appears in your GA4 dashboard.
If you'd like, I can help you edit your Blogger theme code—just paste it here.