Because we've pretty much made the decision for you to use Google Analytics, in the following sections, we walk you through the necessary steps to sign up for Google Analytics, install it on your blog, and add the WordPress plugin to your site.
In order to sign up for Google Analytics, follow these steps:
A page where you can sign up for a Google account or sign in via an existing Google account appears. If you don't have a Google account, follow the link to sign up for one.
The first of a series of walk-through pages appears.
The page that appears displays the Google Terms of Service Agreement, which you have to accept.
After the terms of service, a new page appears where you can select how much of your analytics data is shared with Google. Read through this information and make an informed decision about how much of your data you want to make available. If you use Google Adwords (used for advertising on the Google search and content network), you may want to give permission to allow access to Google products but not third parties because you should be cautious about who has general data about your site after that data is entered in.
On the page that appears, Google Analytics provides you with your Google tracking code.
Paste the Google tracking code into your WordPress blog in the following section. When you've added the tracking code on your site, click the Save and Finish button.
After you set up your Google Analytics account and obtain the code to install in your WordPress site, you're ready for the installation. You can install Google Analytics pretty simply by following these steps:
If you have a theme framework, such as Genesis or Thesis, you can paste the code in the theme's Options page, or if you're using one of the many Google for WordPress plugins, you can paste the code in the Plugin Options page. However, we recommend that you paste the code directly into your footer (the footer.php template file within your theme) because this location works for pretty much all WordPress-designed sites.
The Edit Themes page loads in your browser window.
Paste the code that you copied by pressing Ctrl+V. Be sure to paste the code before the close body tag (</body>).
Figure 3-7 shows an example footer code.
You have to put this code before the close body tag, not after. If you put it after the close body tag, the code doesn't function.
After you install your code, check whether you installed it correctly. When you log back in to Google Analytics, your Dashboard appears (see Figure 3-8). A green check box in the Status column means that you're good to go. A stopwatch icon in that column means that the tracking code has been detected and is waiting for data to report. A yellow triangle (like the one in Figure 3-8) means that Google hasn't picked up the tracking code yet. Verification can take anywhere from minutes to hours, so if it isn't working correctly right away, don't panic. If you don't see the stopwatch icon within 24 hours, try to reinstall the code.
After you install Google Analytics on your WordPress site and make sure that the tracking code is working properly, you can install the plugin so that you can get a basic version of your stats right on your WordPress Dashboard. Just follow these steps:
Your WordPress Dashboard appears.
A search box appears so you can search for the plugin.
This takes you to the plugin installation screen.
The screen that pops up asks you to provide your log in information for Google Analytics.
A configuration page appears (see Figure 3-9).
You select these check boxes if you want to deactivate the plugin. If you only select to forget password or forget authentication, you will have to log back in to the menu like in Step 6.
Goal labels can help people who are tracking specific metrics, such as sales, sign-ups, or other actions, to see if people are converting.
The plugin appears on your Dashboard.
Figure 3-10 shows a WordPress Dashboard with the Google Analytics plugin.
After you install Google Analytics on your WordPress Dashboard, you can examine the data it provides. Your Dashboard displays two basic groups of stats:
By examining the two data sets, you can get a handle on the traffic that's coming to your blog. We recommend paying attention to the following questions:
The answers to these questions can help you draw various conclusions and adapt your publishing schedule, content type, and writing style to optimize the popularity of your blog.
18.223.108.105