How to disable Sitecore Analytics entirely

穿精又带淫゛_ 提交于 2019-12-03 15:04:41

Yes. Rename the 3 configuration files for Sitecore.Analytics in your /App_Config/Include directory to something other than *.config

The 3 files are:

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

(could vary a little bit by version, but they all start with Sitecore.Analytics).

Rename them to something like:

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

(could vary a little bit by version, but they all start with Sitecore.Analytics).

Until sitecore version 72, there are only 3 files with Sitecore.Analytics prefix. In version 75, there are 17 and in version 8 there are 20 config files with Sitecore.Analytics prefix.

I used to confirm with sitecore support that you can change the setting of Analytics.Enabled in Sitecore.Analytics.config will disable Analytics

<setting name="Analytics.Enabled" value="false" />

Or only rename one file Sitecore.Analytics.config which contain this setting.

Eugene

Did you try to User WFFM ? There also analytics part: Sitecore.WFFM.Analytics.config

and disabling it causes this fault:

22992 14:49:10 WARN Value cannot be null. Parameter name: owner Exception: System.ArgumentNullException Message: Value cannot be null. Parameter name: owner Source: Sitecore.Kernel at Sitecore.Diagnostics.Assert.ArgumentNotNull(Object argument, String argumentName) at Sitecore.Diagnostics.Log.Warn(String message, Object owner) at Sitecore.WFFM.Core.Extensions.Warn.IsNull(Object obj, String name) at Sitecore.WFFM.Analytics.AnalyticsTracker.get_SessionId() at Sitecore.Form.Core.FormDataHandler.ExecuteSaveActions(ID formId, ControlResult[] fields, ActionDefinition[] actions) at Sitecore.Form.Core.FormDataHandler.ProcessData(SimpleForm form, ControlResult[] fields, ActionDefinition[] actions)

So it cannot be disabled.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!