Global schemas: What you need to know

How to identify URLs referencing global schema

Let’s start with why you need to use Global Schemas to improve the efficiency and speed of tagging the pages on your website. 

Certain content on your website will be consistent across all pages such as your address, your details as an organization, contacts on the header of your web page, as well as site navigation elements at the bottom of every page. This means that while tagging schema such repeatable content, you’ll have to add corresponding schema types across all URLs or web pages too. Here’s where you can use Global schemas to your advantage.  

You can tag your repeatable content just once using the appropriate schema and then declare the schema as global to: 

thus, reducing schema tagging time considerably    

Let’s show you how to set global schemas across all URLs and to set them as a reference across URLs. 

Set as Global for all URLs 

You can use this option when you wish to include a schema across all the URLs of your website automatically.

Step 1: On the Schema editor, click on the three dots against the schema which you wish to define as Global for all URLs. From the ensuing dropdown menu, select “Set as Global for All URLs”
 

 Note:  Name and @id properties are mandatory for declaring a global schema. If not done, you will be prompted to do so when you try to declare a global schema. 


Step 2: After Clicking on the three dots on the right and selecting “Set as Global for All URLs”, you will see this message that you need to save the schema so that it can be included across all URLs.  

Step 3: Click on ‘Save and Generate’ to save it as a Global schema and publish it, if required. 


Back on the Tag Schema Page, you will now see the global Schema icon next to the URL for which you have declared global schema. 

 

Once you have saved/published the Global Schema, you will be able to view it across all URLs as seen below on the schema generation view of another URL just before Publish. 

 

Note: You can choose to not include a Global schema for all URLs using the tickbox next to it at the time of publishing. For example, the 'AboutPage' schema above has been excluded. 

Click on ‘Publish’ to include the Global Schema for that particular URL.   


Note: After updating and saving/publishing a Global for all URLs schema, you need to re-publish all the URLs so that the updated version of the global schema also gets published for all URLs.

Remove as Global for all URLs

Step 1: To remove a schema as Global for all URLs, navigate to the page you included the schema on. 

Step 2: On the schema editor, against the schema set as Global, click on the 3 dots on the top-right and click on ‘Remove as Global for all URLs’

Step 3: You will see this message to save the schema to remove it across URLs. Click on ‘Save & Generate’ to remove it across all URLs. 


Note: The existing functionality of Global schema is now renamed to Global reference. The icon of a schema declared for Global reference has been changed from  to  to make it more relatable. The @ in the icon indicates that it is for reference only. The icon of the new functionality – Global for all URLs is a simple globe, indicating that the schema declared is available across all URLs.

Set as Global Reference

Instead of setting as Global across all URLs, you can choose to also set the schemas as Global Reference, which means that you can choose to refer this global schema within another schema on a URL on a need basis.  

Step 1: On the Schema editor, select the desired schema, click on the 3 dots on the top-right of the editor, and click on ‘Set as Global Reference’

 
 
Note: Name and @id properties are mandatory for declaring a global schema. If not done, you will be prompted to do so when you try to declare a global schema. 

Step 2: After Clicking on the three dots on the right and selecting “Set as a Global Reference” you will see a message that prompts you to save the schema to reference it across all URL. 

Step 3: Click on ‘Save and Generate’ to save it as a Global schema and publish if required. 

Back on the Tag Schema screen, you will see the Global reference icon against the URL that you've just saved the schema as Global Reference. 

In addition, for URLs that have both, global schema across URLs as well as global reference, you will see this icon. 

Referencing Global Schemas:  

Now that you’ve set the schema as Global reference, let’s show you how you can reference it on other URLs.  

Step 1: On the schema editor, all that you need to do to reference a Global Schema is to go the schema property which needs to refer to content which is represented via a global schema for reference.

 i.e. A Web Page schema is a part of Web Site and needs to refer to Web Site schema declared globally for reference. 

You will be able to view a Global Schema when referenced in a URL on the schema generation view just before Publish as seen below.

Remove as a Global Reference

Step 1: To remove a Global schema as a reference, choose the URL where you added the global schema as reference

 

Step 2: Against the schema you set as Global Reference, click on the 3 dots on the right and click on ‘Remove as a Global Reference’. 


Note: If you have referenced a global schema in one or more URLs, you will need to remove those references before you can remove a schema as global. 

Clicking on ‘Show me the referencing URLs’ will take you the list of URLs referring to the schema that you want to remove in a separate tab
 

Once you have removed the reference schema from all other URLs, you can proceed to remove the Global Reference Schema. 

Step 3: You will be prompted to save if you wish to remove the schema as a Global Reference. Click on ‘Save & Generate’ to do so.

Note: After updating and saving/publishing a Global Reference schema, you need to re-publish all the URLs which referred to it so that the updated version of the global schema also gets published for all those URLs.

Why using @id and Name is essential when adding Global Schemas

You will want to uniquely identify the global schema that you create and that’s why @id and name are required. @id is a special identifier that ties to a schema to ensure it is uniquely identified by google when tying/linking entities on the Knowledge Graph as well as for the user to identify the schema set as global. The property ‘Name’ along with @id further helps in the identification of the set Global schema. For example, on a website, there are multiple organizations and the ‘Name’ property will further help call out this identification when using ‘Organization’ schema while @id could simply be #organization1, #organization2 etc.

How to identify URLs that have declared one or more Global Schemas

Once you have published global schemas, you can use the 'Filter option on the 'Tag Schema' page to filter pages that are 'Declaring Global Schema' and those that are 'Containing Global Schemas'. By choosing 'Declaring Global Schemas' you will view the URLs on which you have declared schemas as global, whereas choosing 'Containing Global Schemas' will display all the URLs to which you have referred or added the global schema.  

 


You can further narrow down your search and look for particular URLs using the 'Schema Types’ filter. 

 

 If you wish to look for URLs containing Global Schemas, click on ‘Containing Global Schemas’ from the URL filter. 

 

This referred global schema also appears under schema column and is visible upon save/publish of the concerned URL. 
 

 


How to identify URLs that are referencing Global Schemas

URLs that are referencing Global Schemas can be found by filtering URLs that 'Contain Global Schema' in the 'Tag Schema' section. These URLs are not declaring Global Schemas but rather referring to Global Schemas declared in other URLs.

Step 1: Click on 'Filter' to the top right of the 'Select Page' section. 

Step 2: Use the 'URLs' dropdown menu to select URLs 'Containing Global Schema'. 

Step 3: Use the 'Schema Types' dropdown menu to select the Global Reference schema you wish to remove. 

URLs that meet the filter selections will be displayed as seen below. 

In this example, the 'AboutPage' schema is globally declared and is being referenced by these URLs.