Enable SEO for localized versions of a portal page

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 2분
  • Allow users to discover portal pages in their preferred language by adding hreflang tags.

    시작하기 전에

    Role required: sp_admin or admin

    프로시저

    1. Navigate to All > Service Portal > Pages and open a page record.
      Ensure that Public is selected for the page. Pages that are not public are not indexed by external search engines.
    2. On the form, select the Use SEO script check box.
      Selecting this check box causes the SEO script field to appear. By default, the system uses the SPSEOHeaderTags script include. You can use a different script include by updating this field.
      "Use SEO script" and "SEO script" fields on the Page form
    3. Click Update.

    결과

    The system adds default hreflang tags for each active language in your instance.

    다음에 수행할 작업

    You can override the default hreflang tags, add a canonical URL, or add custom header tags by updating the script include that is referenced in the SEO script field. This needs to be set by the page or content author.

    To specify a canonical URL for the page, update the generateCanonicalURL function in the script include.

    To specify custom header tags for the page, update the generateCustomTagsForSEO function in the script include.

    For an example of inserting custom SEO tags into the knowledge article view page, see Configure custom SEO tags for canonical URLs and localized knowledge articles.