Huawei (Dynamic Tag Manager, hereinafter referred to as "DTM"), is a dynamic tag code management system (Tag Manager System), we can dynamically update the tracking code through the Web page, easily complete specific event tracking, it also has It helps to send data to third-party analysis platforms and advertising attribution platforms, such as HUAWEI Analytics, Google Analytics, Facebook Analytics, AppsFlyer, etc.
DTM drive application business growth?
With the advent of digital transformation of enterprises, data analysis and data-driven business growth have become an important part of the work of enterprises, but the basis of all data analysis comes from data acquisition.
The usual method of traditional data acquisition is to collect data on different pages in a web site or app, and according to different products and needs, corresponding codes embedded in different locations, commonly known as buried points. This way of writing code often needs to face the same The problem: high communication cost, long cycle and low work efficiency.
DTM allows you to quickly configure and update the measurement code and related code fragments. You can easily analyze and configure the measurement code based on the web interface to realize on-demand monitoring of marketing activity data.
Therefore, if we want to track various events such as user clicking, browsing or navigating to other pages on the application, we can dynamically configure it through DTM.
For example, a pharmacy application integrates DTM, and the user clicks the "collect drugs" button. By configuring the DTM, when the user clicks the "collect drugs" button, the page will automatically report the drug name, quantity, price and other corresponding information to the selected drug Analysis platform, if we set relevant conditions on the web page (for example: price> 10 yuan), we can obtain the analysis data of drugs within the conditions (the price exceeds 10 yuan), so as to better grasp the application data and improve the business. After integrating DTM, we can more easily complete specific event tracking and transfer the data to a third-party analysis platform to drive business growth.
How to integrate and configure DTM?
Step 1: Log in to the Huawei Developer Alliance website, click "Management Center", enter the AppGallery Connect page, configuration related information
Step 2: Integrate HMS Core SDK into your Android Studio project
Step 3: obfuscate the script to avoid confusion between Analytics Kit and DTM and cause malfunctions
Step 4: Log in to the AppGallery Connect website, select "My Projects> Growth> Dynamic Tag Management", and enable it.
To activate the service, you need to first click the "Open Analysis Service" button. After you activate the analysis service, click the "Open Service" button to activate the DTM service.
Step 5: Enter the details and click "OK" to create the DTM configuration.
Step 6: After the configuration is successful, the configuration code will be created
Step 7: Click on the "Version" tab and create a "Create Version".
Step 8: On the "Variables" page, click the "Configuration"/"New" button on the right. Set preset/custom variables for events and tags.
a) Preset variables: These are predefined variables that can be used to configure most tags and conditions. Currently, DTM provides 18 preset variables.
b) Custom variables: You can also create custom variables for tags and conditions according to your project. There are currently 6 types of custom variables.
Step 9: Click on the Conditions tab and create conditions. On the "Conditions" page, click the "New" button.
Step 10: On the "Code" page, click the "New" button to create a code
Step 11: Select "Project Settings>Huawei Analysis>Application Debugging", turn on "Application Debugging" to obtain real-time analysis data.
Step 12: To check real-time events, use the following command to enable debug mode.
HUAWEI Analytics template
Start debugging command: adb shell setprop debug.huawei.hms.analytics.app<package_name>
Disable the debugging command: adb shell setprop debug.huawei.hms.analytics.app .none.
After the data is successfully reported, the real-time data will be displayed on the application debugging of the analysis service platform, as shown in the following figure:
Click "View" after "Event ID" to display specific information
Tips and Tricks
Please use the command "app shell setprop debug.huawei.hms.analytics.app <package_name>" to enable the application debugging mode. After the debug mode is turned on, it will remain enabled, and all events will be reported in real time.
Conclusion
In this article, we learned how to efficiently collect application data through Huawei's dynamic tag management to drive business growth. We can also optimize advertising effects and conduct anti-fraud analysis through DTM to maximize the efficiency of marketers.
Learn more >>
Visit Huawei Developer Alliance official website
Obtain the development guide document
Huawei mobile service open source warehouse address: GitHub , Gitee
and learn about the latest technical information of HMS Core for the first time~
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。