Posts Tagged ‘search engine’

Tweaking WordPress – Sitemap

March 31st, 2010

 

Way To Improve Your Content Overview

 

 

 

I was looking for some site map solution that would satisfy my picky needs (to be seen as wp page not as wp post and to show list of categories with posts inside them). Sitemap is cool webmaster tool. It helps visitor to easy navigate through your site. It shows page structure and also, some sitemap WordPress plugins create sitemap.xml file that is very useful when search engines map your site. I found couple that were partially good enough. First was WP-Archives by Jim Penaloza Calixto (more info at http://blog.unijimpe.net/, wp plug-in download url – http://downloads.wordpress.org/plugin/wp-archives.zip). It was easy and simple to install and configure. It is installed as post and it shows posts in chronological order (but not what category they belong) with day/month info. The second was PS Auto Sitemap by Hitoshi Omagari (more info at http://www.web-strategy.jp/wp_plugin/ps_auto_sitemap/, wp plug-in download url – http://downloads.wordpress.org/plugin/ps-auto-sitemap.zip). It had visually all that I wanted (categories with list of posts that belong to them), but it was implemented as a post. I didn’t want that (yes, I know I could easily put it in sidebar as a link, but I wanted it to be on the top with other page links). So I was using the WP Archives plug-in for a while. It looked like this:


Old Sitemap

 

When I managed to find more free time, I decided to fix this. I used PS Auto Sitemap plug-in and did some simple code change in php.

After plug-in installation, I edited header.php of my current theme and I put something like this at the place where pages are being listed:

<li <?php if($post->ID == xxx) echo ‘class=”current_page_item”‘; ?>><a href=”http://yoursite/post-name-xxx”>Post Name</a></li>

Here, xxx is ID of your plug-in post that you can find in your post URL at the end, or in _posts table of your WordPress database. In my case ID was 391, table name was wp_posts, page url was www.geekwidget.com and post name was Sitemap Widget, and it looked like this:


Header Tweak

 

Now, it was still a post. In some themes, like in one that I am using, it had previous post and next post links whenever a post was separately opened. Since I was picky, as mentioned, I wanted to change that, too. I edited single.php in same folder and put something like this:

<?php if ($post->ID != xxx) { ?>

<div>
<div><?php previous_post_link(‘&laquo; %link’) ?></div>
<div><?php next_post_link(‘%link &raquo;’) ?></div>
</div>

<?php } ?>

The xxx part was again plugin post id. In my case it looked like this:


Single Tweak

 

After that I had what I wanted:


New Sitemap

 

 

Google’s SEO Starter Guide – Web Analytics Services

March 27th, 2010

 

Take Advantage of Web Analytics Services

 

 

 

If you’ve improved the crawling and indexing of your site using Google Webmasters Tools or other services, you’re probably curious about the traffic coming to your site. Web analytics programs like Google Analytics are a valuable source of insight for this. You can use these to:

 

• get insight into how users reach and behave on your site
• discover the most popular content on your site
• measure the impact of optimizations you make to your site (e.g. did changing those title and description meta tags improve traffic from search engines?)

 

For advanced users, the information an analytics package provides, combined with data from your server log files, can provide even more comprehensive information about how visitors are interacting with your documents (such as additional keywords that searchers might use to find your site).

 

Lastly, Google offers another tool called Google Website Optimizer that allows you to run experiments to find what on-page changes will produce the best conversion rates with visitors. This, in combination with Google Analytics and Google Webmaster Tools (see our video on using the “Google Trifecta“), is a powerful way to begin improving your site.

 

 

Google’s SEO Starter Guide – URL Structure

March 19th, 2010

 

Improve The Structure of Your URLs

 

 

 

Creating descriptive categories and filenames for the documents on your website can not only help you keep your site better organized, but it could also lead to better crawling of your documents by search engines. Also, it can create easier, “friendlier” URLs for those that want to link to your content. Visitors may be intimidated by extremely long and cryptic URLs that contain few recognizable words.

 

 


SEO Guide URL Structure1


A URL to a page on our baseball card site that a user might have a hard time with

 

 

URLs like these can be confusing and unfriendly. Users would have a hard time reciting the URL from memory or creating a link to it. Also, users may believe that a portion of the URL is unnecessary, especially if the URL shows many unrecognizable parameters. They might leave off a part, breaking the link.

 

Some users might link to your page using the URL of that page as the anchor text. If your URL contains relevant words, this provides users and search engines with more information about the page than an ID or oddly named parameter would.

 

 


SEO Guide URL Structure2


The highlighted words above could inform a user or search engine what the target page is about before following the link

 

 

Lastly, remember that the URL to a document is displayed as part of a search result in Google, below the document’s title and snippet. Like the title and snippet, words in the URL on the search result appear in bold if they appear in the user’s query.

 

 


SEO Guide URL Structure3


A user performs the query [baseball cards]

 

 


SEO Guide URL Structure4


Our homepage appears as a result, with the URL listed under the title and snippet

 

 

Below is another example showing a URL on our domain for a page containing an article about the rarest baseball cards. The words in the URL might appeal to a search user more than an ID number like “www.brandonsbaseballcards.com/article/102125/” would.

 

 


SEO Guide URL Structure5


A user performs the query [rarest baseball cards]

 

 


SEO Guide URL Structure6


A deeper page, with a URL that reflects the type of content found on it, appears as a result

 

 

Google is good at crawling all types of URL structures, even if they’re quite complex, but spending the time to make your URLs as simple as possible for both users and search engines can help. Some webmasters try to achieve this by rewriting their dynamic URLs to static ones; while Google is fine with this, we’d like to note that this is an advanced procedure and if done incorrectly, could cause crawling issues with your site. To learn even more about good URL structure, we recommend this Webmaster Help Center page on creating Google-friendly URLs.

 

 

Good practices for URL structure

 

• Use words in URLs – URLs with words that are relevant to your site’s content and structure are friendlier for visitors navigating your site. Visitors remember them better and might be more willing to link to them.
Avoid:
•• using lengthy URLs with unnecessary parameters and session IDs
•• choosing generic page names like “page1.html”
•• using excessive keywords like “baseball-cards-baseball-cards-baseballcards.htm”

• Create a simple directory structure – Use a directory structure that organizes your content well and is easy for visitors to know where they’re at on your site. Try using your directory structure to indicate the type of content found at that URL.
Avoid:
•• having deep nesting of subdirectories like “…/dir1/dir2/dir3/dir4/dir5/dir6/page.html”
•• using directory names that have no relation to the content in them

• Provide one version of a URL to reach a document – To prevent users from linking to one version of a URL and others linking to a different version (this could split the reputation of that content between the URLs), focus on using and referring to one URL in the structure and internal linking of your pages. If you do find that people are accessing the same content through multiple URLs, setting up a 301 redirect from non-preferred URLs to the dominant URL is a good solution for this.
Avoid:
•• having pages from subdomains and the root directory (e.g. “domain.com/page.htm” and “sub.domain.com/page.htm”) access the same content
•• mixing www. and non-www. versions of URLs in your internal linking structure
•• using odd capitalization of URLs (many users expect lower-case URLs and remember them better)