Structured Data is not displaying
See original GitHub issueHi
i have tried the following code.
But its not working
import React, { PropTypes } from 'react';
import Helmet from 'react-helmet';
const StructuredDataComponent = (props) => {
console.log(props.type);
console.log('StructuredDataComponentLog');
return (
<div>
<Helmet
script={[{
'type': 'application/ld+json',
'innerHTML': `{
'@context': 'http://schema.org',
'@type': 'NewsArticle'
}`
}]}
/>
</div>
);
};
StructuredDataComponent.propTypes = {
type: PropTypes.string.isRequired,
};
export default StructuredDataComponent;
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
8 reasons why your structured data is not showing in search
Summary of why your structured data isn't showing up in search · Google is not aware that your site has schema markup because...
Read more >Troubleshoot Structured Data not Showing in Search
Reasons Why Rich Results Not Showing in SERP · 1. Google hasn't crawled your site since the change was made · 2. Not...
Read more >12 Reasons Why Your Rich Snippets Aren't Showing
5. Your Structured Data Mark Up Is Done Incorrectly ... This is the most common reason why rich snippets aren't showing for pages...
Read more >Structured data not working - WordPress.org
Then I found out that the structured data is not working on the product pages. Information is missing such as: Price, sku and...
Read more >Google Structured Data Helper not displaying website
After it is done loading on the 'Tag Page', the webpage I am trying to tag does not display on the left side...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello there, I’m running in the same issue with server side rendering but the case is slightly more complex for me:
And the issue is the following:
However, in a normal browser, after I loaded the page I get this script element.
Therefore, I think that I’m missing something but cannot figure out what.
Btw my server side code looks like this:
Nevermind, I forgot to call
head.script.toString()
on my base template.