Question: We have made a installation of Sitecore Experience Platform v9.3.0 (rev. 003498) (details below):

* 2 servers as Content Management role
* 2 servers as Content Delivery role
* 2 servers as others roles (Processing, Reporting, Identity Server, XConnect, Identity Server, Marketing, Reference Data, Cortex)
* 3 servers as Solr

The application has been running for approximately 45 days, however, Experience Analytics and Experience Profile are not recording data (no data is displayed). we have checked the logs of all roles and found no errors that could help us fix the issue.

After some research we have changed the **"IndexAnonymousContactData"** tag to **true** in the **"{XCONNECT\_PATH}\App\_Data\jobs\continuous\IndexWorker\App\_Data\config\sitecore\SearchIndexer\sc.Xdb.Collection.IndexerSettings"** configuration file and rebuilt the indexes. However, it did not work.

Would anyone have any suggestions on what we could do to fix this issue?

Thank you in advance for your help

Answer: 
It turns out to be that the device detection rule config in sitecore 9.3 doesn't include Content Management Role by default so by patching this role solves the problem. 

```
<?xml version="1.0" encoding="utf-8" ?>
<!--

Purpose: This include file configures the device detection rules component.

-->
<configuration xmlns:x="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/">
  **<sitecore role:require="Standalone or ContentDelivery or Processing">**
    <services>
      <register
        serviceType="Sitecore.CES.DeviceDetection.Rules.IRuleDeviceInformationManager, Sitecore.CES.DeviceDetection.Rules"
        implementationType="Sitecore.CES.DeviceDetection.Rules.RuleDeviceInformationManager, Sitecore.CES.DeviceDetection.Rules"
        lifetime="Singleton" />
    </services>
  </sitecore>
</configuration>

```
It looks like you have a Sitecore rule for detecting device, some thing similar to what you can see in the following screenshot:

[![enter image description here](https://i.stack.imgur.com/50PtT.png)](https://i.stack.imgur.com/50PtT.png)

Following what you can find when checking Sitecore documentation for device detection:

> 
> From Sitecore 9.0 and later, Sitecore Device Detection is enabled to
>  use Sitecore services and the database provided by 51Degrees by
>  default
> 
> 
> 

There are some configuration you can double check that you have them right in addition to verify that you server can access and download the database, following where you can find the details information:

1. <https://doc.sitecore.com/developers/93/sitecore-experience-manager/en/configure-sitecore-device-detection.html>
2. <https://labs.tadigital.com/index.php/2018/11/05/device-detection-in-sitecore/>