<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rich snippet data Archives - gj</title>
	<atom:link href="https://blog.gaiterjones.com/tag/rich-snippet-data-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.gaiterjones.com/tag/rich-snippet-data-2/</link>
	<description>gaiterjones</description>
	<lastBuildDate>Thu, 08 Dec 2011 09:26:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>
	<item>
		<title>Rich Snippet Data for Magento Product Pages Improves Google Search Results</title>
		<link>https://blog.gaiterjones.com/rich-snippet-data-for-magento-product-pages-improves-google-search-results/</link>
					<comments>https://blog.gaiterjones.com/rich-snippet-data-for-magento-product-pages-improves-google-search-results/#comments</comments>
		
		<dc:creator><![CDATA[PAJ]]></dc:creator>
		<pubDate>Fri, 18 Nov 2011 13:34:44 +0000</pubDate>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[META Tags]]></category>
		<category><![CDATA[Rich Snippet Data]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[microformat tags]]></category>
		<category><![CDATA[rich snippet data]]></category>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=595</guid>

					<description><![CDATA[&#160; &#160; &#8220;Rich Snippets&#8221; are a standardised markup format used by Google to improve search results by including more specific or &#8220;rich&#8221; information relating to a web page, i.e. for...<a class="more-link" href="https://blog.gaiterjones.com/rich-snippet-data-for-magento-product-pages-improves-google-search-results/" title="Continue reading">Continue reading</a>]]></description>
										<content:encoded><![CDATA[<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&#8220;<a href="http://www.google.com/support/webmasters/bin/topic.py?topic=21997" target="_blank">Rich Snippets</a>&#8221; are a standardised markup format used by Google to improve search results by including more specific or &#8220;rich&#8221; information relating to a web page, i.e. for product pages, price and ratings info. Google says &#8220;(we try) to present users with the most useful and informative search results. The more information a search result snippet can provide, the easier it is for users to decide whether that page is relevant to their search.&#8221;</p>
<p>By editing Magento product page templates we can include the Rich Snippet markup data readable by Google and improve the organic Google search results for our product pages.</p>
<p>There are various standards available to markup Rich Snippet Data on web pages &#8211; microdata, microformats, RDFa etc. We are going to use the microformat markup, although it does not provide as many options as other formats it does fit more easily into Magentos existing default product page design.</p>
<h2><span class="Apple-style-span" style="font-weight: normal; line-height: 20px; text-transform: none;">This Rich Snippet data will not affect the look of our product page, microformats use the </span><code style="line-height: 20px; text-transform: none;">class</code><span class="Apple-style-span" style="font-weight: normal; line-height: 20px; text-transform: none;"> attribute in HTML tags (often </span><code style="line-height: 20px; text-transform: none;">&lt;span&gt;</code><span class="Apple-style-span" style="font-weight: normal; line-height: 20px; text-transform: none;"> or </span><code style="line-height: 20px; text-transform: none;">&lt;div&gt;</code><span class="Apple-style-span" style="font-weight: normal; line-height: 20px; text-transform: none;">) to assign brief and descriptive names to entities and their properties.</span></h2>
<p>We are going to use simple microformat conventions or entities to markup our product page html so that Google spiders can read Rich data from our product information such as the price, availability or review rating of a product from all our pages.</p>
<p>We will implement two main microformat entities, <strong>hproduct</strong> and <strong>hreview-aggregate</strong> coded within the correct sections of our product page html so that the microformat markup looks something like:</p>
<figure id="attachment_596" aria-describedby="caption-attachment-596" style="width: 244px" class="wp-caption alignnone"><img fetchpriority="high" decoding="async" class="nohang        " title="Rich Snippet product microformat tree" src="https://blog.gaiterjones.com/wp-content/uploads/2011/11/magento-rich-snippet-microformat.jpg" alt="" width="244" height="207" /><figcaption id="caption-attachment-596" class="wp-caption-text">Rich Snippet product microformat tree</figcaption></figure>
<p>&nbsp;</p>
<h1>How to Markup the Default Magento Theme with Rich Snippet Information</h1>
<p>&nbsp;</p>
<p>Lets start with the hproduct microformat tag. This needs to encapsulate the main product information, including product description, image, price etc. If we look at the structure of the default magento product page we can see that the html document division with the product-essential class contains all the product information that we need, so we will add the main hproduct microformat tag here by adding hproduct to the DIV class.</p>
<figure id="attachment_597" aria-describedby="caption-attachment-597" style="width: 440px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2011/11/magento-product-wrapper-div.jpg"><img decoding="async" class="nohang        " title="HTML document division containing Magento product information" src="https://blog.gaiterjones.com/wp-content/uploads/2011/11/magento-product-wrapper-div-440x263.jpg" alt="" width="440" height="263" /></a><figcaption id="caption-attachment-597" class="wp-caption-text">HTML document division containing Magento product information</figcaption></figure>
<p>&nbsp;</p>
<h2>hproduct</h2>
<p>Open up your Magento theme template folder, browse to  /template/catalog/product and open up view.phtml for editing. Here you will find the html document division with the class <strong>product-essential</strong>, we simply append the new <strong>hproduct</strong> microformat class to it to add the hproduct rich snippet tag.</p>
<pre class="brush:xml">&lt;div class="product-essential hproduct"&gt;</pre>
<h2>item fn</h2>
<p>Within our microformat markup tree we now want to markup the product item, price and image sections of our Magento product html.</p>
<p>Still looking at view.phtml within the product-essential div we will find the product-name division. Here we will add the<strong> item fn</strong> microformat tags to markup the product name.</p>
<pre class="brush:xml">&lt;div class="product-name item fn"&gt;</pre>
<h2>description</h2>
<p>Within view.phtml we can also add the markup for the microformat description tag. An ideal place for this is the quick overview html division where we can simply append the description tag to the existing DIV class.</p>
<pre class="brush:xml">&lt;div class="std description"&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, nl2br($_product-&gt;getShortDescription()), 'short_description') ?&gt;&lt;/div&gt;</pre>
<h2>price</h2>
<p>To markup the product price open up price.html in the same folder. This template file is responsible for returning product pricing in all areas of the Magento frontend. You will notice that all the pricing document divisions already have the class name <strong>price. </strong>We don&#8217;t need to change anything here. However if you want to include the price-range microformat tag you can include it here by adding it to the divisions with the class name <strong>price-box</strong>.</p>
<h2>image</h2>
<p>To tag the product image navigate to the template/catalog/product/view folder and open up media.phtml for editing. Here you will see the product image html. The product image URL is specified within an IMG tag that has the ID &#8220;image&#8221;. Simply add a new class to the IMG tag with the name <strong>photo fn</strong>.</p>
<pre class="brush:xml">$_img = '&lt;img id="image" class="photo fn" src="'.$this-&gt;helper...</pre>
<h2>hreview-aggregate</h2>
<p>The most effective data we can microformat tag is the product review and rating data which will be displayed in Google search results showing our Magento product rating information. This data is encapsulated within the hreview-aggregate tag.</p>
<p>Navigate to the template/review/helper folder and you will see two files responsible for rendering review and rating html. summary.phtml and summary_short.phtml. Open up summary.phtml for editing.</p>
<p>First we need to add the hreview-aggregate tag to the html division that contains the rating data for the product. Here you will see the DIV with the class name ratings. Append the hreview-aggregate tag to this DIV class name.</p>
<pre class="brush:xml">&lt;div class="ratings hreview-aggregate"&gt;</pre>
<p>Next you will see that Magento already uses a division with a class name of rating. This will confuse Google as the microformat name we want to use is also &#8220;rating&#8221;. However there is a method to work around this using a SPAN class. Edit the existing rating division to include the new SPAN element as show below.</p>
<pre class="brush:xml">            &lt;div class="rating-box"&gt;
                &lt;div class="rating" style="width:&lt;?php echo $this-&gt;getRatingSummary() ?&gt;%"&gt;
					&lt;span class="value-title" title="&lt;?php echo number_format($this-&gt;getRatingSummary() / 20,1); ?&gt;"&gt;&lt;/span&gt;
				&lt;/div&gt;
            &lt;/div&gt;</pre>
<h2>count</h2>
<p>Now we markup the number of reviews the product has received with the <strong>count</strong> tag. Still within summary.phtml we add a SPAN element with the class name count to the existing code.</p>
<pre class="brush:xml">        &lt;p class="rating-links"&gt;
			&lt;a href="&lt;?php echo $this-&gt;getReviewsUrl() ?&gt;"&gt;&lt;span class="count"&gt;&lt;?php echo $this-&gt;getReviewsCount()?&gt;&lt;/span&gt;&lt;?php echo $this-&gt;__(' Review(s)') ?&gt;&lt;/a&gt;
            &lt;span class="separator"&gt;|&lt;/span&gt;
            &lt;a href="&lt;?php echo $this-&gt;getReviewsUrl() ?&gt;#review-form"&gt;&lt;?php echo $this-&gt;__('Add Your Review') ?&gt;&lt;/a&gt;
        &lt;/p&gt;</pre>
<h1>author</h1>
<p>Finally lets consider the author tag. To identify the author of a blog or article, Google checks for a connection between the content page (such as an article), an author page, and a <a href="http://www.google.com/profiles">Google Profile</a>. I am unsure if any real benefit will come from applying the author tag to your product content but for completeness one way to do it is to add the author tag to a link in the footer of your Magento pages. i.e.</p>
<pre class="brush:xml">&lt;p class="author"&gt;&lt;a rel="author" href="http://my.google.profile "&gt;g a i t e r j o n e s&lt;/a&gt; / &lt;?php echo $this-&gt;__('(ver. %s)', Mage::getVersion()) ?&gt;&lt;/p&gt;</pre>
<h1>Testing</h1>
<p>After saving all our edited files, we can check whether our product pages are returning rich snippet data using the <a href="http://www.google.com/webmasters/tools/richsnippets" target="_blank">Google Rich Snippet Testing Tool</a>. Goto the testing page and enter the URL of a product page from your Magento site.</p>
<figure id="attachment_598" aria-describedby="caption-attachment-598" style="width: 440px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2011/11/rich-snippet-testing-tool-preview.jpg"><img decoding="async" class="nohang        " title="Google Rich Snippet Testing Tool Magento Product Preview" src="https://blog.gaiterjones.com/wp-content/uploads/2011/11/rich-snippet-testing-tool-preview-440x103.jpg" alt="" width="440" height="103" /></a><figcaption id="caption-attachment-598" class="wp-caption-text">Google Rich Snippet Testing Tool Magento Product Preview</figcaption></figure>
<p>&nbsp;</p>
<p>The rich snippets testing tool will show you all the rich snippet data for your product page including information that comes from non microformat tags such as Meta tags or Facebook Open Graph tags. Make sure you are making best use of these tags too to ensure that Google is gleaning as much useful SEO information from your pages as possible.</p>
<h1> Conclusion</h1>
<p>The main question now is will Google use our Rich Snippet data in search results and how long will it take before the Rich Snippet data shows up* &#8211; SEE UPDATE BELOW!</p>
<p>I am still unsure if Rich Snippet data is being used across all Google search engines and countries at this moment. The data will certainly not show up until your site is spidered, and there is no guarantee it seems that even when Google has your RIch Snippet data if they will use it or not in search results &#8211; Google says &#8220;Note that there is no guarantee that a Rich Snippet will be shown for this page on actual search results.&#8221; The FAQ page which was written in 2010 seems to suggest the use of Rich Snippet Data is limited and suggests that interested users complete an &#8220;<a href="http://www.google.com/support/webmasters/bin/request.py?contact_type=rich_snippets_feedback" target="_blank">interested in Rich Snippets</a>&#8221; form. See the Rich Snippets Google <a href="http://knol.google.com/k/google-rich-snippets-tips-and-tricks#Frequently_Asked_Questions" target="_blank">FAQ </a>for more infomation.</p>
<p>If and when Rich Snippet data is widely used by Google in search results it certainly can&#8217;t do any harm to ensure your Magento product pages are ready!</p>
<p>* <span class="Apple-style-span" style="font-weight: bold; line-height: 15px; text-transform: uppercase;">UPDATE</span></p>
<p>I wrote this blog entry on 18th November 2011 and around the same time implemented rich snippet data in one of my webshops I just performed a Google search for one of our products today (8th December) and the rich snippet product review data is now being shown. So it took approximately three weeks for Google to pick up the new rich snippet data in our Magento products and reflect them in relevant search results.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.gaiterjones.com/rich-snippet-data-for-magento-product-pages-improves-google-search-results/feed/</wfw:commentRss>
			<slash:comments>18</slash:comments>
		
		
			</item>
	</channel>
</rss>
