Book Image

Drupal 6 Search Engine Optimization

By : Ben Finklea
Book Image

Drupal 6 Search Engine Optimization

By: Ben Finklea

Overview of this book

The earlier a site appears in the search results list, the more visitors it will receive from the search engine. Despite several advantages, many Drupal sites suffer with poor search engine standings. Perhaps you are aware of the importance of SEO for increasing traffic to your site, but do you know how to apply it to your Drupal site? Here comes the first book about search engine optimization for Drupal sites. This practical, step-by-step guide takes the mystery out of Drupal search engine optimization (SEO) by showing you the tricks of today's top marketing pros to achieve top ranking in the search engines. This isn't a book of Drupal SEO theory ñ it's a practical guide showing you which modules to install, which settings to use, and dozens of the most closely guarded "tricks of the trade" to get your web site optimized, higher in the search engines, and more profitable. With this book and basic Drupal 6 knowledge ñ how to log in, create content, and install modules ñ you can build a perfectly search engine optimized web site. Each chapter uses easy, step-by-step instructions to walk you through the Drupal SEO modules, configurations, and content you will need to increase traffic on your web site. You start by reviewing the modules and tools that you should use to optimize your site, how to set up your analytics, and so on. Each subsequent chapter gives detailed instructions on implementing these features in Drupal. Later chapters cover topics like site organization, A/B testing, and automatic content tagging to maximize SEO and increase the conversion rate of your web site. When you have completed the book, you will have implemented the changes to your site required to rank well in the search engines. If you want to maximize the return on investment of your Drupal 6 web site and gain a significant advantage over competitors who are not using Drupal, then this book is for you. Imagine how great you'll feel when your site is optimized to increase the number of visitors and convert them into paying customers.
Table of Contents (19 chapters)
Drupal 6 Search Engine Optimization
Credits
About the Author
Acknowledgement
About the Reviewers
Preface
Drupal SEO Case Study for Acquia Product Launch

Analytics


In bygone years, people tracked visitors on their web site using server logs. While this is still accepted practice, it's difficult and time consuming to access enormous log files to figure out what's going on with your site. Several years ago, companies started releasing tools to make that process easier. They called their products Analytics.

Analytics packages help you track visitors on your web site—where they came from, what they do while on your site, where they are in the world, and if they bought your products or filled out your forms. It works by installing a small piece of JavaScript code in the footer of your site that pings a server every time a visitor loads a page. You could do this yourself but you'd have to process, filter, and store all that data on your own. A good analytics program is easier, faster, more robust, and in many cases free.

A good analytics program will help you learn which online marketing initiatives are cost effective and see how visitors interact with your site. With that information, you can make informed design improvements, drive targeted traffic, and increase your conversions and profits. Analytics won't make the tough decisions for you—they will give you the data you need to make those decisions.

Note

A few common question that analytics can help answer are as follows:

How many unique visitors did I get over the last month?

What is my conversion rate?

How can I improve the visitor experience on my web site?

Why isn't anyone buying my product?

Are the negative comments on my blog affecting my sales?

How many sales came from Adwords vs. my SEO campaign?

Are visitors engaged by my front page or turned off?

It's important to install analytics as soon as possible, so that you can start to accumulate data about your site visitors. The more data you have, the better the reports and decisions you will be able to make. Depending on your site traffic, it may take weeks or months before you have enough meaningful data to put to use improving your site.

While you only need one analytics program, two will allow you to compare results and be sure that your stats are relatively in sync with each other. Different programs track data in different ways. If they're inconsistent then it could reveal a problem that needs to be fixed on your site.

Google Analytics

There are dozens of analytics packages out there and it's hard to beat Google's free suite which is simply called Google Analytics. It's easy to install, quick to get started, and has easy-to-read charts. Yet, it boasts very powerful features like advanced segmentation, customizable reporting, and industry benchmarking.

When using Google Analytics with Drupal, it's even better. It's easy to install, configure and test thanks to the Google Analytics module. The Google Analytics module was first created by Mike Carter and is now maintained by Alexander Hass. Thank you, gentlemen!

Creating a Google Analytics account and installing it on your Drupal site

