Effortless integration of Analytics Kit in Unity - Huawei Developers

Overview
In this article, I will create a demo game and integrate Huawei Analytics Kit. A developer can keep keen eyes on application usages and easily track the events such as installation and other custom events.
Service Introduction
Analytics Kit collects a user’s activity and usage of an application so that developer can analyze the user’s behaviour based on the app event.
Analytics Kit offers a rich array of preset analytics models (Event, Behaviour, Audience, Funnel, Retention, Real-Time) that help you to gain an in-depth insight into your users, products, and content. With this insight, you can then take a data-driven approach to make informed decisions for product and marketing optimizations.
HUAWEI Analytics Kit identifies users and collects statistics on users by an anonymous application identifier (AAID). The AAID is reset in the following scenarios:
1) Uninstall or reinstall the app.
2) The user clears the app data.
After the AAID is reset, the user will be counted as a new user.
There are 3 types of events: Automatically collected, predefined, and custom.
Automatically collected events are collected from the moment you enable the kit in your code. Event IDs are already reserved by HUAWEI Analytics Kit and cannot be reused.
Predefined events include their own Event IDs which are predefined by the HMS Core Analytics SDK based on common application scenarios. The ID of a custom event cannot be the same as a predefined event’s ID. If so, you will create a predefined event instead of a custom event.
Custom events are the events that you can create for your own requirements.
Prerequisite
1. Unity Engine (Installed in the system)
2. Huawei phone
3. Visual Studio 2019
4. Android SDK & NDK (Build and Run)
Integration process
1. Sign In and Create or Choose a project on AppGallery Connect portal.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Navigate to Project settings and download the configuration file.
3. Enable Analytics Kit from Manage APIs section.
Game Development
1. Create a new game in Unity.
2. Now add game components and let us start game development.
3. Download HMS Unity Plugin from below site.
https://github.com/EvilMindDevs/hms-unity-plugin/releases
4. Open Unity Engine and import the downloaded HMS Plugin.
Choose Assets > Import Package> Custom Package
5. Choose Huawei > App Gallery.
6. Provide the AppId and other details from agconnect-service.json file and click configure Manifest.
For more, you can check https://forums.developer.huawei.com/forumPortal/en/topic/0204447943331070086

Related

HMS Core 5.0.2 Launch Announcement

More information like this, you can visit HUAWEI Developer Forum
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ML Kit
Features:
Added the liveness detection service, which supports silent liveness detection and captures faces in real time. It can determine whether a face is of a real user without requiring the user to follow specific instructions.
Added the image super-resolution service, which removes the compression noise of images to obtain clearer images, with the resolution unchanged.
Added the document skew correction service, which automatically identifies the location of a document in an image and adjusts the shooting angle to the angle facing the document, even if the document is tilted.
Added the hand keypoint setection service, improved the speed and accuracy of bank card recognition, enhanced the translation service, optimized the text to speech service, and other features.
Link: https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/version-changehistory-0000001050040023
Scene Kit
Features:
Added APIs for you to create apps which blend the virtual and the real, with features such as dynamic face stickers, 3D Qmojis, and virtual object placement.
Link: https://developer.huawei.com/consumer/en/hms/huawei-scenekit/
Push Kit
Features:
Added the messaging by user time zone, scenario, and geofence, improving user experience.*
*The functions involving user data must be implemented with users' authorization.
Link: https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/automated-notifications-0000001051072150#EN-US_TOPIC_0000001051072150__section17240145319447
Analytics Kit
Features:
Supported integration of web apps with Analytics Kit to implement data collection and unified analysis.
Supported automatic collection from mobile phones and tablets as well as configuration of the app installation source.
Link: https://developer.huawei.com/consumer/en/hms/huawei-analyticskit
Updates of all HMS Core versions
Learn more: https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides-V5/hmssdk-kit-0000001050042513-V5
Scene Kit
Sample Code:
Added the ARView and FaceView development procedures.
Github: https://github.com/HMS-Core/hms-scene-demo
ML Kit
Sample Code:
Added a demo for the messaging by scenario.
Github: https://github.com/HMS-Core/hms-ml-demo
Push Kit
Sample Code:
Added a demo to illustrate how to integrate web apps with Analytics Kit.
Github: https://github.com/HMS-Core/hms-push-clientdemo-android
Analytics Kit
Sample Code:
Added a demo to illustrate how to integrate web apps with Analytics Kit.
Github: https://github.com/HMS-Core/hms-analytics-demo-javascript

Deliver Personalized Content to Your Users

