Google Analytics: Universal Analytics enhanced e-commerce that allows operators to easily track user interactions with products during their shopping journey, including product impressions, product clicks, viewing product details, adding products to cart, checkout flow, transactions and refunds.
Currently, Google Analytics: Uniersal Analytics Enhanced Ecommerce supports the following events: Product Display, Product Click/Select, Product Details View, Add Product to Cart, Remove Product from Cart, Promotion Display, Promotion Click/Select , Start Checkout, Additional Checkout Steps, Checkout Options, Purchases, Refunds. Operators and developers can browse the DTM development documentation on the official website of the Huawei Developer Alliance to learn how to use it. (Development document path: Dynamic Tag Management--->Android--->Server Configuration--->Code Management--->Scenario Example--->GA Enhanced E-commerce Operation Example) Link: https: //developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/android-condition-management-example-0000001079066119#section1557062603218?ha_source=hms1
In this issue, we'll use the "Purchase" event as an example to explain how to use Google Analytics: Universal Analytics for Enhanced Ecommerce. Before starting configuration, your app needs to have integrated Huawei Analytics SDK 5.2.0.300 or above and DTM Android SDK.
1. Server configuration
First log in to the AppGallery Connect website, enter the dynamic tag management service page, and configure the server.
Create Google Analytics: Uniersal Analytics code, configure relevant parameters, and pay attention to check "Set up enhanced e-commerce".
Then set "Trigger Condition" and fill in $CompletePurchase in "Value". $CompletePurchase represents the "item click/select" event. (The content of "value" is required to be the actual value of the support event. The actual value of the support event can be obtained by viewing the development documentation. For details, please refer to the link below the video: https://developer.huawei.com/consumer/cn/doc /development/HMSCore-Guides/android-condition-management-example-0000001079066119#section114191328193518?ha_source=hms1
Second, the client configuration
Before writing code, you can learn more about the event parameters corresponding to each "support event" through the development documentation. For details, please refer to the link below the video: https://developer.huawei.com/consumer/cn/doc/development/ HMSCore-Guides/android-condition-management-example-0000001079066119#section1566312157323?ha_source=hms1
Then add the buried code of the "purchase" event at the click event code.
3. Verify and publish
In order to verify whether the configuration is correct, whether the "item selection/click" event can be sent to Google Analytics: Universal Analytics, you need to click the preview button in the workspace to enter the version preview page, scan the QR code with a mobile browser or use the adb command Start preview.
Click the purchase button in the App to trigger the reporting of the tracking event, and check whether the reported event is consistent with the configuration in the DTM on the Google Analytics: Universal Analytics platform. So far, the configuration verification of DTM is completed.
Next, we can release the DTM version to make the configuration take effect for all apps on the live network. Go to the version management page to create and publish a version. ''
For more details of HMS Core dynamic tag management service, please refer to:
https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/introduction-0000001050043907?ha_source=hms1
Huawei Developer Alliance official website
Get the development guidance document
participate in the developer discussion, please go to the Reddit community
Learn more >>
Visit Huawei Developer Alliance official website
Get development guidance document
Huawei Mobile Services open source warehouse address: GitHub , Gitee
us and know the latest technical information of HMS Core for the first time~
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。