Device detection module cannot be disabled completely when EXM module is installed


Description

Disabling the device detection module (by adding .disabled extension to the /App_Config/Include/CES/Sitecore.CES.DeviceDetection.config file name) causes the following error to be logged every few seconds in each aggregation process in EXM.

ERROR [Experience Analytics]: Device detection is disabled

The issue occurs because once EXM is installed, a new dimension is added for aggregation in the following files:

This dimension executes the Device Detection functionalities regardless of Device Detection being enabled or not. As a result, the exception mentioned previously is thrown.

Solution

To resolve the issue consider one of the following options: