Shopping Cart

THE DIFFERENT CODES TO BLOCK YOUR ” BEST SELLING ” PAGE ON SHOPIFY

THE DIFFERENT CODES TO BLOCK YOUR " BEST SELLING " PAGE ON SHOPIFY
But… it's not so helpful when it's others who are coming to see your best-selling products. Are there any solutions to prevent your competitors from seeing your top sellers on Shopify? The answer is yes. Here are my tips to stop showing that page with your best sellers!

Checking out your competitors’ pages to see their top sellers on Shopify can be helpful in finding winning products.

But… it’s not so helpful when it’s others who are coming to see your best-selling products. Are there any solutions to prevent your competitors from seeing your top sellers on Shopify? The answer is yes. Here are my tips to stop showing that page with your best sellers!

My opinion on Shopify’s “best seller” pages

Personally, I find it a bit absurd to have a page that lists the best sales of a store by default… Especially in dropshipping! Indeed, when you find a Shopify site and you add in the URL “/collections/all?sort_by=best-selling”, you will come across the best sales.

It’s a bit of an open door for the competition to find products that are hot.

With just a few clicks, a direct competitor in your niche comes to your site, consults the URL of the best sellers and leaves with all the necessary information about the products he has to sell… This default page is not present on a solution like Dropizi and I find it totally normal for an e-commerce platform.

Technique #1: Redirect visitors to the home page

This method is simple, fast and effective. To apply it, you just have to go to Online Store > themes > action > edit theme. Then, edit the Assets > theme.js file. Finally, paste the following text at the top of your code:

$(document).ready(function() {

var urlIndex = window.location.host;

if(document.location.href.indexOf(‘collections/all?sort_by=best-selling’) > -1) {

document.location.href = urlIndex;

}

});

Thus, every competitor who tries to access this page will be redirected to the home page. What a shame!

Technique #2: Change the page display with a message

This technique is not much more difficult to apply than the first one. To apply it, go back to the same code page mentioned above. As a reminder: Online store > themes > action > modify theme. Then, edit the Assets > theme.js file.
Once you are there, delete the present content and replace it with this one:
{% comment %}
The contents of the collection.liquid template can be found in /sections/collection-template.liquid

{% endcomment %}

{% if collection.sort_by == ‘best-selling’ %}

Page not found

The page you are trying to access cannot be found.

{% else %}

{% section ‘collection-template’ %}

{% endif %}

Now, when a competitor site tries to view your Shopify best sellers

The following message will be displayed, “The page you are trying to access cannot be found.” If you want to display a different message, you can change this sentence in the code above. I’ll let your imagination run wild! Some will even point to phrases like “You’re probably lacking the inspiration to find your products but I suggest you look for yourself.” Of course, a simple, straightforward message will do the trick. Your competitor will know that they are not welcome on this page.

Technique #3: Redirect the page to all your products

There are the best sellers and there are the other products in your store.
So that your competitors don’t notice the deception, you can redirect them to all your products.
This way, they will not be able to differentiate your best sales from the others.
To set up this method,

you just have to go to theme > action > edit code > theme.liquid.

Once in this section, locate the end of the head tag which looks like this, and paste this text right above it:

Don’t forget to change the name of your site in the URLs or I’ve specified “NAMEOFVOTRESITE” and… you’re done!

Your best Shopify sales will go incognito. You can of course redirect to any other page in your store, but the one listing all the products can mislead them, so it’s interesting.
In this article, you’ve discovered three simple ways to hide your top Shopify sales from your competitors.

To summarize, here are the three ways to hide your best sales on Shopify:

Redirect the competition to your site’s homepage;
Display an error message inviting curious visitors to leave the page;
Redirecting your competitors to all of your products.
These techniques don’t necessarily prevent a determined competitor from finding out what sells well in your store, but they shouldn’t make it any easier for them. As a bonus, you won’t have to do these things over and over again. One time is enough!