I use GTM queryselector variables to populate the JSON-LD structured data on my pages dynamically – or at least I’m trying to. The variables are pulled correctly in GTM preview mode, they render fine in Chrome Console, but they load as ‘undefined’ in Google Rich Results test! Here’s an example:
Custom JS Variable
Render readout in Console
Rich Results: undefined
The site (https://thechartcast.com) is on WordPress and I’m wondering if some plugin could be messing with the Googlebot render, or something.