public kb articles should be discoverable through search engine like Google
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Team,
I have below requirement:
Make published articles in the “Public” knowledge base discoverable through internet search engines like Google, enabling users to find answers.
Example from another Google search for "How to use filters"
Search: https://www.google.com/search?q=how+to+use+filters
First search result: https:The article from servicenow instance.
I got below article from community:
Configure Google Custom Search Integration - ServiceNow Community
There is a plugin request is mentioned in the article. Is there any other way to achieve this functionality? through script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
you don’t strictly need the plugin to get public KB articles into Google. The plugin mainly gives you a managed robots.txt. Getting articles indexed comes down to four things:
1. Make the articles truly public
- Set the knowledge base’s Can Read user criteria so unauthenticated users can read it (e.g., a “Public” user criteria).
- In Service Portal > Pages, mark the KB article page (
kb_article) and the KB home or search pages as Public. Non-public pages are never indexed. - Check by opening an article URL in an incognito window. If it redirects to login, Google can’t see it either.
2. Generate a sitemap (OOTB, no script needed)
Recent releases include a Sitemap Generator. Go to All > Sitemap Generator > Sitemap Configuration, create a config for your public portal, and click Generate Sitemap. Then use Copy Sitemap URL and submit that URL in Google Search Console, or reference it in robots.txt if you have the plugin. If you’re on an older release, the scripted alternative is a public processor or UI page (e.g., sitemap.do) that queries published articles in the public KB and outputs sitemap XML. Kevin Custer’s “Create a Dynamic Sitemap in ServiceNow” article on Community walks through it.
3. Add SEO metadata
- In Service Portal > Pages > [page] > Meta tags, add description and robots tags.
- In Knowledge > Article Templates, set the SEO Description Tag field so each article gets a proper meta description.
4. Register with Google Search Console
Verify the domain (a meta tag on the portal page works), submit the sitemap URL, and monitor the “Why pages aren’t indexed” report. Indexing can take days to weeks.
About the plugin
The Google Custom Search Integration plugin (requested through the Store or Now Support) is what gives you Robots.txt Definitions. A robots.txt isn’t required for indexing, but it’s best practice: allow /sp (or your portal suffix) and the sitemap, disallow everything else, and add the Sitemap: line.
Lessons learned from others who’ve done this
- Use one canonical article URL. Articles reachable through several URLs (by sys_id, by number, with different query params) dilute indexing. Always link to the same format, e.g.
/sp?id=kb_article_view&sysparm_article=KB0012345. - Block sub-prod instances. If DEV or TEST have public pages, block them from crawling so duplicates don’t get indexed.
- Keep retired articles out of the public KB. Make sure retired or outdated articles are no longer publicly readable. Otherwise Google will keep showing them.
Hope this helps! Mark it helpful if it does.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thanks for your response. I’d like to clarify one point: Is it possible to have public knowledge articles appear as clickable links in Google Search results without using a plugin or a robots.txt file?
If so, could you please provide the exact steps to configure and achieve this in the development (dev) environment?