As a developer, you’ll know that mobile data is more expensive than ever, and this makes it increasingly difficult to attract new users. Optimizing your apps’ user experience and improving user loyalty are crucial to retaining users, and to do this, you need to personalize your app’s content, appearance, and style for different users.
Fortunately, HUAWEI Analytics Kit and Remote Configuration make this easier than ever.
What Is HUAWEI Analytics Kit
HUAWEI Analytics Kit is a free data analysis tool that you can use across a range of platforms (Android/iOS/Web) and on different devices (such as mobile phones/tablets). It automatically generates more than 10 kinds of analysis reports based on your users’ behavior and event data, so you can get a better understanding of your users and take a data-driven approach to marketing.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What Is Remote Configuration
Remote Configuration enables you to personalize your app’s content and appearance for different users based on the user attributes and audience groups you create in HUAWEI Analytics Kit. This can be done without even requiring users to update the app.
Application Scenarios of HUAWEI Analytics Kit and Remote Configuration
Ø With HUAWEI Analytics Kit's retention analysis function, you can monitor the retention rate of your app version. If you find that the latest version is more effective at retaining users, you can target those who are still using older versions and prompt them to upgrade.
Ø If you find that users who love animations, historical dramas, and suspense dramas are the most active of your video app, you can customize the app style to cater to these users.
Ø You can customize the appearance and content of e-commerce apps based on the characteristics of individual users. For example, you could show a different version of your app to young people and middle-aged people.
Streamlined Integration Process
Once you’ve integrated Remote Configuration, it only takes 5 minutes to integrate HUAWEI Analytics Kit. You can then customize your app’s appearance, content, and style for different users.
For more details, you can visit:
Our official website
Our Development Documentation page, to find the documents you need:
Android SDK
iOS SDK
Web SDK
Quick APP SDK
We’re looking forward to seeing what you can achieve with HUAWEI Analytics!

How to Tailor Mobile App Content and Styles Through User Segmentation

To improve user retention in your app, it is crucial to optimize user experience and improve user loyalty since it is becoming more and more difficult and expensive to increase traffic and acquire new users. One solution is to customize the content, appearance, and style of your mobile app for different users.
HUAWEI Analytics Kit, together with Remote Configuration, can provide such functions in a convenient and efficient way.
What are HUAWEI Analytics Kit and Remote Configuration?
HUAWEI Analytics Kit is a free-to-use data analysis service for app operations personnel to track how users behave in apps and facilitate precise data-driven operations. Applicable to multiple platforms such as Android, iOS, and web, and various types of devices such as mobile phones and tablets, it can automatically generate more than 10 types of analysis reports based on users' behavior events.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Remote Configuration provides a console and a client SDK, and periodically obtains configuration items from the cloud. You can then use the user attribute and audience information provided by Analytics Kit to easily tailor app content and appearances for different audiences, without the hassle of releasing a new app version. Remote Configuration allows you to perform the following:
Flexibly control the target user groups to which configuration items take effect, in dimensions such as app version, operating system, country or region, language, time, audience, and user attribute.
Manage up to 300 configuration versions from the last 90 days, and perform one-click rollback to a specified version.
Push configuration changes in real time to speed up app updates on devices.
Examples of scenarios where HUAWEI Analytics Kit and Remote Configuration are applicable
Example 1: HUAWEI Analytics Kit found that the top 3 types of active users in a video app were animation, costume drama, and suspense drama fans, respectively. Therefore, different app styles were used depending on the user type, helping improve user activity.
Example 2: After HUAWEI Analytics Kit was integrated into an e-commerce app, it was found that purchase behavior differed greatly depending on the age of the user. Therefore, the app developer decided to change the appearance of the app and the products displayed depending on the age of the user, in order to provide the user with a better experience and increase in-app purchases.
It takes you only 5 minutes to integrate HUAWEI Analytics Kit, which allows you to precisely segments users and customize app content and styles accordingly.
Integration guide:
Android
iOS
Web
Sample code:
Android
iOS
Web
If you encounter any problems during the integration, you can submit a ticket online.
We look forward to your participation!

【DTM】Visual Event Tracking for Web Pages (One)

