Script for Schema
-
Does any one know of any script that can be written to generate schema on my product pages. I need something that would be compatible with a custom php website.
Here is an example of what I am looking for, it's for Magento so I can't use it: http://www.magentocommerce.com/magento-connect/schema-org.html.
Or, if you have any idea on how to do implement schema without doing it manually please let me know here!
Thanks!
-
Hi Ray,
Thanks for responding, I don't know my programming too well, but from the way you are saying it, it seems like this is a standard process.
I will send this to my developers, thanks for your help!
-
What do you mean exactly by 'generate schema' ?
You would want to build the schema code into your template to integrate it properly. As long as it is in your site template then it will be added to your product pages accordingly.
The best way to do that is by adding and validating it manually. However, it wouldn't adding it manually to every single product since building it into your site's template would do just that.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
[Organization schema] Which Facebook page should be put in "sameAs" if our organization has separate Facebook pages for different countries?
We operate in several countries and have this kind of domain structure:
Technical SEO | | Telsenome
example.com/us
example.com/gb
example.com/au For our schemas we've planned to add an Organization schema on our top domain, and let all pages point to it. This introduces a problem and that is that we have a separate Facebook page for every country. Should we put one Facebook page in the "sameAs" array? Or all of our Facebook pages? Or should we skip it altogether? Only one Facebook page:
{
"@type": "Organization",
"@id": "https://example.com/org/#organization",
"name": "Org name",
"url": "https://example.com/org/",
"sameAs": [
"https://www.linkedin.com/company/xxx",
"https://www.facebook.com/xxx_us"
], All Facebook pages:
{
"@type": "Organization",
"@id": "https://example.com/org/#organization",
"name": "Org name",
"url": "https://example.com/org/",
"sameAs": [
"https://www.linkedin.com/company/xxx",
"https://www.facebook.com/xxx_us"
"https://www.facebook.com/xxx_gb"
"https://www.facebook.com/xxx_au"
], Bonus question: This reasoning springs from the thought that we only should have one Organization schema? Or can we have a multiple sub organizations?0 -
Regarding Schema Tag
Hi, I have found out more errors related to schema tag when using this tag on this page. Please tell me which types of schema need to implement on this URL. https://www.giftalove.com/delhi
Technical SEO | | Packersmove0 -
Product Schema Markup for All Products
Hi Team, Google search console used to allow you to use their structured data markup helperhttps://www.google.com/webmasters/markup-helper/u/0/ to markup multiple product pages at once that were similar. I do not see this feature anymore with the new search console. Does anyone have a recommendation for marking up multiple product pages without having to have schema markup firing in GTM for each product page?
Technical SEO | | agrier0 -
URL Inspector, Rich Results Tool, GSC unable to detect Logo inside Embedded schema
I work on a news site and we updated our Schema set up last week. Since then, valid Logo items are dropping like flies in Search Console. Both URL inspector & Rich Results test cannot seem to be able to detect Logo on articles. Is this a bug or can Googlebot really not see schema nested within other schema?Previously, we had both Organization and Article schema, separately, on all article pages (with Organization repeated inside publisher attribute). We removed the separate Organization, and now just have Article with Organization inside the publisher attribute. Code is valid in Structured Data testing tool but URL inspection etc. cannot detect it. Example: https://bit.ly/2TY9Bct Here is this page in URL inspector: By comparison, we also have Organization schema (un-nested) on our homepage. Interestingly enough, the tools can detect that no problem. That's leading me to believe that either nested schema is unreadable by Googlebot OR that this is not an accurate representation of Googlebot and it's only unreadable by the testing tools. Here is the homepage in URL inspector: In pseudo-code, our OLD schema looked like this: The NEW schema set up has the same Article schema set up, but the separate script for Organization has been removed. We made the change to embed our schema for a couple reasons: first, because Google's best practices say that if multiple schemas are used, Google will choose the best one so it's better to just have one script; second, Google's codelabs tutorial for schema uses a nested structure to indicate hierarchy of relevancy to the page. My question is, does nesting schemas like this make it impossible for Googlebot to detect a schema type that's 2 or more levels deep? Or is this just a bug with the testing tools?
Technical SEO | | ValnetInc0 -
Schema query
Hello All, I have implemented schema on product page. On My product page at left section there is one section i.e. "Popular Products" in that 5 Popular products are listed. Now when I visit ABCD product page then in "Popular Product" section also out of 5 products this ABCD product also listed. Finally when I check structured data testing tool in that following details are available for products - @type, @id, image, name, url, sku, category, description, offers & offers all details, Brand & brands all details ...now after that there in "Is Related To" in that five products following details are there - @type, @id, image, name, url & offers that's it. So my query is, is this consider as duplicate? or no issue at all with google? Thanks! 6dHvQ
Technical SEO | | wright3350 -
Schema markup
Hi, I'd love to use schema markup, but I don't think there is one for the type of products we sell (mortgages). Does anyone know of a way of using schema markup for a page like this: https://www.turnkeymortgages.co.uk/mortgage/mortgage-rates/ The regulator for mortgages (FCA) in the UK has rules about how products are displayed, we have to show all the information in the table (see the link), and the compliance text (your home will be repossessed....) with every product. This is why I haven't tried to 'cobble' something together from the existing markup available - I can't fall foul of the regulator (or be misleading to customers). Anyone have any thoughts on this? Or, should I just wait until Schema come up with a markup suitable for such products.
Technical SEO | | CommT0 -
Could schema.org and GoodRelations be bad for SEO?
One of my clients is going through a redesign and I am considering implementing schema.org and GoodRelations as it is an e-commerce website. The site sells cutting edge products and competes with some of the top tech blogs for rankings on the first page. Essentially, this means that e-commerce product listings are competing with news stories. It is becoming more and more difficult to rank as Google puts more emphasis on news over products in the serps, especially prior to a product release. My concern is that in implementing schema.org and GoodRelations, detailing to seach engines that this is in-fact a product page and not news could harm rankings. What opinions do others have on this?
Technical SEO | | pugh0 -
Schema coding
Hi, I was wondering if you may know if you have to keep to the and coding when adding schema code to the site. For example if I'm already using H and P tags can I add the "itemprop" to those or do they have to be in aor as in the example below: <span itemprop="name">Kenmore White 17" Microwavespan>
Technical SEO | | DragonSearch
Product description:
<span itemprop="description">0.7 cubic feet countertop microwave. Has six preset cooking categories and convenience features like Add-A-Minute and Child Lock.span> So could I code it like this? <h1 itemprop="name">Kenmore White 17" Microwaveh1>
Product description:
<p itemprop="description">0.7 cubic feet countertop microwave. Has six preset cooking categories and convenience features like Add-A-Minute and Child Lock.p> Thank you,
Etela0