# Search Engine Optimization How to access on Fynd Commerce Commerce Panel → Sales Channel (select application) → Content → SEO ## Introduction Search Engine Optimization, abbreviated as SEO, is the process of making a website show up on web search results. A website needs to be optimized continuously for it to appear in the organic rankings of a search engine, such as Google. The better the quality of a website, the higher the ranking. br In this document, you will learn about the following SEO options Robots.txt → Custom Tags → Application Details → Self Canonical Tags → Sitemaps → Schema ## Robots.txt Search engines such as Google, Bing, Yahoo, and many more use crawlers (a program or script) to find web pages that are new, old, and modified. These crawlers read the content of the pages and accordingly create entries for the search engine index. Robots.txt is a file that instructs the crawlers which resources to read, and which ones to ignore. A typical robots.txt looks like this:  center em Figure 2: Sample Robots.txt File br **Case 1**: If you want all the crawlers to visit all the resources on your website. ```js User-agent: * Allow: / ``` **Case 2**: If you want only one crawler (say Googlebot) to visit all the resources. ```js User-agent: Googlebot Allow: / ``` **Case 3**: If you don't want a specific crawler (say LinkedInBot) to visit a specific resource (say /photos/). ```js User-agent: LinkedInBot Disallow: /photos/ ``` **Case 4**: If you don't want crawlers to access any resource. ```js User-agent: * Disallow: / ``` ### Recommended Sample Code This is the recommended Robots.txt content for your website. ``` User-agent: * Disallow: /dashboard/ Disallow: /order/ Disallow: /address_book/ Disallow: /return/ Disallow: /wishlist/ Disallow: /cart/ Disallow: /checkout/ Disallow: /thankyou/ Sitemap: https://www.yourwebsite.com/sitemap.xml User-agent: Googlebot Disallow: User-agent: Googlebot-image Disallow: ``` You can specify permissions (allow/disallow) for more than one user-agent (crawler) in the robots.txt file. ## Custom Tags You can create tags that describe the content of a page. Unlike other tags, the custom tags appear only in the source code of the web page. For example, Facebook seeks a domain verification before linking ads to your website. It provides a custom tag to add within the **`
`** section of your page's source code. For doing this, you can refer the below steps. 1. Click **Add New Meta Tag**.  center em Figure 3: Creating A Custom Tag br 1. Enter any name and paste the tag provided by Facebook. 1. Click **Save** Similarly, you can add custom tags to specify the character set, SEO keywords, and many more. Example [Click here](/commerce/docs/miscellaneous/google-verification) to learn how you can use custom meta tags to get your site verified by Google. ## Application Details In Fynd Commerce , you can add a title and description within **Application Details**. Search engines will show the meta title and meta description of your website when people search for your website.  center em Figure 5: Adding Title And Description br * **Meta title** Whether a user clicks your website or not, depends on how you have constructed the title of your website. Therefore, it should be written by keeping the user's perspective in mind. You can generate the meta title using AI by clicking on the generate or generate using custom keyword button. * **Meta description** Search engines may define their own meta description for your website. To avoid this, you should write a meta description that includes all the relevant keywords and the purpose of your website. You can generate the meta description using AI by clicking on the generate or generate using custom keyword button. No matter how long the title and description is, search engines will show only upto 50-60 characters of the title, and 155-160 characters of the description in the search results. Therefore, you should consider adding the most relevant keywords in the beginning. ## Self Canonical Tags In SEO, canonical tags are used to mark or point the preferred version of a website page when there are different versions of that page accessible through different URLs. As the name suggests, a self-canonical tag is the tag that points to itself, implying that a particular page is the preferred version of itself, despite it may be accessible through different URLs. Example, suppose you have a product page on your website that can be accessed through multiple URLs, such as: * `https://pc.fyndstore.co/product/black-tapered-pant` * `https://pc.fyndstore.co/category/trackpants/product/black-tapered-pant` * `https://pc.fyndstore.co/product/black-tapered-pant?source=google` Upon enabling self-canonical tags as shown below, a canonical tag will be added to HTML code of that page (Refer Figure 7). It gives suggestion to search engines that the page at `https://pc.fyndstore.co/product/black-tapered-pant` is the preferred version, although it may be accessible through different URLs.  center em Figure 7: Self Canonical Tag Added br Learn more about Canonical Tags. ## Sitemap A sitemap is a structured file that lists all the important pages of a website, ensuring that search engines can find and crawl them efficiently. Search engines like Google primarily discover web pages through links. By providing a sitemap file in XML format, webmasters assist search engines in better understanding the site structure. This can improve crawling accuracy and speed, enhancing the website's search engine visibility and indexing. ### Create a Custom Sitemap Do the following steps to create a custom sitemap: 1. Navigate to **Settings** → **SEO** → **Sitemap**. 2. In the upper-right side of the window, ensure that the Sitemaps Enabled toggle is enabled. This will activate the default sitemap functionality. 3. In the Sitemap XML Editor, enter content in the XML format. Content added in the custom sitemap will be integrated into the default sitemap and will not replace your default sitemap. ```