【DTM】Verifying a New Configuration Version, with the Version Preview Function in DTM

Search This thread

ritesh_chanchal

Senior Member
Jul 19, 2011
87
9
In the last article, we discussed how the ever-changing needs of event tracking have created challenges for operations personnel, and how HUAWEI Dynamic Tag Manager (DTM) can help you report events to analytics platforms. During this process, you can finish all relevant configurations without having to pester your developer about modifying code – instead, you can just modify events to track, and create a configuration version in DTM. But one question remains: How can I verify a configuration version?

This can be done with one of the functions in DTM: previewing a version. It allows you to preview any configuration version you've created and check the reported data, which paves the way forward for releasing a configuration version.

Now let's move on to how to use this function to verify a configuration version. There are three parts involved: starting preview, verifying data, and stopping preview.

Ø Starting preview

Step 1. On the Version tab page, click the name of the version to be previewed to go to the Version details page.

2640852000006560358.20210430092925.76973479139257353305491734526830:50520503112104:2800:E6774AA2EA49EFB218E73D81516BBF81B2FFBA4D669326661969EED8F46FF6C8.png
2640852000006560358.20210430092925.62440763677994014384170988014063:50520503112104:2800:1A3790D19629EC104E1F4E9B1DD3463FB5EC91107BDC571EA8EB7719D426D154.png


Step 2. Click Preview. On the page displayed, there are three methods for starting preview:

a. Mobile browser preview

b. Scan QR code using mobile browser

c. Preview with ADB commands

2640852000006560358.20210430092938.27945497340358908633023019189987:50520503112104:2800:536E2423AAA9B952AA921B24D2863EC81BDB0270525124627A0EACB0F6E4111B.png


Step 3. Start preview with method b, which is most convenient in most cases. Open the mobile browser to scan the QR code. The browser will then display a preview page.

2640852000006560358.20210430092946.19990231093596935927232098608965:50520503112104:2800:055BF1FBD7D660EE2492AC58443ECC3620FECFEDA09348183BB221F7813066F5.png


Step 4. Tap Start. The browser then prompts you to open a specified app. Next, tap OPEN to open the app and start preview. A blue button will appear in the app, indicating that the preview mode has been enabled.

2640852000006560358.20210430093000.90904131611264048860583496720432:50520503112104:2800:53EEF58EB09AC15181E8A4D00B678A4365A1460A8DB8472F4359CAA11E36F3F9.png


Blue button

2640852000006560358.20210430093008.85943105805253887381735968859555:50520503112104:2800:4BC4E5B3432B5793F151D038EC7D98977BCBA9F12E3481F0B9B494ECA0FDFBB5.png


Ø Verifying data

After the preview mode has been enabled, the configuration version is loaded on the mobile phone. Perform relevant operations in the app to report corresponding events, and then verify the event data reported to the specified analytics platform.

n Reporting data in real time

To report tracked events to an analytics platform in real time, you'll first need to enable the debug mode for this platform.

To report data to HUAWEI Analytics in real time, run the following command to enable the debug mode:

adb shell setprop debug.huawei.hms.analytics.app <package_name>



To report data to Firebase in real time, run the following command to enable the debug mode:

adb shell setprop debug.firebase.analytics.app <package_name>



To report data to other platforms in real time, run the following command to enable the debug mode:

adb shell setprop debug.huawei.hms.dtm.app <package_name>



n Checking data

Let's take the event of adding a product to the shopping cart as an example. After triggering this event, you'll be able to find its data in Google Analytics. This page presents an event whose Event Category is Click and Event Action is Add2Cart.

2640852000006560358.20210430093015.06014931843659872742899376543359:50520503112104:2800:B12FC27AEEAE6FE9070C398D52CEA89D1E8407AF17FD63F2D978E1052EB83C09.png


Click this event to check its details. On the page displayed, Huawei P40 Pro appears under Event Label, which indicates that the version in preview has been correctly configured.

2640852000006560358.20210430093022.95896501771723168512476512308251:50520503112104:2800:6F2F2B26E8FC389C3FEFCBCCAB9392109E83D5F2F1FFCD6CB0CCAC4D807D1404.png


Ø Stopping preview

Under End preview on the Preview page, three methods are provided to stop previewing a configuration version: Stop mobile browser preview, Scan QR code using mobile browser, and Stop preview with ADB commands. The blue button mentioned earlier can be used as well. Tap this button to have a popup display, which asks whether to stop preview. Tap EXIT to end the preview.

2640852000006560358.20210430093030.74531313570666255808069843971264:50520503112104:2800:6297C68623E6B898A97AB6DE9EEB88F480288C2D318578CAA7AF98D5A7D442DA.png




For more details, you can go to>>

For more details, you can go to:

l Our official website

l Our Development Documentation page, to find the documents you need

l Reddit to join our developer discussion

l GitHub to download demos and sample codes

l Stack Overflow to solve any integration problems

Original Source
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone