How can I add meta tags to Service Portal pages?

mspeirs
Mega Expert

The Content Management plugin allows adding meta tags to cms sites and pages. How can I do this for Service Portal pages? I would like to use this to allow search engine crawlers to know more about what the page is for. It would also make it possible for me to verify ownership of our portal for the google search console and other developer tools.

9 REPLIES 9

Alex North
ServiceNow Employee

Hi folks,

The ability to add meta tags to service portal pages was made available in Kingston. Here's the link to the product documentation. We used this functionality as part of our new on-platform Community site!

Something I am sure you will have considered is making sure you have appropriate robots.txt definitions and/or IP Access controls on your sub-production environments to make sure that only production content is crawled and indexed by search engines.

Hope the link is helpful for you!

HumanSky
Mega Guru

I'm running into Google fetching and rendering issues as well. Alex is right, you will need to adjust the robots.txt. The Service Portal renders the pages dynamically, via JavaScript, so you will need to give the crawler access to all the scripts required to load the page. This is my robots.txt file:

 

User-agent: *
Disallow: *
Allow: /sp*
Allow: /api/now/sp*
Allow: /scripts*
Allow: /styles*
Allow: /api/now/sp*

 

Make sure you change the /sp* line to the correct path for your portal(s). Hope this helps.

How do you EDIT the robots.txt page? There doesn't seem to be any documentation as to how to change/access the default. Thanks.

Hi Bill,

Robots.txt is part of the "Custom Search Integration" plugin. With that plugin enabled, you can manage the default robots.txt page.

https://docs.servicenow.com/bundle/kingston-platform-administration/page/administer/search-administration/task/t_BlockARobotFromYourSite.html