Shopify Website Search Script

Shopify Website Search Script

Rate this article

Share this article
Read this article on the Shopify website search script for more information. Shopify Scripts are small pieces of code that let you create personalized experiences for your customers in their cart and at checkout. You can also add custom code snippets to get functionality such as search. shopify website search script

Create a Custom Search Engine

Method 1- Using Expertrec’s Shopify search App.

  1. Install Expertrec’s Shopify search extension from here.
  2. Once you install the extension, you will be directed to your control panel where you will have to enable your search engine by toggling on the enabled search extension.
  3. Once the app is installed, you will be able to see the facets and filters on the search results pages.

Method 2- Using Code

Here we will visit the steps required to add the ExpertRec Custom search engine to your website. This is one of the easiest setup processes of all the available options out there and is highly recommended.
  1. Navigate to and signup with your Google ID.
  2. Enter your website’s URL when prompted. You can select a server location near you and add the URL of your sitemap if you wish to. These will be auto-detected otherwise.
  3. You can play around with the settings and customize the UI as the crawl runs. Once it is complete, you can check out a fully functional demo before taking the search to your website.
ExpertRec comes with more customization options that you can explore. You can read this article to find a more detailed guide on the installation and configuration.

Installing ExpertRec using Shopify Website Search Script

  1. You can take the search to your website with little to no effort. All you need to do is to paste the Shopify Website Search Script available on the dashboard on your website.
  2. Log in to your Shopify account and click on Online Store
  3. From the Actions, drop-down menu click Edit code
  4. To edit the header in the Code editor, search for the header and open it under Sections. This is where you will find the search box usually. It may be different in your case.
  5. Find the code related to the search box and replace it with the code snippet from your dashboard. If you do not have a search box already, then you can directly paste the code snippet.
Save changes and you will have a brand new search live on your site!

Get the ExpertRec Shopify App

Are you showing the right products, to the right shoppers, at the right time? Contact us to know more.
You may also like