If you are a frequent reader of this blog, or watch our YouTube channel, you've probably seen a video or two on Schema Markup. Recently, one subscriber asked, "Can I add multiple schema types to one page?"
Well, Spoiler Alert , YEP! In the video below I'll share how to add multiple schema types to one page on your website.
Hey, thanks for checking out this video. If this is your first time watching, or maybe you've been watching a while and you have not yet subscribed, please do so now, we would love to have you join our community. Today's video comes from a recent user who was watching a video and had this question. They want to know if they can add multiple schema types to a page. Well, spoiler alert, yes, and in this video we're going to talk about why you can do that, and how you accomplish that.
There are a number of common schema types that website owners, SEOs, and marketers leverage in order to mark up their content to help search engines better understand their content, and also rank for those rich features in search. Now, they're like articles, books, breadcrumbs, events, there's FAQ, how-to, local business products, reviews, and videos. These are just a few of the options we have available, but these are some of the more common types. The cool thing is these can all be combined to help clarify our pages, what they're about. And some of these actually can stack inside of each other.
Here's a list of some common schema types, things like articles, and books, and breadcrumbs, and how-tos, and organizations or business product reviews, things of that nature. The cool thing is we can actually stack and leverage multiple schema types on a page to better mark up that page and help the search crawlers understand our content. Now what's cool is some of these pages, or some of these types, already have nested information in them. For instance, we've got something like product, right, you'd have a product on your page, and inside that we would nest a review of that product. This is an instance where you would have one line of code, or one stacked version of your JSON-LD, and inside that you would contain both product as well as a product review. It's naturally set up that way.
Now, other types are not nested, and this may be like a website, right, where it's just the website markup, you're telling it that it's a website and that it has search capabilities. Maybe you have a video object and that's not necessarily straight up the website, it's very different. As you can see here, we have three different types of structured data stacked together, and they're all adding different elements to the page, different markups, different context to that page.
Like I said, in one instance they're nested, in other instances they're not. It's okay to stack those ones that are not nested. The cool thing about JSON-LD is it's just data, it's not adding anything else to your page, it's just adding a data line for the crawlers to read and have more context, so it's not going to slow your page down, it's not going to mess anything up, it's just going to add more context and value.
How do we actually achieve this? I pulled up the site that we use here a lot just to show how things work. What we want to do is add a couple of different types of schema. You can go over to schema.org and move through all the different types here and work through it. Honestly, I think that Merkle did a really good job on this tool, TechnicalSEO.com. It helps markup and generate markup for you. I use it all the time, shortcuts are great here on the internet and you've got to shout out to the people that make some really cool stuff.
The first thing we're looking up here is website markup, and the reason this is important is not everything online is a website, sometime it's a PDF, sometimes it's a progressive web app, sometimes it's software, and sometimes it's a website. This helps crawlers know that, okay, I'm on a website, and that can be very helpful with how they approach the crawling of that website. Basically, you've created this code and if you want to put it on every page of your site, you can do that. You just copy this text right here or this code and you can drop it in your header. If you're using Word Press plugins, there are plugins that do this as well. My favorite is SEO Press. I will add a script, add a link to that in here and you can build out a lot of different schema types and then tell it exactly what you want it to show.
As you can see, this is pretty simple, we have the hierarchy here where it's a website, the information, what's the name, what's the URL. Then it has something called potential action. If you have a search feature on your website, you can add in what that search URL would be, and that would show exactly how search is done and let the crawlers know that you have search functions on your website. Pretty simple, straightforward, this is something you're not going to add a lot of different layers to, you're going to add this to the site to mark it up as a website.
What you could also do is add a product to your site, right? And now you can see that this right here, this code is much longer and we've got a number of different things going on like we've talked about. We've nested ratings and reviews within this specific product schema. We've taken our product, and we've written about it here, and as you can see I can pull it out. Say it's a website template, you would have an image of the product, a description, your skew, your identifiers. You need these two things or it's going to trigger a warning, so if you don't have skew, don't have an identifier, create some for them. Make sure you have them, even if you have a SaaS product, you're going to need to have these because this structure is more geared towards physical products than it is towards web products. But if you have skews, have product identifiers, those need to be in there or you're going to get a warning.
Then you can add your brand in here. Then we can talk about offers, what's the offering? And so for right now let's say it's only valid till this time, we're having a price right now, this is the currency, obviously, this is crazy, I'm not actually selling anything, this is all for training purposes, but you can set an offer and say we have this price valid to this time. Again, you're just adding more context. Now we can say these are the average views.Now we've nested in a review below that from Joe Smith who can't believe how awesome everything is. There's author type, publisher type, so in this one string, you're looking at product, right? There's a hierarchy to the whole thing, so product is the type. Within product we have offers. Within that we also have products, we also have aggregate ratings, we also have reviews. Then within reviews we have a review rating. We also have the author of the review and the publisher of the review.
All of these things can be nested within each other, and then you take this one script, and then you would install that as well in the head of your website. Another option is to do something like this, like this is a professional services, local business schema.
This is also going to have nesting in it as well. We have a type, professional services, the name, the image of the company, the URL, phone number, the price range. This isn't numerical price range, in this case you're going to use dollar signs, so like four is very expensive, one is not very expensive. You have your address, you want to have your geo coordinates, this is really important for local businesses and local SEO. Then we've nested in the hours of operation, the days of the week that we're available. One of the things to notice when you're adding those in is making sure that you're using the 24-hour time frame, the military time.
But that's it, you can add multiple of these onto your site. Then once they're on there, make sure you always test them right here, test your code. Then test your URL after to make sure that they are showing up correctly and you're not getting errors or warnings. It's important to make sure that your scripts and your code is clean. It's going to help the crawlers, it's also just going to make sure that everything is giving the information the right way.
If you guys have any other questions, please comment below, I'd love to continue this conversation with you online. Until next time, Happy Marketing.
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.