How to Hide a Page from Google for Shopify bloggers

How to Hide a Page from Google for Shopify bloggers

This tutorial will show you how to hide specific pages from search engines. It can be a straightforward and easy concept to grasp if you already use Google and understand how their search engine algorithms work. This is also very useful for people who don't have an interest in our business but want to test out how easy it would be for tech-savvy SEOs to manipulate pages in ways that would lead ordinary searchers through rogue. 

You may think that hiding or removing a page from Google's index seems like a drastic measure and is unlikely to have any effect. After all, it is possible to hide a page from Google using different methods and even remove the entire page from the index using a script. However, there are other ways of getting around Google's ranking factors. For instance, if you use a third-party service, you can (and most probably will) be able to hide pages from the indexing. 

Many people have trouble ranking their sites in organic search results. The two most significant issues we see are: (1) using duplicate content and (2) using links that aren't optimized for search engines. Google understands that it takes time to get the right pages in front of users, and unless you consistently create these pages, your rankings could suffer. This article will tell you how to hide and remove pages from the search engines that might otherwise sabotage your SEO efforts.

If you're like many blog writers, you often use different variations of the same [title] tag. This is an easy technique to get around, but usually, you may not know why it works. You could be putting up extra work for Google by hiding pages from their index (which you can do by simply using an array instead of a title).

So, a question, a blog post, or even a page on your website might get indexed by Google. BUT, and just so we're crystal clear: we want you to be able to access the content on that page regardless of whether or not Google has indexing authority over that page. Indexing authority is a ranking factor that evaluates how often content from that location and served up on SERP pages. So, minor tweak, but you better believe it improves visibility. Done right, it will increase SERP rankings for both the localized versions.

Why would you want to hide a Google page? 

There are several reasons you would want to hide a page from Google's indexing. There could be something on the page that could damage your search engine ranking, or it could be something that you wouldn't want users to see if they were looking for something from the page. You might want to hide a page if you own the website and would rather not have visitors see it from search engines like Google because it might hurt sales of your products or services. There could be other reasons, but this post is more about the reasons that point to the need to hide a page from Google search engine. Pages Can Be Hidescreens (Hidden Pages) On Website. A hidden page is a page that users cannot see when searching the web. A hidden page is usually a page that contains valuable information. Still, when a user types in a query such as 'how to find a side hustle' or 'how to create a business email account,' the first thing that comes up in the SERP is the question of how to find a side hustle. As you can imagine, this means that there are probably hundreds or even thousands of visitors that land on this page and will probably waste their time looking at useless or irrelevant information.

By default, Google indexes all pages on your site when they are not internally targeting any particular page on your site. Indexing can quickly bring your site rankings into single and triple digits while putting traffic to others.

Hiding a page from search Google

The first thing you have to do to make sure you stay on top of your competitors is to ensure that you tell the search engine bots that you don't want them to include your website in their index. This may sound like a scary task, but trust us, it isn't. Once you've got the sequence set up correctly, you should start seeing a drop-off in rankings as soon as you publish a new piece of content.

If you've recently made changes or added a page to your website, and you want Google to re-crawl your URLs, then you have two options. First, you can add a simple.txt file to your site, telling Google not to crawl it. This might significantly degrade your rankings, and rankings will likely not come back. It's most likely you would lose traffic in this situation, and your orders would take that hit as well.

Google crawlers use Robots.txt files to redirect website pages. The changes made in your robots.txt file don't automatically turn every page on your site. Redirecting a webpage means that each 'on page' SEO action, such as schema.org vocabulary and modifying links, meta descriptions, referring pages, and hyperlinks, all use a separate URL from the original page. Because you can have your robots.txt file updated to block searches for your URL. If you do this, your users will not be able to access the page or store, and pages that are searched Google for your store will not be found. Second, you can have Google manually update (and perhaps optimize) after manually crawling the web. This method requires paying for something and creating a small batch of reputable URLs. 

The robots.txt file is located at the root directory of your Shopify store's primary domain name. For example, side-hustle.ca/robots.txt.

Although you can't edit the content of the robots.txt file, you should be aware of what it blocks from search engines. You can block certain content from search engines for various reasons. 

You're not able to hide pages that aren't included in your robots.txt file by customizing the <head> section of your store's theme.liquid layout file. You need to have some code for particular index pages.

Steps:

Desktop

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find the theme you want to edit, and then click Actions > Edit code.
  3. Click the theme.liquid layout file.
  4. To exclude the search template, paste the following code in the <head> section:
  5. {% if template contains 'search' %}
  6. <meta name="robots" content="noindex">
  7. {% endif %}
  8. To exclude a specific page, paste the following code in the <head> section:
  9. {% if handle contains 'page-handle-you-want-to-exclude' %}
  10. <meta name="robots" content="noindex">
  11. {% endif %}
  12. Make sure that you replace the page-handle-you-want-to-exclude with the correct page handle.
  13. Click Save.

iPhone

  1. From the Shopify app, tap Store.
  2. In the Sales channels section, tap Online Store.
  3. Tap Manage themes.
  4. Find the theme you want to edit, and then click Actions > Edit code.
  5. Tap the theme.liquid layout file.
  6. To exclude the search template, paste the following code in the <head> section:
  7. {% if template contains 'search' %}
  8. <meta name="robots" content="noindex">
  9. {% endif %}
  10. To exclude a specific page, paste the following code in the <head> section:
  11. {% if handle contains 'page-handle-you-want-to-exclude' %}
  12. <meta name="robots" content="noindex">
  13. {% endif %}
  14. Make sure that you replace the page-handle-you-want-to-exclude with the correct page handle.
  15. Tap Save.

Android

  1. From the Shopify app, tap Store.
  2. In the Sales channels section, tap Online Store.
  3. Tap Manage themes.
  4. Find the theme you want to edit, and then click Actions > Edit code.
  5. Tap the theme.liquid layout file.
  6. To exclude the search template, paste the following code in the <head> section:
  7. {% if template contains 'search' %}
  8. <meta name="robots" content="noindex">
  9. {% endif %}
  10. To exclude a specific page, paste the following code in the <head> section:
  11. {% if handle contains 'page-handle-you-want-to-exclude' %}
  12. <meta name="robots" content="noindex">
  13. {% endif %}
  14. Make sure that you replace the page-handle-you-want-to-exclude with the correct page handle.
  15. Tap Save.

Conclusion

The goal of this article was to teach you how to remove a page safely without it affecting your website. We want to leave you with one final thought, by doing this, you are protecting your privacy and putting the ball in Google's court. If something goes wrong (which is highly unlikely), and the page comes back penalized, then Google could index your site and penalize it twice!

LET'S GET SH*T DONE, TOGETHER!

If you are an entrepreneur, we're here to help you launch your ideas to the world. Get the advice you need to start, learn, build, and grow your business today. Subscribe here for free access to our library of resources.