How to add meta robots tags for dynamically generated pages or filter driven webpages on AEM | Community
Skip to main content
Raghavaraoseo
Level 2
December 1, 2022
Solved

How to add meta robots tags for dynamically generated pages or filter driven webpages on AEM

  • December 1, 2022
  • 1 reply
  • 6360 views

Hey just need help on the process to add meta robots "noindex" tag in the <head> section for webpages that are dynamically generated on selecting filters. So this should allow me to block them from showing up insearch results

I could not use robots.txt method as these pages are used as inlinks

Iam also looking out for suggestions to place canonical pointing to master page on these dynamic pages.

Please do let me know with relevant steps to solve this issue

Thanks

Raghavarao

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Raghavaraoseo

Hey Avinash,

Thanks for help ,

but had a concern,

can you please let me know if will be able to access this setup for dynamically generated pages.

since we canot predict the url of dynamic pages which are driven through filters,i think we need to automate this functionality to trigger this noindex or canonical on dynamically generated pages case by case

i hope the above process can help me in implementing noindex or canonical for static pages

1 reply

Avinash_Gupta_
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
December 1, 2022

Hi @raghavaraoseo 

 

AEM OOB page properties provides you the option to add no-index tag and set cannonical URL

 

1. Go to the page and open its page properties.

2. Navigate to the Advanced section and scroll down.

3. Apply the no-index and cannonical url as mentioned in the below screenshot

 

 

 

Hope this helps.

Raghavaraoseo
RaghavaraoseoAuthorAccepted solution
Level 2
December 1, 2022

Hey Avinash,

Thanks for help ,

but had a concern,

can you please let me know if will be able to access this setup for dynamically generated pages.

since we canot predict the url of dynamic pages which are driven through filters,i think we need to automate this functionality to trigger this noindex or canonical on dynamically generated pages case by case

i hope the above process can help me in implementing noindex or canonical for static pages

Avinash_Gupta_
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
December 1, 2022

@raghavaraoseo 

 

Are you creating the dynamic pages through code? If yes, in that case you would have to apply additional logic in your code. Adding these properties, generates the following properties in the page jcr:content as mentioned in the below screen shot. You would have to add these properties through code while generating these pages.

 

cq:robotsTags 

cq:canonicalUrl