JSON-LD – FAQPage

J

Google recently announced support for new schema.org vocabulary that goes by the name of FAQPage, it’s pretty self-explanatory but lots of people get confused between whether to use FAQPage or QAPage.

If you’re looking to mark-up your question and answer based content, and have more than one question per page, then I’d recommend using FAQPage, as detailed on this page. Check the guidelines before implementing and as always, run the JSON through both Google’s rich snippet tester and structured data tool.

How to implement FAQPage JSON

  1. Copy and paste the below JSON code into a text editor

    This can be done using a text editor of your choice, I personally prefer sublime text.

  2. Replace ‘name of your FAQ page’ in the “name” segment

    This must be the same as the text you’re using on your page, this may be a heading above the FAQ section.

  3. Replace ‘the name of your question’ under each @type questions.

    This is the question itself.

  4. REPLACE ‘the answer to the question’ after “acceptedanswer”

    This is the answer to the question.

  5. Run the code through Google’s testing tools.

  6. Check that you’re compliant with Google’s FAQPage guidelines

  7. Copy the code and put within the <head> tag of your site

  8. Deploy.

<script type="application/ld+json">
{"@context":"https://schema.org","@type":"FAQPage","name":"Name of your FAQ page"
,"mainEntity":[

    {"@type":"Question","name":"THE NAME OF YOUR QUESTION","acceptedAnswer":{"@type":"Answer","text":"THE ANSWER TO THE QUESTION"}}

    ,{"@type":"Question","name":"THE NAME OF YOUR QUESTION","acceptedAnswer":{"@type":"Answer","text":"THE ANSWER TO THE QUESTION"}}

    ,{"@type":"Question","name":"THE NAME OF YOUR QUESTION","acceptedAnswer":{"@type":"Answer","text":"THE ANSWER TO THE QUESTION"}}

]}
</script>			
FAQ Page Guidelines
/* ]]> */