Event tracking is a technology for collecting and processing user behavior data or events, and is widely used for user behavior analysis and data processing. It helps product managers, operations personnel, and data analysts to precisely collect and analyze user behavior data, create user profiles, as well as analyze and optimize products. However, manual event tracking has high requirements in terms of technical skills, as well as requiring a huge workload and a long development period.
The visual event tracking function of Dynamic Tag Management (DTM) was created to deal with such issues. DTM provides multiple solutions for tracking visual events of web pages: common visual event tracking, tag template-based visual event tracking, and visual event tracking by HUAWEI Analytics.
This article will illustrate how to use common visual event tracking.
Prerequisites​1. You have created an AppGallery Connect account and signed in to it by visiting the following URL address, click here
2. You have created a web app and its DTM configuration.
3. You have created your website and integrated the DTM configuration script into it. To integrate the DTM configuration script, perform the following:
a. Click the Configuration tab and then View in the DTM portal.
b. Copy the code snippet below and paste it to the top of the <head> section of each web page to track, so that the code snippet takes effect in a timely manner.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Common Visual Event Tracking​A visual event can be used as the trigger condition for reporting events to multiple third-party analytics platforms. This is applicable to scenarios where visual events and parameters need to be adjusted flexibly.
1.1 Accessing the Visual Event Tracking Page​ 1. Click the Visual event tab in the DTM portal.
2. Click Start on the page displayed.
1.2 Adding Visual Events​ 1. On the Add visual event page displayed, click Add on the right.
2. Select Button or link under Select element for visual event addition. (This option is selected by default.)
3. Select the Detail button under HUAWEI Mate Series on the left page.
Click OK in the displayed dialog box asking you whether to select elements of the same type.
4. Configure visual event information.
a. Enter a visual event name.
b. Click the hand icon, select HUAWEI Mate Xs, and enter a parameter name to add a visual event parameter.
c. Set Triggered on to Specified pages, and add the URL rule URL Equals https://XXXXXX.XXX.
5. Click OK to save the visual event.
6. Click the
icon on the right of a visual event to expand it.
7. Click the
icon in the upper left corner to exit the visual event tracking page.
1.3 Adding a Tag​ 1. Click the Tag tab.
2. Select a tag extension template, and set Trigger condition to MateSeriesView.
3. Click OK.
4. Click Save.
1.4 Creating and Releasing a Version​ 1. Click Create on the Version tab page.
2. On the Create version page, enter a version name and description.
3. Select Create and release version.
4. Click OK.
1.5 Triggering a Visual Event​ 1. Refresh the tested website and download the latest DTM configuration.
Note: By default, the DTM JavaScript SDK downloads the latest DTM configuration to the cache every 15 minutes. To download the latest DTM configuration immediately, disable the browser cache and refresh the tested website again.
2. Click any Detail button under HUAWEI Mate Series.
3. View reported data on the specified third-party analytics platform.
To learn more about DTM, click here.
For more details, you can go to:
Reddit to join our developer discussion
GitHub to download demos and sample codes
Stack Overflow to solve any integration problems
Original Source

【DTM】Visual Event Tracking for Web Pages (Three)

In the previous articles, we discussed common visual event tracking and tag template-based visual event tracking. In this article, I'll be introducing you to visual event tracking by HUAWEI Analytics.
What Is Visual Event Tracking by HUAWEI Analytics?​This mode is used to add visual events for scenarios where HUAWEI Analytics is used. HUAWEI Analytics creates visual event tracking templates based on common industry scenarios. This mode is applicable to scenarios where analysis reports are viewed on HUAWEI Analytics.
1.1 Accessing the Visual Event Tracking Page​1. Go to HUAWEI Analytics > Intelligent data access > Tracing by coding, and click Visual tracking next to a report.
2. In the dialog box displayed, select an app to add visual events, and click Set tracing event. The Visual event page in DTM will be displayed.
3. Select the tag template automatically generated in the Select tag template area on the left. In the Add area on the right, confirm the website URL for adding visual events and click Start.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1.2 Adding Visual Events​1. On the Add visual event page displayed, click Add on the right.
2. Select the element type for adding visual events.
3. Select an element on the left page. If the element is of the same type as other elements, a dialog box will be displayed.
If you click OK, all elements of the same type will be selected. If you click Cancel, only the current element is selected.
4. On the Add visual event page, select a visual event name from the Name drop-down list box.
Options for Name come from the report template in HUAWEI Analytics, and cannot be added or modified.
5. In the Parameter area, set Value for each Key, and click OK.
Options in the Key drop-down list box come from the report template in HUAWEI Analytics, and mandatory options cannot be deleted or modified.
6. (Optional) Click relevant icons next to an added visual event to pause, edit, delete, and view details about the visual event as needed.
1.3 Creating and Releasing a Version​1. Click Create on the Version tab page.
2. On the Create version page, enter a version name and description.
3. Select Create and release version.
4. Click OK.
1.4 Triggering a Visual Event​1. Refresh the tested website and download the latest DTM configuration.
Note: By default, the DTM JavaScript SDK downloads the latest DTM configuration to the cache every 15 minutes. To download the latest DTM configuration immediately, disable the browser cache and refresh the tested website again.
2. Click any Detail button under HUAWEI Mate Series.
3. View reported data on HUAWEI Analytics.
To learn more about DTM, click here.
For more details, you can go to:
Reddit to join our developer discussion
GitHub to download demos and sample codes
Stack Overflow to solve any integration problems
Original Source

Categories

Resources