Home / SEO / How to Enable Search by Product SKU in WooCommerce

How to Enable Search by Product SKU in WooCommerce

Are you frustrated with the limited search functionality on your WooCommerce website? Struggling to find specific products by their SKUs? Look no further! In this article, we’ll guide you through enabling search by product SKU in WooCommerce using powerful plugins like Relevanssi or SearchWP.

With these plugins, you can take control of your search functionality and customize it to include SKUs in the search index. This means your customers can easily search for products by their unique SKU, making it a breeze to find exactly what they’re looking for.

Enhance the user experience on your site and create a seamless shopping experience for your customers. Let’s dive in and discover how to enable this game-changing feature in WooCommerce.

What Is WordPress Referrer Spam

To understand what WordPress referrer spam is, you need to be aware of the technique used by spammers to manipulate website analytics and distort traffic statistics.

Referrer spam is a method where spammers make repeated requests to a website using a fake referrer URL. This fake URL appears in the website’s analytics, creating misleading data.

Referrer spam can negatively impact the accuracy of your website’s traffic statistics and make it challenging to determine the true source of your website’s visitors.

To combat referrer spam in WordPress, you can configure your website’s .htaccess file or utilize plugins specifically designed to block referrer spam.

Regularly monitoring your website analytics and taking measures to prevent and filter out referrer spam is crucial to maintaining accurate traffic statistics and ensuring the integrity of your data.

The Importance of Blocking Referrer Spam

Blocking referrer spam is crucial for maintaining accurate website analytics and preserving the integrity of your data. Referrer spam occurs when fake websites send fake traffic to your site, skewing your analytics and making it difficult to analyze real user behavior.

To effectively block referrer spam in WooCommerce, follow these steps:

  1. Install and activate a plugin: There are several plugins available, such as Referrer Spam Blocker or WP-Ban, that can help you block referrer spam. Install and activate one of these plugins to get started.
  2. Configure the plugin settings: Once the plugin is activated, you’ll need to configure its settings. This typically involves adding the spam referrer domains you want to block to a blacklist.
  3. Regularly update the blacklist: Referrer spam tactics are constantly evolving, so it’s important to regularly update your blacklist with new spam domains. This will ensure that your site remains protected from the latest referrer spam attacks.
  4. Monitor your analytics: After blocking referrer spam, monitor your website analytics to ensure that the data is accurate. Look for any unusual patterns or referrals that seem suspicious, and adjust your blacklist as needed.

Using a Strong Security Tool/Software

Ensure the security of your WooCommerce site by using a robust security tool or software. By implementing a strong security tool or software, you can ensure the smooth operation of your WooCommerce product search and provide a secure environment for customers to search for products by SKU.

When it comes to enabling search by product SKU in WooCommerce, it’s crucial to protect your site from potential security threats. By using a strong security tool or software like SearchWP, you can enhance the search functionality of your site while keeping it safe and secure.

Search plugins such as SearchWP allow for customization of the search algorithm and provide real-time results for SKU searches. With the WooCommerce Integration extension for SearchWP, you can enable SKU search by indexing SKUs and including them in search results.

Blocking Referrer Spam With a Plugin

When using a strong security tool or software for your WooCommerce site, you can effectively block referrer spam with the help of a plugin. Referrer spam is a technique used by malicious individuals to manipulate website analytics data by sending fake traffic from spammy websites.

To block referrer spam with a plugin, follow these steps:

  1. Choose a reliable plugin: There are several plugins available that can help you block referrer spam. Look for plugins with good reviews and a high number of active installations.
  2. Install and activate the plugin: Once you have chosen a plugin, install and activate it on your WooCommerce site. Most plugins can be easily installed through the WordPress dashboard.
  3. Configure the plugin settings: After activating the plugin, navigate to its settings page and configure it according to your preferences. Look for options related to referrer spam blocking and enable them.
  4. Monitor and update: Keep an eye on your website analytics to ensure that the plugin is effectively blocking referrer spam. Regularly update the plugin to ensure that you have the latest security features and improvements.

Setting Up Google Analytics Filtering

To set up Google Analytics filtering for your WooCommerce site, follow these steps:

  1. Log in to your Google Analytics account and navigate to the Admin section.
  2. Select the View that corresponds to your WooCommerce site.
  3. Click on the Filters option, then click on the Add Filter button.
  4. Give your filter a name, such as ‘SKU Search Filter’.
  5. In the Filter Type section, select the Custom filter type.
  6. Under the Filter Field, choose ‘Request URI’.
  7. In the Filter Pattern field, enter the regular expression that matches your product SKU URLs. For example, if your product SKU URLs have a specific format like ‘/product-sku/’, the regular expression could be ‘/product-sku/’.
  8. Finally, click on the Save button to apply the filter.

