I'm using a matrix for hero images on my pages, and I'd like to use them as the SEO image in SEOMatic, but it's not available in the settings.
I tried setting the field to "Custom URL" and adding twig code:
{% set hero = entry.heroImages.one() %}{% set image = hero.image.one() %}{{ image.url }}
If I place this in my template, it displays the path to the first matrix image, but SEOMatic seems to ignore it.
Is there another way to configure things to use my matrix images?