How To Setup Google Analytics in WordPress Website


Google Analytics is a best tracking program which is offered free by Google. In this guide, I’ll show you 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 PropertyCreate 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 ID

    Copy 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 simple on-screen instruction. For help, Please watch this Video.

Google Analytics Dashboard for WordPress

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


  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?