Is there a way to have the SEO Page Generator rend...
# suitecommerce
s
Is there a way to have the SEO Page Generator render different Product meta tags for Items that have different language translations? We have products that are shared by multiple subsidiaries, so they have different translated name and description fields (same item, one name in English, another name in French). However the native NetSuite Item meta tag field is not translatable field. Any ideas?
s
Not entirely sure what you mean by this. Domains on SC sites are typically only set up for one language and the application will respect the current language selection when generating JSON LD content. For example my Spanish language domain: https://es.suitecommerce.stevegoldberg.co.uk/Rishi-Jacket_2 The name and description uses my terribly fake Spanish language versions
s
I mean the Item's meta tag field when viewing the page source won't get translated:
Our SCA version is 20.1 so I believe there is no JSON LD support?
s
JSON LD support was added in 20.1
👍 1
As for that field, I don’t think it’s used on SCA
s
It is. The content populated in the head in first screenshot is being generated from that field
s
Are you sure? The fields in the first screenshot are Open Graph tags; the field in the second screenshot is different
s
Yes. Our JSON LD is deactivated and this is at the end of the head coming straight from that field.
Should the field not be used if we have multiple domains in different languages then?
s
I see. Looking at it more, we will set the meta description field using that NetSuite field if it is detected. So, no, I don’t think it’s translatable because it is literally just pasting in whatever string you pass it. I wouldn’t bother with meta keywords (Google doesn’t). As for what to do with multiple languages, I actually don’t know. Based on what I read on Google’s guidelines, it seems like it’s not a very important field. I don’t really have advice for you. You might need to talk to an SEO expert, but I honestly don’t think you’d get penalised if you kept the English text. But that’s just my personal opinion.
s
All right. Thank you Steve 👍
Because we don't have any control over the SEO Page Generator right? There is no way we could workaround into appending translated content in the head? I ask because we are already talking to an Marketing agency and they insisted on those meta tags
s
With SCA, you can always change the way that this works. For example, you could add custom fields to items, add those fields to the field set, and then tell SCA to use those fields to render a meta tag. For example, in /Advanced/ProductDetails/JavaScript/ProductDetails.Base.View.ts we have
getMetaTags()
and so you could hijack that. Or you could back further and modify
_metaTags
in Item.KeyMapping
👍 1
s
Cool, I will try that