Are you wondering which words attract visitors to your site? Do you want to know why people might be leaving the site? Google Analytics is the first choice, and most popular answer, for these questions.
The biggest stumbling block in the beginning is figuring out how to do the integration and where to place the code that Google Analytics needs. The Google Analytics plugin by Yoast is an easy solution and involves no messing around with the code. Here's how to use the Google Analytics plugin:
Step 1: Set up your Google Analytics account
- Go to http://www.google.com/analytics/.
- Login or, if you don't have a Google Account, create one.
- Login to Google Analytics and you'll see the administration page and you click on the Admin link at the top right of the page.
- Fill out the Name and the exact URL you want to follow.
- Agree to the terms and save.
- The next page will show you the Tracking ID and some code you can embed in a page. You don't need to write these down because a WordPress plugin will take of that for us.
Step 2: Install the Google Analytics plugin
- Go to Plugins > Add New.
- Search for Google Analytics.
- Click install to install the plugin.
- Activate the plugin.
- Access it from Settings > Google Analytics.
- After you've installed the plugin, you'll see a warning, which will go away after you complete the process.
- Cick "Click here to authenticate with Google".
- You'll be sent to Google to verify the account you used in Step 1.
Step 3: Grant access to Google
- Grant Access to Google Analytics.
- You will be returned to WordPress after granting access.
- Choose the profile you created in
- Click Update Google Analytics Settings.
You may run into a little frustration at this point. I found that it takes a little while for everything to get communicated and clicking that button didn't work consistently.
As an alternative you may need to click on "Manually enter your UA code" and type in the code you were issued.
If it has worked correctly, the warning message will no longer appear. If you still see it, try again or switch to the manual method.
Check the source on your homepage. Success is seeing the Google code automatically inserted for you.