How do you prevent your competitors from seeing your bestsellers on Shopify?


If you have a Shopify store running smoothly, you may have noticed some requests on pages that aren’t supposed to receive traffic.
These are probably competitors who want to know about your best-selling products… Fortunately, there is a method that I will explain to you to prevent this.

Many people know the technique to get the bestsellers or bestsellers from any Shopify store.

Contents [show]

Know the famous products of your competitors
You just need to add the following code in the URL of a store: “/collections/all?sort_by=best-selling”.

You can also use a small free Chrome extension called Commerce Inspector that allows you to see the famous products of a Shopify store directly.

Finally, for those who know Google footprints, a simple query allows you to quickly find the best products of your competitors by typing in the search engine “inurl: collections/all?sort_by=best-selling + niche.”

This can be problematic if you are in a sector, a fairly competitive niche, or if you do dropship or not.

Fortunately, it is just as easy to prevent this!

Prevent your competitors from knowing about your best products
There are mainly two methods to do this.

One is very simple and will work for all stores; the other is a bit more complex, to be adapted according to your Shopify theme.

Simple method: Redirect access
This method is rapid to set up.

It simply consists in redirecting all the requests wishing to access your flagship products directly to the homepage.

Here are the steps to follow:

Go to Online Store > Themes > Action > Edit code
Edit the Assets > theme.js file
Paste the following code at the top:
$(document).ready(function() {
var urlIndex = window.location.host;
if(document.location.href.indexOf(‘collections/all?sort_by=best-selling’) > -1) {
document.location.href = urlIndex;
}
});

As soon as someone accesses this page, he is immediately redirected to the home page!

Complex method: Modify the content
Voici une méthode un peu plus originale qui va te permettre de modifier l’affichage de la page en question.

La stratégie est la même pour toutes les boutiques mais il faudra l’adapter légèrement aux caractéristiques de ton thème.

Voici les quelques étapes à suivre :

Accéder à Boutique en ligne > Thèmes > Action > Modifier le code
Editer le fichier Assets > theme.js
Supprimer le contenu présent et coller le code suivant :
{% comment %}
The contents of the collection.liquid template can be found in /sections/collection-template.liquid
{% endcomment %}

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

Page introuvable

La page que vous essayez d’accéder est introuvable.

{% else %}
{% section ‘collection-template’ %}
{% endif %}
Désormais, dès que quelqu’un essaye d’accéder à cette page, il tombe sur le contenu suivant :

It’s up to you to customize the page’s content, but a simple message like this does the job.

The goal is to prevent competitors from finding your best products!

To summarize

I have presented two methods to prevent your competitors from accessing this page that Shopify leaves available by default.

There are other methods, such as using a plugin, but I think it is useless to use such a solution for something so simple.

Now it’s up to you to find the proper method for you!

Have you ever had unexpected visitors to your store? Tell me about it in the comments!

Leave a Comment

Your email address will not be published. Required fields are marked *