The Structured Data Markup Helper helps you mark up elements on your web page so that Google can understand the data on the page. Once Google understands your page data more clearly, it can be presented more attractively and in new ways in Google Search. In addition if you send HTML-formatted email to your customers, Markup Helper can show you how to change your email templates so that Gmail can present the data to the user in new and useful ways.
Open the Structured Data Markup Helper
Examples:
- Event: If you mark up the events on your site, the next time Google crawls your site the event data will be available for rich snippets on search results pages.
- Email: If an email about your flight contains markup about your flight reservations, Gmail can display this information in your desktop client or your personal feed.
If you don't feel comfortable adding code to your website, you can try out the Data Highlighter instead.
If you're technically minded, learn about structured data and add markup to your site manually.
Mark up a web page or email
You can mark up elements in either an HTML web page or an HTML email.
Mark up a web page
Here is how to mark up elements in a web page.
- Open the Structured Data Markup Helper.
- Select the Website tab.
- Choose the type of page that you are marking up. For example, a movie page or an event page. You can have multiple items on a single page, but we recommend that all items are of the same type (for example, all movies or all events)
- Enter either the URL of an existing page or the raw page HTML. For a URL, be sure that the page is available to anyone without logging in. (You can test page access by opening an incognito window in Chrome and trying to visit your page. If you can reach it, you're fine.)
- Select Start Tagging.
- Highlight parts of the page with important information (for example, the start time on an event page), then identify the type of information in the dropdown that appears ("Start time").
- If you have complex date strings, or are having trouble tagging your dates, see Advanced date tagging.
- If you need to add information that is not visible in your page, see Add missing data.
- If you need to remove a tag that Structured Data Markup Helper generated, see Remove tags.
- Be sure to provide all information required for your specific data type. In the My Data Items pane you will see a list of all possible values for each item, with the required values labeled. For example, for an event you must provide an event name, location, and start date.
- When you've finished tagging all the appropriate data on the page, select Create HTML to generate the page code. Choose an output format: the default is JSON-LD (preferred by Google), but you can also choose Microdata. Either copy and paste the code from the output window or select Download. How you use the code depends on the format:
- For JSON-LD: Copy and paste the generated code into the body of your existing page.
- For Microdata: Replace your page with the generated HTML.
- To test your code, copy and paste the generated code into the Rich Result test. This testing tool will tell you about any missing fields that you must provide to help Google understand the page, and for some data types it can provide a preview of how your page might look like in Google Search Results.
- It can take a few weeks for Google to find your new page code. If your data is crawled, complete, and correct, it can appear as rich results. If rich results aren't appearing for your site, see possible reasons why
Mark up an email
Here is how to mark up an HTML-formatted email:
- Open the Structured Data Markup Helper.
- Select the Email tab.
- Choose the type of information you will mark up. For example, a bus reservation or product order.
- Enter the HTML of your email.
- Select Start Tagging.
- Highlight parts of the email with important information (for example, the reservation number for a bus reservation), then select the information type in the dropdown that appears ("Reservation number").
- If you have complex date strings, or are having trouble tagging your dates, see Advanced date tagging.
- If you need to add information that is not visible in your email, see Add missing data.
- If you need to remove a tag that Structured Data Markup Helper generated, see Remove tags.
- Be sure to provide all information required for your specific data type. In the My Data Items pane you will see a list of all possible values, with the required values marked. If you do not provide all required values, Google will not be able to process the email.
- If the alert icon (
) shows next to a tagged element, select the data next to the icon, review the tagging, and do one of the following:
- If the tagging is incorrect, select the X next to the data. Then re-tag the data.
- If the tagging is correct, select the alert icon itself (
) and select Clear warning.
- When you've finished tagging, select Create HTML to generate the HTML that you should use for the email. The default is JSON-LD, because Google prefers JSON-LD, but you can also choose Microdata. Select Download or just copy and paste the generated HTML.
- For JSON-LD: Copy and paste the generated code into the body of your email.
- For Microdata: Replace your email with the generated HTML.
- To test your code, send an email to a Gmail account or use the email schema validator.
Save and resume editing a page or email
To save your markup in the current state, bookmark the page in your browser. Structured Data Markup Helper will save your state for a month, including all markup values.