Note: the structured data that you provide in your Pagemap is does not impact your site's listing in Google Web Search results, and is not directly visible to your users.
It is only Google Custom Search that recognizes it and can use it to add elements such as actions or custom attributes to search results pages.
Of course your own application or scripts can use this metadata as well. However if you want optimise your general Google search results you will need to research the dark arts of Search Engine Optimisation (SEO).
# PageMap elements
You add elements (for example, an action) to a PageMap using a DataObject. DataObjects are of different types. You mark a DataObject as a specific type using th e"type" attribute of the DataObject tag:
Each DataObject has a number of attributes, such as a label or URL, which you can customize as you choose.
You can create any type of structured data to a DataObject you like, but Google Custom Search recognizes several standard DataObjects listed in the following table, and will render them in search results:
DataObject Required attributes thumbnail src, height, width action label, url, class publication author, date, category
However you are able to include your own arbitrary key:value markup using the "attribute" tag:
<PageMap> <DataObject type="document"> <Attribute name="pagetype"> Product Details </Attribute> </DataObject> </PageMap>
This allows you to then search / filter for specific pages marked up with such tags or ranges of tags.
# Using Sitemaps
Once you have structured how you want to represent your page metadata and then added it to your page, or sitemap, you need to: * Telling Google About Metadata
# Test Your Page
To see the PageMap data Google can extract from your page, use the rich snippets testing tool - google.com
# See also