You’ll see at the top next to the “Example 1” title a little icon, click this and it will copy the code to your clipboard. I find it easiest to just paste the code into a text editor to edit the schema for our website, but you can use Word or any other text editor you like it doesn’t matter.
Now you can start editing your schema for your website.
The first piece of information we need to change is the @type, you’ll see it’s currently set to “Restaurant”, now if your business is a restaurant, you can leave this as is, but if not, we’ll need to go back to the schema page to see what @type’s we can use for the LocalBusiness schema type.
Just above the example code we’ve copied, you’ll see a list of more specific types that can be used under the LocalBusiness type; note here that all of these types are industries that will most likely have a brick and mortar store or physical office.
That’s because the LocalBusiness schema type is specifically for these types of businesses, if you don’t have a physical store, and you’re an online business, you’ll probably want to use the “Organization” schema type rather than the LocalBusiness which is actually a sub-type.
But pick a @type that’s closest to your business industry, you can click each one and see a short summary at the top of each page to give you an idea if this sub-type suits your business.
Merienda you’ve changed your @type, you can move down the list, filling in the required information, and keeping the same formatting for your entities and properties.
You’ll see when you get to “aggregateRating” that there is a “ratingValue” and “reviewCount”.
You can use the reviews from your Google Business Profile to fill this out, adding your review rating under the value and the number of reviews under the “reviewCount”.
If you don’t have a Google Business Profile (formerly Google My Business) account.
You should!
As it’s a esencial piece of your business’s específico visibility, we have written a comprehensive How-to on this here:
https://digitalnomadshq.com.au/blog/how-to-setup-google-my-business/.
Merienda you’ve finished filling in your information, you’ll want to test it!
Don’t throw any custom code into your website without testing it first! Luckily, Google and Schema.org provide us with some great tools to test out code for errors and warnings before we add it to our page.
Let’s use the Google search tool, which can be found here: https://search.google.com/test/rich-results.
Copy your code out of your text editor and go to the rich results tester page.
You’ll see the heading “Does your page support rich results?” below that, you’ll want to select the “< > code” tab above the search bar. Paste your edited code into this box and click “test code” at the bottom.
Now, if this is your first time doing this and you get an error like this:
