# Schema.org setup

**URL:** <https://community.prismic.io/t/schema-org-setup/3766>\
**Category:** Developing with Prismic\
**Created:** [January 28, 2021, 11:17am UTC](https://community.prismic.io/t/schema-org-setup/3766 "2021-01-28T11:17:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dru](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/dru/32/1586_2.png) [@dru](https://community.prismic.io/u/dru)\
**Post date:** [January 28, 2021, 11:17am UTC](https://community.prismic.io/t/schema-org-setup/3766/1 "2021-01-28T11:17:36Z")

</div>

If I want to add [schema.org](http://schema.org) info to pages, how would you recommend doing that? Say product schema or review schema.

What field type would I use? Would you recommend different fields for different lines to the schema? Or maybe just one field with the entire [schema.org](http://schema.org) code in it? That way wouldn't be as user-friendly, but I think it could still work and give flexibility to what schema data is added to each page.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [January 28, 2021, 11:59pm UTC](https://community.prismic.io/t/schema-org-setup/3766/2 "2021-01-28T23:59:41Z")

</div>

Hey Dru!

Schemas come in different shapes, the final 'format' it needs to have for each of your pages is a `<script />` that you can add to your pages `head` [element](https://www.w3schools.com/html/html_head.asp#:~:text=The%20element%20is%20a,scripts%2C%20and%20other%20meta%20information.). This is, to follow the rules of [semantic HTML](https://www.freecodecamp.org/news/semantic-html5-elements/) because usually, this tag element is where the metadata of your site is found.

You can use a third-party service/tool like Google's [Structured Data Markup Helper](https://www.google.com/webmasters/markup-helper/u/0/?) or any other [Schema Markup Generator](https://technicalseo.com/tools/schema-markup-generator/) to generate your script. In your repository, you can add a Rich text field that allows preformatted text:

> **[Adding Custom Embed or HTML code](https://user-guides.prismic.io/en/articles/1640742-adding-custom-embed-or-html-code)**
>
> Here we present the options for adding custom embed or custom html code to your documents

You can add this field to your repeatable Custom types, if different pages require different markups, or create a Singleton type with the same Rich Text field so that you only have one version of it for your whole website.

> **[Add schema markup in CMS (Prismic)](https://user-guides.prismic.io/en/articles/4844729-add-schema-markup-in-cms-prismic)**
>
> Improve your website's SEO and help search engines crawl and display your site in their results page.

---

<div class="post-metadata">

**Author:** ![dru](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/dru/32/1586_2.png) [@dru](https://community.prismic.io/u/dru)\
**Post date:** [February 2, 2021, 7:21pm UTC](https://community.prismic.io/t/schema-org-setup/3766/4 "2021-02-02T19:21:14Z")

</div>

Thanks Paulina, this all makes sense, thanks for the guidance!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [February 10, 2021, 6:27pm UTC](https://community.prismic.io/t/schema-org-setup/3766/6 "2021-02-10T18:27:37Z")

</div>

closed on February 10, 2021, 6:27pm UTC as resolved,  flag & select 'Something Else' to reopen.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 4:55pm UTC](https://community.prismic.io/t/schema-org-setup/3766/7 "2021-12-09T16:55:49Z")

</div>

Opened on December 9, 2021, 4:55pm UTC