Removing Referrer Spam With Sucuri

To remove referrer spam with Sucuri, follow these steps:

  1. Install and activate the Sucuri plugin from the WordPress plugin repository.
  2. After activation, go to the Sucuri plugin settings in your WordPress dashboard.
  3. In the settings, navigate to the ‘Traffic Integrity’ section.
  4. Enable the ‘Remove Referrer Spam’ option.

By enabling this option, Sucuri will automatically filter out any referrer spam from your website traffic.

This will help you obtain more accurate analytics and ensure the security and credibility of your website.

With referrer spam removed, you can focus on improving your WooCommerce search functionality, including the ability for customers to search by SKU, enhancing their shopping experience.

Manually Removing Referrer Spam With a Plugin

After removing referrer spam with Sucuri, you can now manually remove any remaining spam using a reliable plugin.

One such plugin is the ‘Referrer Spam Blocker’ plugin. This plugin allows you to block unwanted referrer spam by adding the spam domains to a blacklist.

To start, install and activate the plugin on your WordPress site. Once activated, go to the plugin settings page and scroll down to the ‘Blacklist’ section. Here, you can manually enter the spam domains that you want to block.

Click on the ‘Save Changes’ button to update the blacklist. The plugin will then prevent any traffic from the blacklisted domains from appearing in your site’s referrer reports.

Blocking Ghost Referrals With Filters

You can block ghost referrals in WooCommerce by using filters. Ghost referrals are fake traffic that appear in your analytics reports, skewing your data and making it difficult to get accurate insights. By implementing filters, you can exclude these ghost referrals from your reports and ensure that you’re only tracking genuine customer activity.

Here are four steps to block ghost referrals with filters:

  1. Identify the ghost referrals: Analyze your analytics data and identify the sources of the ghost referrals. These can be spammy websites or bots that are sending fake traffic to your store.
  2. Create a filter in Google Analytics: Go to your Google Analytics account and navigate to the Admin section. Under the View column, click on Filters and then click on the ‘+Add Filter’ button. Give your filter a name and select the ‘Custom’ filter type. Choose the ‘Exclude’ filter and select the ‘Campaign Source’ or ‘Referral’ filter field. Enter the ghost referral source in the filter pattern.
  3. Apply the filter to your view: Select the views where you want to apply the filter and click on the ‘Add’ button. Save the filter and it will start excluding the ghost referrals from your reports.
  4. Regularly monitor and update the filter: Keep an eye on your analytics reports to ensure that the filter is working correctly. If you notice any new ghost referrals, update the filter by adding the new sources to the filter pattern.

Frequently Asked Questions

How Do I Search for a Product by SKU in Woocommerce?

To search for a product by SKU in WooCommerce, you can use plugins like Relevanssi or SearchWP. These plugins modify the default search functionality, allowing customers to find specific products by SKU, improving their overall experience on your site.

How Do I Add a Search by SKU in Woocommerce?

To add a search by SKU in WooCommerce, install plugins like Relevanssi or SearchWP. These plugins modify WordPress search, allowing customization of search functionality. Customers can search for products by SKU, improving the user experience.

What Is Search by Sku?

Search by SKU is a feature that allows customers to find specific products in an eCommerce store by entering the unique product identifier. It enhances the user experience and makes it easier to locate desired items quickly.

How Do I Show SKU on Woocommerce Product Page?

To show SKU on the WooCommerce product page, you can use the [sku] shortcode in the product description or use a plugin like WooCommerce Show SKU to display it automatically.


Enabling search by product SKU in WooCommerce is a game-changing feature that enhances the user experience on your website.

By using plugins like Relevanssi or SearchWP, you can customize the search functionality to include SKUs in the search index.

This allows your customers to easily locate their desired products, saving them time and creating a seamless shopping experience.

Don’t waste any more time scrolling through endless product listings – enable search by product SKU and enhance your WooCommerce website today.

How can SKU search be enabled in WooCommerce?

Enabling SKU search in WooCommerce can greatly improve search functionality, enhance user experience, and streamline product search. By installing and activating the SearchWP plugin, along with the WooCommerce Integration extension, SKU search can be enabled. The process involves rebuilding the search index, downloading and activating the WooCommerce Integration extension, integrating SearchWP with WooCommerce, and indexing WooCommerce products. Customization options are available to improve search performance, configure the search algorithm, and utilize search filters. Testing the SKU search feature ensures its functionality, enhances user experience, and optimizes product search. Following best practices and troubleshooting common issues can further improve the implementation of SKU search in WooCommerce.

Table of Contents