Google Analytics

The idea behind Google Analytics is similar to AdWords conversion tracking: add a code snippet to your web pages so that you can understand what works and what doesn’t. However, comparing Google Analytics to AdWords conversion tracking is a bit like comparing a fully loaded Ferrari to a Ford Model T. Both programs are intended to help website owners understand website dynamics so that they can make better business decisions and enhance performance. But beyond shared goals, there really is no comparison.

Note

Google Analytics and AdWords conversion tracking do not interfere with each other. In other words, there’s no reason you can’t have both running at the same time.

Google Analytics offers a wide breadth of functionality. To start with, the program shows you where your visitors come from and how they interact with your site. Ultimately, you can use this feature to calculate your rate of return for each AdWords keyword.

In addition to basic conversion tracking, Google Analytics offers:

Google Analytics can’t solve website performance issues for you. However, it very likely can help you pinpoint problem areas—so you can solve the problems yourself. In addition, the price is right (Google Analytics is free). It’s worth noting that this is enterprise-caliber software that can be used by everyone from mom-and-pop shops to large organizations. Furthermore, Google Analytics will help you monitor your site performance even if you are not using other Google products. There’s no requirement that either AdSense or AdWords must be implemented on your site for you to use Google Analytics.

To get started with Google Analytics, click on the Reporting tab of the Google AdWords page and select Google Analytics. The window shown in Figure 13-18 will load.

There are two options available. I will show the option for linking to an existing Google Analytics account in Figure 13-19, but will take you through the steps of creating a new account as shown in Figure 13-20.

Assuming you don’t already have an Analytics account, choose the “Create my free Google Analytics account” option and click Continue. The New Account Signup window, shown in Figure 13-20, will open. Enter the domain you want to track.

Click Continue. The Tracking Code page, shown in Figure 13-21, will open.

On the code page, you’ll see your ID as well as some tracking code. This tracking code needs to be included in every page on your site, usually just above the </body> tag.

For example:

<html>
<head>
...
</head>
<body>
...
   <script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." :
"http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7959080-2");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>

If you don’t personally maintain your website, that’s fine: just pass the code snippet along to your tech person.

You should try to paste the Google Analytics code as it was written without changing line breaks. You can check to make sure the code has been correctly added by opening your web pages and viewing the source code.

If your website is generated from a database using a content management system, there is likely an easier way to add the Google Analytics code to each page than doing it by hand.

For example, there are a number of plug-ins, like the one shown in Figure 13-22, that add the Google Analytics code to all the pages in a WordPress blog. All you have to do is enter the ID number in the Plugins settings page.

Once the tracking code has been added to your pages, you’ll start to see data in the Google Analytics Dashboard, shown in Figure 13-23.

The JavaScript code that Google Analytics asks you to add to your web pages passes information back to a Google Analytics server about your site visitors, your pages, and the actions of the visitors on the page (for example, what links were clicked). The real value of Google Analytics is in the processing and presentation of this data.