如何完全禁用Sitecore Analytics [英] How to disable Sitecore Analytics entirely

查看:22
本文介绍了如何完全禁用Sitecore Analytics的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的生产服务器上遇到CPU问题。在使用JetBrains CPU分析器进行分析之后,我们注意到程序集Sitecore.Analytics中的一些函数已执行。

这有点奇怪,因为我们已经禁用了de config文件中所有与分析相关的配置。

查看/sitecore/admin/showconfig.aspx后,我们注意到此配置中仍有许多与Sitecore.Analytics相关的配置,而这些配置在我们的配置文件中被停用。

例如

在文件/App_Config/Include/EventHandlers.config中,配置如下:

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
 <sitecore>
   <events timingLevel="custom">
   </events>
 </sitecore>
</configuration>

查看showconfig.aspx时如下所示:

<events timingLevel="custom">
<event name="forms:save"/>
<event name="item:saved">
            <handler type="Sitecore.Analytics.Data.Items.ItemEventHandler, Sitecore.Analytics" method="OnItemSaved"/>
            <handler type="Sitecore.Analytics.Automation.Data.Items.ItemEventHandler, Sitecore.Automation.MarketingAutomation" method="OnAutomationStateChanged"/>
        </event>
        <event name="item:deleted">
            <handler type="Sitecore.Analytics.Automation.Data.Items.ItemEventHandler, Sitecore.Automation.MarketingAutomation" method="OnAutomationStateChanged"/>
        </event>
        <event name="media:request">
            <handler type="Sitecore.Analytics.Media.MediaRequestEventHandler, Sitecore.Analytics" method="OnMediaRequest"/>
        </event>
</events>

有人知道为什么在showconfig.aspx中仍然返回这些内容吗? 是否有办法完全删除/禁用Sitecore分析模块?

推荐答案

是。将/App_Config/include目录中Sitecore.Analytics的3个配置文件重命名为*.config以外的名称

这3个文件是:

  • Sitecore.Analytics.config
  • Sitecore.Analytics.ExcludeRobots.config
  • Sitecore.Analytics.RobotDetection.config

(版本可能略有不同,但都以Sitecore.Analytics开头)。

将它们重命名为类似于:

  • Sitecore.Analytics.config.Disabled
  • Sitecore.Analytics.ExcludeRobots.config.disabled
  • Sitecore.Analytics.RobotDetection.config.disabled

这篇关于如何完全禁用Sitecore Analytics的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