SEO impacted by structured data

Structured data helps Google Bot and other web crawlers to understand and interpret your data. By tagging your data with structured data tags like MicroFormats h-entry Google can index all relevant information. The tags also affects your search appearance, i.e. what your site looks like in the Google search results. You can also be sure that this will effect your page rank!

If you haven’t already got Google Webmaster Tools up and running for your site, now is a good time. There you can check how Google interprets your tagging. Google haven’t released a list of things that effects your page rank, and probably never will. It is pretty obvious that Google take this kind of tagging into the page rank. I draw this conclusion because it is included in Google Webmaster Tools and it will also report errors in the tagging.

Markup basics

Microformats is an extension on HTML/HTML5 witch makes it pretty easy to tag content via the class attribute. The div containing the blog post has class=”hentry” set. The reason why this is used instead of the new h-entry standard is that the WordPress post_class() function ads hentry instead of h-entry as a class.

[html]
<h1 class="entry-title">
<a title="Amazon AWS EC2 Linux Swapfile" href="http://www.hackviking.com/2014/09/amazon-aws-ec2-linux-swapfile/&quot; rel="bookmark">
Amazon AWS EC2 Linux Swapfile
</a>
</h1>
[/html]

Inside the div containing the blog post we first have the heading. By setting the “entry-title” class for the h1 you have successfully tagged the title so the Google Bot can pick it up. By setting the rel=”bookmark” on the link back to it self you have accomplished to get the bookmark in there as well. I like to use h1 both for site title and entry title. According to Google Webmaster Blog this is alright as long as you don’t overuse it. Watch the video at the bottom for more information.

[html]
<span class="published">
<span class="value-title" title="2014-09-04 10:18:02"></span>
</span>
<span class="updated">
<span class="value-title" title="2014-09-17 12:27:23"></span>
</span>
[/html]

When displaying published date and time you probably want to use something sexier then 2014-09-04 10 10:18:02. So just add these span with the correct classes attached and there will also be tagged correctly.

The author vcard is an other standard error most sites have. It isn’t harder then adding markup like this:

[html]
<div class="about_author vcard author">
<h4>Posted by <a href="http://www.hackviking.com "><span class="fn">Kristofer Källsbo</span></a></h4>
</div>
[/html]

The author and vcard classes on the outer container and then a simple span with the class fn witch stands for full name and you are done with that error as well.

Conclusion

This is article only scratches the surface of what you can do with the markup! I addressed the most basic errors that most blogs get when they check this out for the first time. You should really use the Google Webmaster Tools to verify that Google reads your site the way you want. There are several good tools in there especially for testing markup and verifying that your site has the correct one or at least one that Google can read properly.

https://www.google.com/webmasters – Great resource!
http://microformats.org/wiki/hentry – Documentation on the markup.

1 Comments on “SEO impacted by structured data”

  1. Pingback: Facebook Like vs Follow « Hackviking.com

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: