question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Example of dynamically creating JSON-LD to create Google Rich Cards in Meteor?

See original GitHub issue

I would like to see if somebody could post an example of how to dynamically create a JSON-LD to create a google rich card? I had read issues here and stack overflow posts and I think it’s possible but I haven’t figured it out how. I would really appreciate if somebody could show me an example of how to implement this.

This is what I’ve so far:

<Helmet> <script type="application/ld+json"> { { “@context”: “http://schema.org”, “@type”: “WebSite”, “name”: ${this.state.title.toString()}, “url”: ${this.state.url.toString()}, “description”: ${this.state.body.toString()}, “image”: ${this.state.imgUrlGal.toString()} } } </script> </Helmet>

Thanks

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:12

github_iconTop GitHub Comments

50reactions
devhelpercommented, Sep 9, 2018

My website is https://israel-escorts.com/. Which are kind of rich cards can be used for my site?

31reactions
vanvuongngocommented, Apr 19, 2018

see Reference Guide https://github.com/nfl/react-helmet

<Helmet>
  <script type="application/ld+json">{`
    {
      "@context": "http://schema.org",
      "@type": "WebSite",
      "name": "${this.state.title}"
    }
  `}</script>
</Helmet>
Read more comments on GitHub >

github_iconTop Results From Across the Web

nystudio107 on Twitter: "@rjgux @roelvanhintum @markhuot ...
Example of dynamically creating JSON-LD to create Google Rich Cards in Meteor ? ... of how to dynamically create a JSON-LD to create...
Read more >
How to Use JSON-LD for Advanced SEO in Angular
A guide to dynamically inserting JSON-LD markup in Angular to increase our chances of rich results, knowledge cards, and pleasing the robots ...
Read more >
Generate Structured Data with JavaScript - Google Developers
Use Google Tag Manager to generate JSON-LD dynamically ... Here is an example of JavaScript-generated structured data: ... Open the Rich Results Test....
Read more >
Using Google Tag Manager to Dynamically Generate Schema ...
First, build out a complete JSON/LD Schema snippet for a single post ... google tag manager json-ld insertion script with dynamic variables.
Read more >
React Helmet Adds ≪Script Type="Application/Ld+Json ...
... of dynamically creating JSONLD to create Google Rich Cards in Meteor? ... The example showcases the inclusion through a script tag of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found