SEO meta tags

Is there a reason that og:title and twitter:title do not append the defined global suffix like standard <title> meta tag? I would want it append there as wellā€¦

     "_seoMetaTags": [
        {
          "attributes": null,
          "content": "Test and Measurement Solutions | Dewesoft",
          "tag": "title"
        },
        {
          "attributes": {
            "property": "og:title",
            "content": "Test and Measurement Solutions"
          },
          "content": null,
          "tag": "meta"
        },
        {
          "attributes": {
            "name": "twitter:title",
            "content": "Test and Measurement Solutions"
          },
          "content": null,
          "tag": "meta"
        },

Hello @primoz.rome

It would indeed make sense to add the suffix to those two parameters as well.
Iā€™ve opened a request to do so, and iā€™ll get back to you :slight_smile:

@primoz.rome the idea here was that the suffix is useful for SEO purposes, it might be annoying on the social cards?

@mat_jack1 hmm I havenā€™t think of that. We are using it also on social cards.
Maybe adding a checkbox ā€œUse it on the social cardsā€ would be an all-flexible solution?

Thanks,
Primoz

Sorry, i missed your response!

Canā€™t you do that on the frontend already?

@mat_jack1 what do you mean exactly?

When you are generating the HTML for the social cards you can do something different compared to what you do for SEO purposes, or am I missing something?

@mat_jack1 but the HTML for social cards is generated by the renderMetaTags method of your react-datocms package.

Sure I could do that myself on the front end, but I like how renderMetaTags takes care of that automatically.

right! OK, weā€™ll discuss if we want to add something on our component, thank you for the suggestion!

1 Like