example JS - noindex scenarios

noindex via javascript

Some tools might not be able to detect a robots instruction which gets added only on rendered pages. Consider adding the following via javascript: <meta name="robots" content="noindex" />

Google Search Console URL Inspection will declare this Excluded by ‘noindex’ tag