Chats - WhatsApp Direct Chat without saving number

How to Add Google Analytics to Blogger

 
How to Add Google Analytics to Blogger?
 
1. To set up an Google Analytics account, login to https://marketingplatform.google.com/about/analytics/

2. Click on Admin (Left bottom of page)

3. Provide an Account Name and fill necessary details, such as country, time zone and currency etc.

4. Add a data stream

5. Click on Web


Old method - show advanced options. Let's do not select this old method because, its giving warning - 

"Universal Analytics properties will stop collecting data starting July 1, 2023. It’s recommended that you create a Google Analytics 4 property instead"
 
Here let's Set up data collection (for websites)

Add the Analytics tag to your web pages to see the data in new Google Analytics 4 property.
You may see error "Data collection isn’t active for your website. If you installed tags more than 48 hours ago, make sure they are set up correctly."

Click Admin.

In the Property column, check that you have your new Google Analytics 4 property selected, then click
Set up data stream 


Set up your web stream 


Type blogger URL / blogspot URL/ custom domain URL, (example http://renjithplavada.blogspot.com/ or www.renjithplavada.com) ,  

Type a Stream name (example renjithplavada.blogspot.com or  renjithplavada.com)


click on create stream


Copy and paste your entire Google Analytics page tag to your website using your CMS's custom HTML feature.

Login to https://www.blogger.com

Click on Layout (Left side Menu)

Add a gadget 

Choose HTML/JavaScript  widget

Type Google Analytics in Title

Type following content in content section. 

Please don't forget to change your trackingID in the following code.


 <!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-(yourTrackingID)"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-MJQ6Y6RVRJ');
</script>

You can also use this code in Theme by Editing HTML code.

1. Got to Theme (Left side menu)

2. Click on the bottom arrow. Please refer the image below

 

 

3. Choose Edit HTML.

4. Then ,find </script> closing tag. Paste the above code after </script>

 

Done


Please note : it  may take up to 30 minutes for data collection to start. 

1. To see the real time report, Login to https://analytics.google.com/analytics/

2. Go to reports (Left side Menu)

3. Click on Realtime

How to Add Google Analytics to Blogger

1 Comments

Post a Comment

Previous Post Next Post