Using Canonical URLs in NetSuite Websites

NetSuite builds a canonical, or normalized, URL based on the preferred category you select for each item published online.

A canonical URL is useful in SEO because it creates a single preferred path to each item on your website, which eliminates the perception of duplicate content. Although an item may display in multiple categories or tabs, NetSuite uses the canonical URL to point to item pages in product feeds and site maps.

If you do not select a preferred category on the item record, NetSuite will determine the preferred category based on the most prominent category or tab on your site where the item is published.

To select a preferred category on an item record, check the box in the Preferred Category column on the Store subtab. For more information on displaying items online, see Setting Up Items for the Web Site .

Canonical URLs and Custom Item/Category Templates

The canonical URL tag exists in the <head> element of the NetSuite basic item drilldown and category list templates.

Note that you may need to add a canonical URL tag if you have already customized the NetSuite basic site templates.

To add a canonical URL to a customized Item/Category Template:

  1. Go to Commerce > Site Builder > Appearance > Item/Category Templates.

  2. Click Edit next to the template you want to modify.

  3. In the Addition to <head> field, enter the following:

    • For item drilldown templates:

      <link rel='canonical' href='<%=getCurrentAttribute('item','canonicalurl')%>'/>

    • For category list templates:

      <link rel='canonical' href='<%=getCurrentAttribute('sitecategory','canonicalurl')%>'/>

  4. Click Save.

Related Topics

General Notices