To create a Google Analytics account and install it on your Drupal site, carry out the following steps:

  1. 1. Visit http://www.google.com/analytics and click the Sign Up Now link.

  2. 2. Log in using your Google account.

  3. 3. Fill out your web site information.

Web site URL:

Put the full URL of your site. If you use the www, then include it.

Account Name:

Google automatically enters the URL but that is often not the right choice. If you will ever have more than one web site that you track with Google Analytics then use an account name that is a bit more descriptive, such as your organization's name or even your name.

Time Zone Country:

Enter the country that your web site serves. For example, if your company serves Texas but you host your site in the UK, put United States as the country.

Time Zone:

Time zone will influence the dates and times that the analytics will report the traffic data from your site. You'll probably select the time zone that you work or live in.

  1. 4. Click on Continue and fill in your contact information.

  2. 5. Click on Continue. Here you'll read and agree to the User Agreement. You'll also notice that you're opted in to anonymously share your Google Analytics data. According to Google, Shared data will be used to improve the services we provide you and will help create more powerful features for you to choose from. There are two levels of sharing.

With other Google products only

It will only share your data with Google. This is more private and still gives you access to the enhanced features that may come out in the future.

Anonymously with Google and others

It will share your data more widely. Any identifying information about your site is removed and then it's mixed in with thousands of other sites' data. If you opt in at this level then you'll be able to benchmark your site with other sites in your industry. This can be helpful to see how you're doing compared to your competition.

  1. 6. Finally, click on Create New Account. You're done!

  2. 7. Now install the Google Analytics module. It installs normally like any other Drupal module. See earlier in this chapter for step-by-step module installation instructions. Here's the short version: Download the module, drop it into your /sites/all/modules folder, go to /admin/build/modules, and turn it on.

  1. 8. To configure the module, point your browser to www.yourDrupalsite.com/admin/settings/googleanalytics at the top of the page and you will be able see a screen similar to the following screenshot:

  1. 9. Go back to your Google Analytics account and you should see a number next to your URL name that starts with UA-, as shown in the following screenshot:

  1. 10. Copy and paste your site's UA number into your Drupal site. (Don't use mine! Get your own!) If you don't see this, click the Analytics Settings link, located at the upper left corner.

  2. 11. Under User Specific Tracking Settings, make sure that Users cannot control whether they are tracked or not option is selected. This makes sure that you're tracking all your visitors and they can't turn off the tracking.

  3. 12. Under Role specific tracking settings, you will have a few options. For most sites, you want to check everything except the authenticated user option, as shown in the following screenshot:

    Note

    Role specific tracking settings is one of the best things about the Google Analytics module. One of the common problems with Google Analytics is that it tracks everything that happens on your site—even your own activity. So, if you visit your site a lot (which you probably should) then you'll skew your Analytics. Telling Drupal to not track admin users will dynamically show or not show Google's tracking code depending on if a user is the site admin. There are many uses for this. Say you don't want to track any of your company's users. Just give them a custom account type (like staff) and deselect the checkbox in the Google Analytics module. Clean, easy, and works like a champ!

  4. 13. Except for advanced needs, the rest of the settings should be left as the defaults. Click on Save configuration. You're done!

Note

Common mistake when configuring the Google Analytics module

Note

Under Advanced settings, there is a field called Custom JavaScript Code. DO NOT put your Google code there. If you've put your Google account information at the top of the admin page then the module will write all the code automatically. The Custom JavaScript Code field is for special code snippets that are added to the tracking code (refer to drupal.org/node/248699). If you put the full code there then you will track every user on your site twice. Not good!

Google's help pages say 'Once you've correctly installed your tracking code, you should allow up to 24 hours for data to appear in your account'. Check back tomorrow and you should see some data. It starts to get really interesting when you've accumulated several months worth of data. Be patient—it's well worth the wait.

Yahoo! Analytics

Yahoo! recently launched their own analytics package called Yahoo! Analytics. It's getting good reviews as an alternative to Google Analytics. As of this writing it's only available to Yahoo!'s search and display advertisers. For more information visit the following link: http://web.analytics.yahoo.com/.