on ‎2018 Aug 23 12:21 AM
Hi Experts,
I'm new to hybris and i'm supposed to stdding SEO meta tags to our project, but I have searched here and google and I still do not understand how to do this. I am able to add keywords and description on content pages on cmscockpit, but I cannot add it to the category or product pages. What about new meta tags like o:g or something do I just add to the master.tag? Any clarification on where to start will help. Thank you.
Sincerely,
Charlie Pan
Request clarification before answering.
Hi Charlie, By default OotB provides option to add meta keywords at Category and Product level, it is a list. For description, it takes from description field, you can add the data from backoffice or productcockpit(possibly). for these you don't need to customize anything. For opengraph(og) tags, you will have to customize, it doesn't come OotB. You can add new attributes to category or product models, or leverage what the attributes that are already there, depends on how you design it. Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ak M,
Right now I'm testing these functionalities on my local instance. I noticed I can export as csv not sure if i can import though? If not where is the best place to start coding because going through the backoffice seems very repetitive. So far I have gotten success adding keywords to category and content pages. However, when I try to add to product I see the keyword in the productcockpit I make sure it is synced, but it does not show up in the meta tag on the site. Thank you.
Am glad that you got it working for Category and content pages. On your queries,
If you are asking about importing keywords for all categories and products, you can do this via Impex Import.
For product page, do you know if the ProductKeywordsPopulator is getting executed? This is responsible for populating Keywords from Model to Data. It is a configurable populator I believe, you might have to pass it as extra OPTOIN to product facade if it is not getting invoked.
It is present in below package, in acceleratorfacades extension. de.hybris.platform.acceleratorfacades.product.converters.populator.ProductKeywordsPopulator The below code populates keywords to data object. If you still don't get the above populator working, you can add the below code in one of the populators that is working for Product page.
Hi Hsin
If you wish to achieve some SEO leverage by configuring meta keywords, then here is the news - "The Meta Tags are not used by Google now".
For further reading on this please see this link: https://datadrivenlabs.io/blog/meta-keyword-tag-google-2018/
Still, if there is a requirement to configure the meta tag keywords then, as per the hybris directives-
The default meta keywords are set as follows:
Product Page: productData.keywords (This is not implemented OOB)
Category Page: category.keywords (Catalog->Categories->Select a category->keywords)
Search Results Page: search terms
Store Search Results Page: search terms
Store Page: store.city, store.postcode, store.country
Content Page: page.keywords (Any content page) (WCMS->Homepage->Description)
Some additional information - The default meta descriptions are set as follows:
Product Page: product.summary (Catalog->Products->Select a Product->Summary)
Category Page: category.description (Catalog->Categories->Select a category->description)
Search Results Page: Search results for search terms on storefront.name
Store Search Results Page: storefront.name Store Locations near to
Store Page: store.description(Store Locator Page -> Description)
Content Page: contentPage.description (Any content page) (WCMS->Homepage->Description)
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ootb you can find keywords under catalog in HMC/backoffice. There you can create the keywords and assign the products/categories you want.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.