Hi everyone,
Is it possible to get the configured meta tag rules in BM through code, in B2C Commerce Script? The reason I want to do this is to define default meta tag rules for page designer pages, so that even if they are not configured in a particular page, these defaults will be used.
I couldn't find a way to configure this for page designer, so I was looking to use the existing Meta tag rules page in BM. But this seems to be only for PLPs, PDPs and other contents. Can this be used in page designer too?
Here are the docs I could find for the SEO meta tag rules page in BM: https://documentation.b2c.commercecloud.salesforce.com/DOC2/topic/com.demandware.dochelp/content/b2c_commerce/topics/search_engine_optimization/b2c_creating_page_meta_tag_rules.html
Thanks,
David Pereira.
Hi @David Pereira, some the ScriptAPI code snippets to integrate Page Meta Tag Rules into SFRA are available at https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%2Fcom.demandware.dochelp%2Fcontent%2Fb2c_commerce%2Ftopics%2Fsearch_engine_optimization%2Fb2c_meta_tag_rules_site_integration.html - for dynamic pages using Page Designer please have a look at https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%2Fcom.demandware.dochelp%2Fcontent%2Fb2c_commerce%2Ftopics%2Fpage_designer%2Fb2c_use_page_meta_tag_rules_for_pd.html Best, René
Hello @René Kessler, sorry for the late response but does this work for all page designer pages?
How can we set a new meta tag rule for a page that is using a different page type in page designer (completely different layout from home page)? I can't find a scope that would work for those pages in here:
Can we create new scopes so that we can define metatags for more page designer pages?
Can you please help?
Thanks,
David Pereira.