Book Image

Magento 1.3 Sales Tactics Cookbook

Book Image

Magento 1.3 Sales Tactics Cookbook

Overview of this book

Magento is a feature-rich, professional open source e-commerce solution that offers users complete flexibility and control over the look, content, and functionality of their online store. Although Magento provides users with the power to create dynamic e-commerce sites, it can be challenging to get beyond the basics and create sites that are tailored to your unique business needs.This book gives you a hands-on experience on Magento, helping you increase your revenue by implementing proven sales tactics on your Magento site.This book contains techniques to help you with each stage of selling to your customers: attracting visitors, driving them to your product pages, making the sale, increasing sales, engaging your customers, and more. It contains a powerful mix of techniques for increasing sales in your online storefront. Over thirty of the techniques are short and stand alone. A few are designed to be used together, such as the seven techniques in the chapter on creating an international storefront. Some techniques make creative use of Magento’s standard features. A few techniques combine Magento with other tools, such as social networking sites. All the techniques are explained in clear, step-by-step directions, with many screenshots. The book uses an example site for each technique, so that you can see exactly how it will affect your storefront. You can jump into the book at any point, or, work through it from beginning to end.
Table of Contents (15 chapters)
Magento 1.3 Sales Tactics Cookbook
Credits
About the Author
About the Reviewer
Preface

Generating a site map


A site map informs search engines which URLs on your site you want them to index. At a minimum, a site map consists of a list of the URLs on your site. It can also include when each URL was last updated, how often the URL changes, and how important it is in relation to other URLs in the site. This enables search engines to crawl the site more intelligently.

On some sites, not all pages are available through the human-browseable interface, that is, not all pages can be accessed by clicking on a link. If a human can't click on the link, then neither can the search engine crawler. On these sites, a site map is especially useful. The site map ensures that all pages will be crawled.

Using Magento, you can generate a site map containing all accessible URLs on your store's site. Then, you can instruct the search engines to index those URLs. Google, MSN, Yahoo, and Ask use the same protocol now.

Note

A site map increases the chance that all your pages will be included in search indexes. It does not influence the way that pages are ranked in search results.

In this section, we will cover generating a site map and pointing search engines towards the site map.

Getting ready

Before you can complete this task, you must have FTP access to your Magento site, that is, you must be able to upload, delete, and edit files in your Magento site.

How to do it...

  1. 1. Log in to your site's backend, or Administrative Panel.

  2. 2. Select Catalog | Google Sitemap.

Note

Although it's called a "Google Sitemap", the major search engines use the same protocol. So this site map will work for all of them.

  1. 3. Click on the Add Sitemap button. The New Sitemap page displays.

  2. 4. In the Filename field, enter a name for the site map.

  3. 5. In the Path field, enter the directory on your Magento server where you want the site map. To place it in the root (home) directory of your site, enter a forward slash like this: /

  4. 6. Click on the Save & Generate button, and the new site map is generated.

  5. 7. You can see a URL in the Link for Google column. Either copy and paste this URL into a document so that it can be easily retrieved, or minimize this window without closing it. Later, you will want to copy and paste this link.

  6. 8. Launch your FTP client, and navigate to the root directory of your Magento site:

    In our example, you can see the two fi les that we will deal with are in the root directory: robots.txt and sitemap.xml.

  1. 9. Open the file robots.txt for editing. Exactly how you do this depends upon which TP client you are using. If you are using WinSCP, as shown here, then you can just double-click on the file, and it will open for editing:

  1. 10. The file might already have some text in it. That's is okay. Add this line to the file:

    Sitemap: http://www.yourdomain.com/sitemap.xml

    where:

    www.yourdomain.com is your domain. In our example, it's www.brew-me-a-cup.com.

    /sitemap.xml is the path and filename for the site map. In our example, the site map is in the root directory. If we put Magento in a subdirectory, it might look like this: www.brew-me-a-cup.com/magento/sitemap.xml.

  2. 11. Save the file.

How it works...

When a search engine robot or crawler visits your site, the first file it looks for is robots.txt. This file tells the crawler which pages to visit and which it should not visit. Robots are free to abide by or ignore robots.txt. All of the major search engines will abide by robots.txt. This ensures that they visit the pages you want them to index. It does not ensure that they will actually index them or rank them higher.

There's more...

You can set up Magento to automatically refresh the site map file. This is the subject of the next sectionConfigure Magento to automatically refresh the site map