Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Schema markup via JSON-LD

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Level 1

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.

View solution in original post

4 Replies

Avatar

Level 1

where to find schema markup need help

Avatar

Level 3

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

Avatar

Correct answer by
Level 1

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.