How To Setup Google Analytics in WordPress Website


Google Analytics is one of the best website traffics analysis tool program which is offered free by Google.

In this tutorial, I’ll describe how easily you can setup Google Analytics in your WordPress Website.

  1. First of all Sign in to Google Analytics Accountgoogle-analytics-sign-in
  2. Now go to Admin panel, Go to Property and Create New Property.Create New Property
  3. After, fill up all required details about your website which you want to track via Google Analytics.
  4. add your website details for google analytics

  5. Now, Click Get Tracking IDCopy this Google Analytics Tracking Code
  6. So, now you have got tracking code also.

    In WordPress, simply open Appearance > Editor > Go to header.php of your current theme. You need to add this JavaScript code above </head> tag.
  7.  add-google-analytics-tracking-code

Bonus Tips : If you want to see all stats directly into your WordPress Dashboard, Use Google Analytics Dashboard for WP plugin.


After installing this plugin, follow the simple on-screen instruction. For more detail information, please watch this Video.

Google Analytics Dashboard for WordPress

If you face any problem in adding Google Analytics to your website, let me know through your comment. I will try solve your problem.


  1. hai sir,
    i am poornima srinivasan
    i have customized a website on my own for our trust. i need your guidance for getting my site on google search engine (on front page). i did pasted google analytic tracking code on my header file. what does google tag manager do? should i opt for dat? what should i do for dat?