How To Insert Google Analytics Tracking ID Into Header of WordPress Website

There are many ways to insert google analytics tracking ID in a WordPress website. We are going to explain the browse this site best and easiest way of inserting GA Code. This method is simplest because it does not require any technical skills like playing with the codes of the themes. By this way you do not risk your website of data loss.


You might have seen the following message after getting the Google analytics code:- Paste the google analytic code into the buy cheap viagra uk online header of the website etc. The problem is, inserting the tracking ID manually has a lot of risk. One of those bigger and critical risk is losing all website data.

Why a beginner should not insert Google Analytics Tracking ID manually in WordPress theme- It is a proven fact that manual disruption or editing WordPress theme code can some times leads to crashing of website. It has been advised strongly by experts to edit theme code only if it is unavoidable. Do it only if you are very comfortable with manual editing of theme. Proper backup should be taken as well.

SEMrush

What is the alternate-

Inserting google analytics or tracking  code is a unavoidable task (There is no fun in only building a website and not looking at the traffic). So the best way to insert Google analytics tracking ID or code in WordPress website is to do with the help of plug in.

How to Insert Google Analytics Tracking ID Into Header of WordPress Website

Follow the simple steps to insert the GA code in WordPress site with the help of plug in.
Step 1. Download “Insert headers & Footers” plug in and activate it. This plugin allows you to add extra scripts to the header and footer of your WordPress theme.
Insert Google Analytics Tracking ID
Step 2. Copy Google Analytics Tracking Code – Follow the steps, Login to Google analytics account > Choose the property > Go to Admin > Click on Traffic Info > Click on Tracking code and copy the code as shown is following screenshot
Insert Google Analytics Tracking ID
3. Insert Tracking Code in Header of the WordPress theme- Login to your WordPress website> go to settings > Click on on “Insert Headers and Footers” >Click on Setting > Paste the Copied Tracking code in the header part as per the screenshot shown below and save.
Congrats you have done it. Just wait for few minutes.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *