Avoid tracking "Add to cart" in WooCommerce

Have you ever considered avoiding search engine robots crawling your links " Add to cart "? Well there are good and powerful reasons.

Why avoid tracking the links of "Add to cart" in WooCommerce

Although here I am referring mainly to WooCommerce this problem also affects others CMS of e-commerce, keep this in mind.

The problem is not WooCommerce, nor the format of the links " add-to-cart " but ] URLs of " add-to-cart " can not be cached .

 add to cart woocommerce

And this is due to its nature of being requests that can not be managed from the cache either from a server or through a WordPress plugin.

Therefore, l the search engine robots will always be querying these requests , in real time and without cache with which will increase the consumption of CPU, memory, and even width of band sobremanera.

If we add that are links that should not be indexed by themselves because they do not add semantics to your products, we have a lot of links in your online store that consume a lot of resources and make your SEO and WPO .

How to prevent robots from tracking your "Add to cart" links in WooCommerce

, We must also be clear and point out that themes for WooCommerce have two ways of executing this function of " add-to-cart " .

  • Some do it via Javascript, and robots do not usually get along well with this type of links.
  • And there are other themes for WooCommerce that add the links " add-to-cart " directly in HTML.

You just have to check the source code of your online store to know how your theme does it. [19659016] Through JavaScript

Through HTML

In any case, it does not matter if your subject does it for JavaScript or HTML it is always advisable not to index this type of links / requests .

For this the most effective is add a few lines to your file robots.txt located in the root folder of your WordPress installation:

And, already , you can also not index other pages that do not provide anything to the SEO of your online store, how are you:

What do I earn doing this?

Well it brings several substantial improvements:

  • You considerably reduce the number of requests that can not be cachear
  • Reduces your server's CPU consumption considerably
  • Reduces your server's memory consumption
  • Reduces your server's bandwidth
  • Reduces your store's load times Online
  • Improve the performance of your online store.
  • Improve the SEO of your online store.

I think there is no doubt about the convenience of avoiding the tracking of links " Add to cart "no?

Loading …

You may also find it helpful:

Masks external links

If on your blog there are many bots or spammers that filter external links in the comments, for example, there is a way to convert all those external links into internal ones and thus not attract spam comments to increase the Pagerank or even lose part of yours.

Also the system is very simple, you just have to install the plugin WP No External Links . Once activated, it will convert the links of type http://www.google.com to http://tuweb.com?goto.php=http://google.com or , if you use ' mod rewrite ' something like http://tuweb.com/goto/http://google.com .

Avoid Duplicate Content in Page of Comments • WordPress Help

One of the novelties of WordPress 2.7 is the pagination of comments, in addition to others, and this new functionality, interesting when downloading the debate in your posts, nevertheless causes Google to consider the content of the various comment pages such as duplicate content which negatively affects SEO of your blog.

With the aim of avoiding this penalty when using this new feature Willian Henestroza has created the plugin SEO Comment Paging which adds the meta tags noindex and nofollow in the pagination of comments, solving the problem.

You just have to install the plugin and activate it, just like that.

WordPress SEO Master – WordPress Help

There is nothing the title, what would you like to have that phrase hanging on the door ?. Well something like this is what you can get with the minimum effort, just keep reading.

And it's so easy because that name so bombastic is nothing more and nothing less than the name of a WordPress plugin that joins a multitude of utilities that will allow you to make your blog a SEO pump .

Here you can define the keywords for titles, descriptions and meta keywords across the blog .

With this module, configuring properly your configurations you can choose where to show the tag "rel = nowollow" for avoid the double-indexing of search engines and make your blog be pure SEO

Here you will be able to add a tag in all categories, file and feeds to prevent the bots of search engines from considering content as a duplicate .

This module is like a link machine is. You choose the keywords and the plugin will automatically add relevant links to your blog to get internal traffic and position other articles of your creation.

In short, a really complete plugin , which covers a large part of the WordPress SEO techniques so that, as easily as possible, you have a completely optimized blog .