Magento has the feature of logging every request to its database, giving you insight into your visitors behaviour. But this is also including search-engines and if you are using a tool like Google Analytics, this logging is pointless. Learn how to disable it.

Disable Mage_Log?

Within the Magento System Configuration under the Advanced tab, you have the option to disable the output of various Magento modules. Many Magento users think this actually disables the module. It does not. It only disables the output of that module. Logging is not considered output.

The proper way to disable the Mage_Log module would be to locate its XML-definition in the folder app/etc/modules and set the flag active to false. If you do that, your Magento site will crash. So don't do that. It doesn't work.

Disable logging in the Developer section?

Within the Magento System Configuration under the Developer tab, there is also an option to disable logging. While it is a bit confusing, this is an entirely different type of logging: This logging is ment for developers, so debugging usage, while the logging we refer to in this blog is the logging of visitor-data for statistical usage. The two are not related.

The solution: Our DisableLog extension

The only real solution is to modify the Magento core. But instead of you hacking into the core, you can simply use our extension to do all the hard work for you: Our DisableLog extension allows you to quickly disable logging. And you have the choice. You can disable logging for all your visitors (if you are using Google Analytics or Piwik or something alike) or for just search-engines (if you don't want search-engines to flood your statistics).

Hope you find this useful.

Posted on June 9, 2013

About the author

Author Jisse Reitsma

Jisse Reitsma is the founder of Yireo, extension developer, developer trainer and 3x Magento Master. His passion is for technology and open source. And he loves talking as well.

Sponsor Yireo

Upcoming events

Oct
28
Oct
31
LIEF Amsterdam
Nov
08

Looking for a training in-house?

Let's get to it!

We schrijven niet te commerciële dingen, we richten ons op de technologie (waar we dol op zijn) en we komen regelmatig met innovatieve oplossingen. Via onze nieuwsbrief kun je op de hoogte blijven van al deze coolness. Inschrijven kost maar een paar seconden.

Do not miss out on what we say

This will be the most interesting spam you have ever read

We schrijven niet te commerciële dingen, we richten ons op de technologie (waar we dol op zijn) en we komen regelmatig met innovatieve oplossingen. Via onze nieuwsbrief kun je op de hoogte blijven van al deze coolness. Inschrijven kost maar een paar seconden.