2

I'd like to do schema markup for my wordpress blog in Google Tag Manager. I've integrated the variables for Image url and Date Published into my JSON-LD GTM Tag, but I get an error in the Google Structured Data Testing Tool saying:

url - false (The value provided for image.url must be a valid URL.)

datePublished - false (Cannot understand the value false as a date/time. Learn more about date/time formats.)

Can you please help me to find out what do I do wrong?

Here is a part of my tag: enter image description here

My variable for Image Blog enter image description here

My variable for Date Published: enter image description here

Error in the Google Testing Tool: enter image description here

3
  • 1
    What exactly do you test in the SDTT, the JSON-LD after or before the variables are replaced with the data?
    – unor
    Commented Jul 19, 2018 at 14:36
  • I'm testing whether Google gets my structured data correctly... I was basically following the steps from this article to set-up the markup moz.com/blog/…
    – Tash
    Commented Jul 19, 2018 at 15:10
  • 1
    Refer to the Google: Don’t Rely on Google Tag Manager for Structured Data thesempost.com/…
    – user29419
    Commented Jul 20, 2018 at 5:32

1 Answer 1

1

It looks like your meta tags don't exist or are not properly populated in your blog post pages. Please check and confirm if they are there in the first place so that Google Tag Manager can then extract the values correctly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.