How to add Google Analytics tracking code in WordPress Website

The easiest way to add Google analytics tracking code in your WordPress website is by installing Google Analytics for WordPress plugin on your website.

The plugin is simple to install:

  1. Download analytics-for-wp.zip.
  2. Upload analytics-for-wp directory to your /wp-content/plugins directory.
  3. Go to the plugin menu page and activate the plugin.
  4. Add your Google Analytics Tracking code from the Anlytics for WP settings page as you can see in below screenshot.

screenshot-1

Alternatively you can also add your tracking code by pasting just before the closing head in header.php file of active theme.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: