Change Meta details if blog url contains tagged or a tagged url

Highlighted
Tourist
5 1 0

Good day,

I need to add noindex nofollow if the blog url was created through tag. For example 

www.mydomain.com/blogs/category/tagged/tagname

I want  to add 

<meta name="robots" content="noindex" /> 

on it. I tried blog.url , blog.handle but it did not include tagged.

0 Likes