禁用Kentico Web分析可以提高性能吗?
由于我们使用其他工具来收集分析数据,因此我认为禁用Web分析的好主意以获得增加的网页负载性能,例如快速负载或减少请求等。这会有所作为吗?
提前致谢。
Since we use other tools to collect analytics data I think disabling the web analytics good idea to gain increased webpage load performance such as fast load or reducing requests etc. Would that make a difference?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用网络请求阻止程序,在DevTools中阻止了Kentico。重新加载页面,测量您当地的灯塔或性能分析器的速度。
解开肯蒂科,然后重复该过程。
比较结果。
重复直到满足。
Block kentico in your devtools, using the network request blocker. Reload the page, measure it's speed with your local lighthouse or performance profiler.
Unblock kentico, and repeat the procedure.
Compare the results.
Repeat until satisfied.
无论如何,如果您不使用该功能,我建议将其禁用。但是,如果要清理这些数据,则需要确保首先发生在禁用之前,否则您将无法清理该分析数据。
有一个计划的任务,称为“删除分析数据”。您将需要编辑该任务并将“任务数据”值更改为540天,然后手动运行它。然后返回,编辑该任务,将值更改为360,然后手动运行它。然后返回,编辑任务,将值更改为180天,然后手动运行它。最后,返回,将值更改为0,然后手动运行任务。
在使用0天运行任务后,不应存储分析数据。然后,您可以安全地禁用分析。
现在,如果您发现自己确实需要该数据,那么也许您想对数据库进行备份,或者只是将其放在数据库中,这取决于您。
最后,当Devnet拾起时,无需在So和Devnet上进行跨职位,因此帖子标记为“ Kentico”。
添加 devnet 的答案。
By all means, if you're not using the functionality, I'd recommend disabling it. However, if you want to clean up that data, you need to make sure that happens first before disabling otherwise you won't be able to clean up that analytics data.
There is a scheduled task called "Remove analytics data". You'll want to edit that task and change the "Task data" value to 540 days, then manually run it. Then go back in, edit that task, change the value to 360, then manually run it. Then go back in, edit the task, change the value to 180 days and manually run it. Finally, go back in, change the value to 0 and manually run the task.
After you've run the task with 0 days, there should be no analytics data stored. You are then safe to disable analytics.
Now if you find you really need that data then maybe you want to take a backup of the database OR just leave it in your database, it's up to you.
Lastly, no need to cross post on SO and DevNet as DevNet picks up SO posts tagged with "kentico".
Adding accepted answer from DevNet.