Schema markup via JSON-LD | Community
Skip to main content
jsherrod
June 4, 2018
Solved

Schema markup via JSON-LD

  • June 4, 2018
  • 4 replies
  • 12476 views

Thanks in advance for considering my question.

I am new to AEM and need to add JSON-LD scripts to various pages to deploy structured data following the Schema.org protocols.  I have done this in other platforms fairly easily but didn't notice a best practice for AEM.  Another option is to use Launch (formerly DTM), but that's less than ideal as I will have to get others involved.  Anyone have tips or resources to point me in the right direction?

Thanks,

John

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SecertAgentMedia

JSON-LD Options:

  1. Statically create your own, and add it to each relevant page via a Custom Component
    1. If you have a single universal script you'd like to add to your site, consider adding it to either the main website parent page or to the language templates
    2. This should ensure the script gets pushed to all other child pages below, which I believe this is the default functionality of most AEM sites.
  2. (Untested/Unverified) Dynamically populate the scripts for pages
    1. Look into AEM ContextHub, which can be implemented via DTM (or possibly Launch)
    2. Unaware of other methods at this point, however I'm sure you can do it somehow if you work with a decent AEM developer.

4 replies

October 4, 2019

where to find schema markup need help

October 14, 2019

Are you trying to use JSON-LD scripts at the component level?

SecertAgentMediaAccepted solution
October 16, 2019

JSON-LD Options:

  1. Statically create your own, and add it to each relevant page via a Custom Component
    1. If you have a single universal script you'd like to add to your site, consider adding it to either the main website parent page or to the language templates
    2. This should ensure the script gets pushed to all other child pages below, which I believe this is the default functionality of most AEM sites.
  2. (Untested/Unverified) Dynamically populate the scripts for pages
    1. Look into AEM ContextHub, which can be implemented via DTM (or possibly Launch)
    2. Unaware of other methods at this point, however I'm sure you can do it somehow if you work with a decent AEM developer.