目录

[Q1] When should I initialize the SDK?

Initialize the SDK in the onCreate method in the first activity of the app. Otherwise, the processing of automatic collection of periodic page events may be affected. For details about how to view reported data, please refer to the Integrating HUAWEI Analytics in the Development Guide.


[Q2] DTM supports AppsFlyer tags. If I need to report data to AppsFlyer while using DTM, do I need to integrate the AppsFlyer SDK locally?

You do not need to integrate the AppsFlyer SDK. However, you need to set the following parameters:

  1. App ID (app package name).

  2. Developer key (obtained from the app configuration of AppsFlyer).

  3. AppsFlyer device (preset variables Device ID and Device Name).

  4. Event name.


[Q3] What are the application scenarios and functions of ICustomVariable and ICustomTag?

ICustomVariable and ICustomTag contain custom extensible variables and templates. You can also customize variables and templates in DTM to meet specific requirements.


[Q4] What's the JSON file update policy?

DTM automatically downloads the latest JSON file from the server and updates the JSON file in the cache every six hours.


[Q5] Where is events reported?
  1. Events are sent to HUAWEI Analytics. 

  2. If a third-party platform is configured, events are also sent to the third-party platform.


[Q6] What is the policy for reporting events?

Events are reported to a third-party analytics platform (for example, AppsFlyer).


[Q7] What is the integration relationship between HUAWEI Analytics and DTM?

An app needs to integrate both the HUAWEI Analytics and DTM SDKs. The app can use the HUAWEI Analytics SDK to report events, and HUAWEI Analytics calls the DTM to process events. If events need to be sent to a third-party platform, DTM directly reports them to the third-party platform. If events need to be sent to HUAWEI Analytics, the HUAWEI Analytics SDK reports the events.


[Q8] What is the event storage policy when phones are not connected to the Internet or events fail to be reported?

In this case, the database can store a maximum of 3000 events for up to 30 days.


[Q9] Which events are sent to HUAWEI Analytics?

Automatically reported events and specified in-app events. You can configure a template to prevent some events from being reported to HUAWEI Analytics.


[Q10] What should I do if "AAPT: error: not well-formed (invalid token)." is displayed during project running after integrated compilation?

You need to change the encoding format to UTF-8 by adding-Dfile.encoding=UTF-8to thegradle.propertiesfile of the project.



[Q11] What should I do if the application for integrating DTM SDK 4.0.0.300 is rejected?

Integrate DTM SDK 4.0.1.300 or later.