Adding Rich Snippets Code to Your Website in Search Engine Visibility
Rich snippets display when search engines return your website in search results. These snippets give potential visitors a small preview of your site's content. For more information, see What Are Rich Snippets?
Adding a Local Business Rich Snippet
To Add a Local Business Rich Snippet:
- Go to the Optimize menu and select Create Rich Snippets.
- Enter your business information in the text fields, and then click Generate Snippet Code.
- Select the HTML code, and then copy it.
- Paste the HTML code into your website where you want the address displayed.
- Optional: To email the rich snippet code to your webmaster, go to the Email code section, enter an Email Address and Message, and then click Send.
NOTE: After uploading your website, test the code you entered by clicking Google's rich snippets testing tool on the Create Rich Snippets page.
Adding an Author Rich Snippet
To Add an Author Rich Snippet:
- Go to the Optimize menu and select Create Rich Snippets.
- Select Authors.
- You must have authorship set up on Google Plus® to add the authorship rich snippet. To set up authorship, go to https://plus.google.com/authorship.
- Enter your Google+ profile page URL.
- Click Generate Snippet Code.
- Select the HTML code, and then copy it.
- Paste the HTML code into your website where you want the author name displayed.
- Optional: To email the rich snippet code to your webmaster, go to the Email code section, enter an Email Address and Message, and then click Send.
NOTE: After uploading your website, test the code you entered by clicking Google's rich snippets testing tool on the Create Rich Snippets page.
Adding an Event Rich Snippet
To Add an Events Rich Snippet:
- Go to the Optimize menu and select Create Rich Snippets.
- Select Events.
- Enter your Event URL. This is the URL to your event information or announcement. Be sure to include the http:// portion of the URL.
- Enter your Event name.
- Enter your event Start date.
- Enter your event Start time.
- Enter the event City.
- Select the event State from the list.
- Enter Generate Snippet Code.
- Select the HTML code, and then copy it.
- Paste the HTML code into your website where you want the event displayed.
- Optional: To email the rich snippet code to your webmaster, go to the Email code section, enter an Email Address and Message, and then click Send.
NOTE: After uploading your website, test the code you entered by clicking Google's rich snippets testing tool on the Create Rich Snippets page.
Adding a Video Rich Snippet
To Add a Video Rich Snippet
- Go to the Optimize menu and select Create Rich Snippets.
- Select Video.
- Enter your Video Name.
- Enter your Video URL. This is the URL where your video lives. Be sure to include the http:// portion of the URL.
- Enter your video Thumbnail Image URL. This is the URL where your thumbnail image lives. Be sure to include the http:// portion of the URL.
- Enter a video Description.
- Click Generate Snippet Code.
- Select the HTML code, and then copy it.
- Paste the HTML code into your website where you want the video displayed.
NOTE: Replace <!-- INSERT VIDEO OBJECT HERE --> with the URL for your video. Be sure to include the http:// portion of the URL.
<div itemprop="video" itemscope itemtype="http://schema.org/VideoObject">
<h2>Video: <span itemprop="name">My Video</span></h2>
<meta itemprop="thumbnailUrl" content="coolexample.com" />
<meta itemprop="contentURL" content="videourltest.com" />
<object ...>
<!-- INSERT VIDEO OBJECT HERE -->
</object>
<span itemprop="description">This video rules</span>
</div>NOTE: After uploading your website, test the code you entered by clicking Google's rich snippets testing tool on the Create Rich Snippets page.
- Optional: To email the rich snippet code to your webmaster, go to the Email code section, enter an Email Address and Message, and then click Send.
NOTE: The rich snippet code must be placed inside the body of your HTML. The HTML element you are adding the rich snippet code to must also be visible on the page.
For more information about HTML, see: What is HTML?