Questions tagged [json-ld]

JSON-LD is a syntax for embedding structured data in HTML5, making use of vocabularies. If the question is about the popular vocabulary Schema.org, use the tag [schema.org].

Filter by
Sorted by
Tagged with
5
votes
1answer
1k views

How do I mark up multi product pages with Schema.org and JSON-LD?

I have a client with two products on one page. However, when I test my mark up, it is only recognising one. <script type="application/ld+json"> { "@context": "http://schema.org/", "@type":...
3
votes
2answers
511 views

Google Tag Manager Multiple URL Exceptions not Working

I am using Google Tag Manager to insert my Schema JSON-LD data and as my schema data is presented in the footer it makes sense to use the following: Tag Type > Custom HTML Trigger Type > All Pages ...
1
vote
1answer
380 views

Google Tag Manager Custom HTML Page View URL Equals Trigger not Working

I've just started using Tag Manager combined with Schema JSON-LD for the first time. I am attempting to use Custom HTML but have hit a brick wall when attempting to assign Custom HTML to a URL based ...
2
votes
2answers
1k views

Absolute or relative local URL in Schema.org JSON-LD?

I'm writing the Schema.org JSON-LD for a website now. For a url within my site, what will work / best practice? "url": "http://myawesomesite.com/content.html" or "url": "/content.html"
4
votes
1answer
1k views

Schema.org 'CollectionPage' for list of blog posts by specific author

I'm trying to mark up a page and I'm trying to use CollectionPage with a number of blog links on the page. Would this be fine? { "@context":"http://schema.org/", "@type":"CollectionPage", "name"...
2
votes
2answers
5k views

NewsArticle not validing: “The attribute image.width has an invalid value.”

I'm using Google's template to mark up my blog and it seems that if I were to change the value of the width/height, it instantly tells me: The attribute image.width has an invalid value. The ...
2
votes
0answers
159 views

What is the 'breadcrumb' label in Google Webmaster for webpages markup

Recently, I've noticed a 'breadcrumb' label show up in the Structure Markup section of Webmaster. Nothing shows up under that label for any of my breadcrumbs: They do show up for that page under the ...
13
votes
2answers
16k views

What is the use of @id in json-ld syntax?

I am really confused what is @id used for in json-ld syntax. Sample from apple.com. What does @id actually represent. Any help would be great? <script type="application/ld+json"> { "@...
1
vote
1answer
506 views

Schema.org 'amenityFeature' under Hotel is not recognized by Google

I'm developing the schema.org vocabulary for a hotel webpage (see markup for hotels). As per schema.org directives, under Hotel I can add a amenityFeature but the Google testing tool throws an ...
1
vote
1answer
239 views

Schema.org - Microdata and JSON-LD behave diffrently for same code [duplicate]

Having a hard time with JSON-DL and several blogPost. The way I see it, both Microdata one and JSON-DL one is exactly the same, yet the latter only show one blogPost, where Microdata show both. HTML ...
2
votes
1answer
3k views

Can I have multiple JSON-LD scripts in the same page?

The below script appears if I check the “Display the site links search box” in All in One SEO General Settings: <script type="application/ld+json"> { "@context": "http://...
1
vote
1answer
141 views

Is it considered blackhat to show structured data to search engine bots but not humans?

Is it considered blackhat if the JSON-LD structured data is only shown to search engines? The content is still present on the web-site for users, but it's only marked up as structured data when we ...
2
votes
2answers
244 views

Schema.org in Microdata or in JSON-LD?

Should I use Microdata markup on my blog or should I put just an JSON-LD with all info, or is using both the best option? A bit of explanation. I am trying to mark up my blog and I manage to get to 1 ...
1
vote
1answer
303 views

Isn't JSON-LD a form of hiding schema/microdata?

I'm adding schema data/microdata to my web pages. I see that both schema.org and Google they discourage hidden microdata via tags and hiding elements with microdata via style. I can see the reasoning ...
2
votes
1answer
2k views

Schema.org BlogPosting mainEntityOfPage vs. WebPage mainEntity

I am still having difficulty in trying to understand what the mainEntityOfPage.@id is and why it is recommended by Google. I am referring specifically to articles, blog posts and similar schemas. Here ...
4
votes
1answer
171 views

Is JSON-LD supported by Google?

See this page: https://developers.google.com/structured-data/schema-org Google is in the process of adding JSON-LD support to more markup-powered features. So far, JSON-LD is supported for all ...
1
vote
0answers
69 views

JSON-LD Schema Data on Multiple Pages [duplicate]

Wondering if having identical, verified correct by the Google Structured Data Testing Tool, JSON-LD Schema data on index and the same JSON-LD Schema Data on all subpages would create any sort of ...
1
vote
0answers
382 views

Could we use microdata and JSON-LD for the same entities so they work well on Pinterest's rich pins?

we recently switched from microformats for recipes to JSON-LD markup for rich snippets, which worked a lot better in Google search result pages. However, when we try to post a rich pin for recipes on ...
1
vote
2answers
612 views

Advantages / disadvantages of adding schema.org markups in excess?

I've been adding schema markups on my customers' websites but I have a belief that we shall not add markups in excess on a particular page. Sometimes there are opportunities to add a lot of extra ...
2
votes
1answer
146 views

How to correctly display homepage “url” property value using Schema.org

How do you correctly display the url property value of your website's landing page? Do I need to specify the full name like "www.example.com" or is "/" sufficient? I currently have it like this: &...
5
votes
3answers
5k views

How to use more than 1 schema.org schema on a web page

How do you add more than one schema to a web page? I am using the Organization and WebSite schemas on my home page. I am writing the markup in JSON-LD format. The Organization schema for the ...
4
votes
1answer
3k views

schema.org/Book with multiple authors using JSON-LD [duplicate]

How do I display multiple book authors using JSON-LD? This question is similar to my original question, but decided to create a different one seeing that 2 different formats are used. Here is my ...
4
votes
1answer
634 views

Distinguishing Between Organization and Product Reviews (with Schema.org in JSON-LD)

Yesterday we refactored our schema.org/Organization snippet that is found in the header of every page into a schema.org/HomeGoodsStore snippet with included testimonials for our company within it. ...
2
votes
2answers
174 views

How do I specify your social profiles to Google?

A while back I began noticing that big organisations (for example, Nike) have social icons in the search results (knowledge graph). After a little digging, I found a guide on how to specify your ...
1
vote
1answer
550 views

Can I minify JSON-LD without affecting the output in search engines?

Can these type of scripts be minified without affecting the output in search engines? Example script: <script type="application/ld+json"> { "@context": "example.com", "@type": "...
0
votes
0answers
20 views

Has anyone got product rich snippets to work with ld+json? [duplicate]

Has anyone got this to work? Snippets appearing in search results? Reason I ask is because I've added the script but it's not showing up in Google search results. I added the script last week and ...
8
votes
2answers
2k views

Product Snippets with JSON-LD + Schema.org - Are there any live examples in Google index?

** EDIT Feb 2016 - Finally JSON-LD seems to be working now in SERPS, with extremely fast changes-to-index time, assuming you have everything with Google merchant center feeds syncd and linked. Make ...
6
votes
1answer
669 views

Why don't search engines support JSON-LD + Schema.org as seperated endpoints via rel=“alternate” or script src?

So the whole idea of JSON revolves around object->arrays presented in a simple text format. The LD variant is no different. When combined with Schema.org it turns into a flexible display API that many ...
0
votes
1answer
771 views

SEO and dynamic structured data (microdata)

I'm wanting to have a very limited amount of structured data (ideally microdata) added using javascript, especially using the document's lastModified property. It seems rather bizarre and counter-...
3
votes
1answer
554 views

Schema.org WebApplication type for game

I have a web application hosted on a URL. It basically hosts games that students use in school. There are some 100,000 games on it. Is it ok to have the following markup on the game page, for ...
15
votes
2answers
7k views

Should Schema.org Organization data about my company be on every page?

We have added JSON-LD structured data to our website, so Google knows information about our company (company name, url, logo, address, etc.). We worked from the template on Google's documentation. ...
2
votes
1answer
41 views

Difference between Movie including a Review & vice versa

I'm just wondering, if there is a difference in SEO between a Movie object including a Review object and vice versa, when using Schema.org on a webpage. For clarification, see these abstract examples....
8
votes
1answer
6k views

Multiple addresses in JSON-LD Schema.org

I have a site I am creating for a non-profit organization. Their organization has a United States Mailing Address and a Canada Mailing Address. I want to add both addresses with Schema.org (using JSON-...
0
votes
1answer
467 views

URL in JSON-LD Schema.org

I have JSON-LD Schema in the <head> of my site which is applied to every page on the site. One of the fields is url, i.e.: "url": "http://example.com" Should the URL be the domain of the site,...
2
votes
1answer
2k views

Using productontology.org to add Multiple Types?

I have recently been reading about productontology.org to define additional types with schema.org to be more specific. I am building a website for a local pet store that offers various pet products, ...
2
votes
1answer
2k views

Does Google parse SVG images as value of the Schema.org 'image' property in JSON-LD?

Structured data markup is a standard way to annotate your content so Google can understand it. However, I am not sure, if Google will accept and parse svg+xml images as a value for the Schema.org ...
1
vote
0answers
134 views

JSON-LD reverse properties for Event Rich Snippets

I have a page which displays multiple events for one location. For Rich Snippets to work for an event the location is a mandatory field. Rather than duplicate the location information for every event ...
9
votes
1answer
4k views

Where is the ideal place in code to use Schema.org markup as JSON-LD?

Where is the best place to put Schema.org markup that uses JSON-LD? Some recommend inside <head> but scripts work inline too. It would be easier in an MVC to put them in the same scope as the ...
15
votes
1answer
6k views

Any way to validate Schema.org JSON-LD before publishing?

I have a site with a lot of data, and I'm dynamically building JSON-LD data that I think is Schema.org correct. I can't find a dead-on example on Schema.org, and it will take forever if I have to ...