1) What is analytics? Why is it used?
How your app is used by users? which pages get more traffic?on which page customers leave the app?
If you want to understand that and direct your future developments accordingly
Analytics is just for you. Understanding user’s habits will help you to make your app better.
If your app is at a certain level or you want to move your app and business forward, you need to use analytics.
To date, there are many services that offer solutions for analytics. Huawei handled analytics as a priority on HMS.
So why would I prefer Huawei Analytics?
Easy to integrate and use
It is very easy to integrate and use the analytics dashboard after integrating Huawei Analytics.
Moreover, you can customize your tables on the dashboard as you wish and you can easily see the data you want to see, not imposed on you.
Reach Huawei users
As you know, google services are not used in the latest Huawei devices. When you integrate Huawei Analytics, you will reach all Huawei users and all other devices users. So Huawei Analytics a connective, not a divider.
Power of HMS Core
Analytics gets its power from HMS Core.
It is very easy to reach all the documents you need for integration or usage of dashboard.When there is a technical problem you can find technical support very easily.
Powerful Analysis Capabilities
{
"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) How to Integrate Huawei Analytics?
For integrate Huawei Analytics kit to our application, first of all, it is necessary to register in the Huawei developer community
After adding your app to AppGallery Connect, we need to enable Analytics service to usage.
After completing the enabling process, we go to the manage API tab from the project settings, activate the analytics service and add the json file on the project settings page to our project and add HMS SDK Dependencies to your project(Note: The order of these processes is important. You should update your json file in case of any service change.).
Add build dependencies to dependencies.
Code:
implementation 'com.huawei.hms:hianalytics:4.0.0.303'
Then all you have to do is go to the class you want to collect and start collecting the data.
Code:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//Enable SDK log recording
HiAnalyticsTools.enableLog();
HiAnalyticsInstance instance = HiAnalytics.getInstance(this);
//Or, use context initialization
//Context context = this.getApplicationContext();
//HiAnalyticsInstance instance = HiAnalytics.getInstance(context);
//instance.setUserProfile("userKey","value");
}
You can customize the data to be collected.
Code:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//Enable SDK log recording
HiAnalyticsTools.enableLog();
HiAnalyticsInstance instance=HiAnalytics.getInstance(this);
//Or, use context initialization
//Context context = this.getApplicationContext();
//HiAnalyticsInstance instance = HiAnalytics.getInstance(context);
//instance.setUserProfile("userKey","value");
}
As you can see, we can write just a few lines of code and connect our project with Huawei Analytics. So where and how do we evaluate the data we collect, let’s look at it
3) Viewing Analytics Data
You have a 4 section in welcome page. Overview, Distirbution Analysis, Operation Analysis and Advance Analysis. By default, the Overview page of an app displays its KPIs in all channels (AppGallery and AppTouch), including App impressions, Details page views, New downloads, and In-app purchase amount.
The Distribution Analysis page displays the app usage and sales data. Use Downloads & installs to measure the installation and usage of your app. Use In-App Purchases and Paid application details to measure the sales of your app.
With Operation Analysis, you can view the financial reports of your application and set up your future strategies based on this.
Advanced Analysis is a platform where you can create personalized tables, filter your users and view them according to categories, and instantly track active users and all other data.
With Event Analysis Gains insight into user behaviour details. Activity analysis providing gains insight into user loyalty. Funnel analysis gains insight the phase in which user lost.
Huawei Analytics gives us uncountable opportunities to do. As you can see here, your limit is your imagination.
Thanks for reading!
Related Links
Thanks to Mehmet Batuhan Ulper
Related
More information like this, you can visit HUAWEI Developer Forum
With the release of HMS Core 5.0, HUAWEI Analytics Kit has witnessed great progress in its data analysis models and capabilities, such as support for the iOS SDK to meet your cross-platform analysis needs, full update of custom overview, and support for potential forecast and churn forecast during user lifecycle. In addition, with optimized funnel analysis, version analysis, audience analysis, app debugging, and data export, the Kit makes it possible for you to make informed decisions concerning app marketing and product optimizations.
{
"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"
}
Let's see which functions of HUAWEI Analytics Kit 5.0 have been improved.
Support for the iOS SDK
Analytics Kit has been enhanced to support the iOS SDK and Android SDK for meeting your cross-platform analysis needs. It achieves one-stop unified analysis across platforms with users at its core, as users' behaviors will no longer be segmented.
If you have more than one app type (iOS, Android) or app in your project, you can view the overall analysis report or the analysis report specific to a certain app type or app by using filters. You can also compare the user behavior for different platforms and apps to make targeted operations strategies based on certain user groups, delivering a better experience for them.
Support for Potential Forecast and Churn Forecast of User Lifecycle
The user lifecycle overview and user analysis of each phase have been updated to support potential forecast and churn forecast. With one click you can save both the estimated potentially growing and lost users as audiences for precision marketing or targeted operations.
In addition, you can filter data by app, app type, or user attributes. The segment analysis of the lifecycle report can help you gain insights into user behavior during different phases of the lifecycle. You can then identify user lifecycle rules and adjust operations strategies accordingly.
Custom Overview Update
The custom overview of Analytics Kit has been fully updated to provide predefined indicators and cards. You can combine them as needed to create a custom overview.
Optimized Funnel Analysis
Funnel analysis has been improved so that you can use the same event in different steps to conduct drill-down analysis. One-click copy allows you to create a funnel based on an existing one, without the need to set the same events and parameters. You can also quickly build a funnel model by changing the order of the logged events.
Functions such as version distribution, audience analysis, app debugging, and data export have been optimized as well. Feel free to try out the updates.
You can also click the link below to learn more about the analysis models of Analytics Kit.
https://developer.huawei.com/consumer/en/hms/huawei-analyticskit
If you have any comments or suggestions on the updates, please leave a message below.
We are looking forward to your valuable insights!
Official website
Development Documentation page, to find the documents you need
Reddit to join our developer discussion
GitHub to download demos and sample codes
Stack Overflow to solve any integration problems
HUAWEI Nearby Service is an important feature of HMS Core, designed to help users quickly find players in the vicinity, and automatically establish a low-latency, high-reliability, and zero-traffic data transmission channel, backed by underlying technologies such as Wi-Fi and Bluetooth. Integrating Nearby Service equips your game to provide users with a premium experience across the board.
1. Premium Attributes
1.1 One-Click Cross-Device Connections for Local Multiplayer Games
Current LAN games require that users are connected to the same router, in order for a connection to be established. If there is no router available, users have to manually enable a hotspot, complicating the process. Nearby Service resolves this persistent issue.
1.2 Face-to-Face Grouping and Friend Adding
Nearby Service provides you with functions for creating face-to-face groups and adding friends, without having to rely on social software or GPS, facilitating free and easy user interactions.
1.3 Face-to-Face Prop Sharing
Nearby Service allows users to quickly share game props with friends, helping you acquire new users and improve user stickiness.
2. Introduction to Plugins
Two encapsulated plugins are provided here. You can directly use the two plugins in the app, and view the source code of the plugins, for a thorough understanding of how to integrate the Nearby Service.
2.1 Preparations
Development environment of Unity.
Download the plugins on GitHub.
2.2 Plugin Import
Choose Assets > Import Package > Custom Package, and click Nearby Player or Discovery Plugin on the toolbar of Unity.
Wait for the package to be processed. After that, the resource list of plugins will display. Then click Import.
2.3 Key Code
2.3.1 Nearby Player Plugin
This plugin is applicable to such scenarios as creating face-to-face groups, adding friends, and sharing props. Declare the NearbyManager class in the plugin. The class provides APIs startDiscovery() and SendMessage() for users to discover nearby players and send messages.
Call startDiscovery to discover nearby players and make the current users discoverable by nearby players when the game starts.
The code of the called API is as follows:
Code:
void Start() {
AndroidMyCallback cb = new AndroidMyCallback(this);
nm = new NearbyManager(cb);
nm.startDiscovery(randomName());
}
The callback function AndroidMyCallback is used to perform operations after a successful discovery.
Code:
// Perform the subsequent operations when a player is discovered. In this demo, the player is being added to the player list.
public override void onFoundPlayer(string endpointName, string endpointId) {
mListController.AddPlayerToList(endpointName, endpointId);
}
// Perform the subsequent operations when a player is lost. In this demo, the player is being removed from the player list.
public override void onLostPlayer(string endpointId) {
mListController.RemovePlayerFromList(endpointId);
}
// Perform the subsequent operations when a player's message is received. In this demo, only the content of the message is displayed.
public override void onReceiveMsg(string endpointName, string Msg) {
mListController.ReceiveMsg(endpointName, Msg);
}
After discovering nearby players, users can send messages to the players for grouping, adding friends, or sharing props.
Code:
// In this demo, click a player's profile picture in the player list to send a grouping invitation.
private void OnClick(string endpointId) {
nm.log("OnClick. SendMessage to " + endpointId);
nm.SendMessage(endpointId, "invites you to join a game.");
}
2.3.2 Nearby Discovery Plugin
This is a plugin developed based on Unity UNET. Users are able to connect their devices on a mutual basis, even they are in different Wi-Fi environments. Declare the NearbyManager class, which offers two APIs: startBroadcast() and startDiscovery(). Two game devices can be connected by calling the above APIs.
The code of the called APIs is as follows:
Code:
private void OnClick() {
Button btn = this.GetComponent<Button>();
btn.enabled = false;
AndroidMyCallback androidMyCallback = new AndroidMyCallback(mNetworkManager);
NearbyManager nearbyManager = new NearbyManager(androidMyCallback);
nearbyManager.startBroadcast();
}
The callback function AndroidMyCallback is used to perform operations after a successful connection. Here, the networkManager API of UNET is called to start the game after a successful connection.
Code:
public class AndroidMyCallback : AndroidCallback {
private NetworkManager mNetworkManager;
public AndroidMyCallback(NetworkManager networkManager) : base() {
mNetworkManager = networkManager;
}
public override void onClientReady(string ipaddr) {
mNetworkManager.networkAddress = ipaddr;
mNetworkManager.StartClient();
}
public override void onServerReady(string ipaddr) {
mNetworkManager.StartHost();
}
}
2.4 Demo
Below we have provided two demos that have integrated the plugins detailed above, to provide you with a better understanding of the process.
Nearby-Player-Demo
{
"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"
}
UNET-NEARBY-DEMO
3. Game Apps That Have Integrated Nearby Service
Tic Tac Toe
Tic Tac Toe is a local battle game that was developed based on native Android APIs from Nearby Service, and released on the HUAWEI AppGallery platform.
NearbyGameSnake
NearbyGameSnake is a local multiplayer game that integrates Nearby Service. It is easy to play, and enables users to play directly in groups, without requiring an Internet connection.
4. Learn More
For more details, please visit HUAWEI Developers.
For more instructions, please visit Development Guide.
You can join the HMS Core developer discussion by going to Reddit.
You can download the demo and sample code from GitHub.
To solve integration problems, please go to Stack Overflow.
Naturally, the main concern for e-commerce companies is the amount of goods and services they sell, and there are many indicators related to this, such as order volume, transaction amounts, and payment conversion rates. These companies also need to be able to compare and analyze these indicators, so that they can find out why certain indicators increase or decrease, and take the necessary measures to improve any shortcomings. Key to all of this is being able to quickly obtain precise marketing data. Marketing teams in e-commerce companies need to update their marketing strategies frequently, and this means they often have to ask the development team to create and implement tracking tags. This takes time and effort, and can cause the marketing team to miss the best time window to market their product, as well as taking up developers' valuable time.
{
"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"
}
Is there a way to track events dynamically without manual coding?
HUAWEI Dynamic Tag Manager (DTM) provides a visual event tracking function which makes tracking events much more efficient. It provides codeless dynamic tag capabilities which enable non-technical personnel to define the events they want to track. This cuts down on communication costs between departments and enables the marketing team to track and analyze data and optimize their strategy accordingly, even if they do not know how to code.
To add a visual event on the DTM portal, all marketing personnel have to do is scan a QR code with their phone. Then, the app screen will be synchronized to the DTM portal, as shown in the screenshot below.
Step 1: Add events to track them visually.
You may want an event to be generated when a user taps the Add to Shopping Cart button on the product details screen. When the user adds a product to their shopping cart, they also select attributes, such as color, version, and memory, and this information will also be reported.
Step 2: Specify the platform to which events are reported and set event parameters.
Step 3: Generate and release a configuration version. This will be automatically delivered by DTM.
Step 4: In AppGallery Connect, go to the HUAWEI Analytics > App debugging, and check that the event has been reported.
Click View details in the Operation column of the event to make sure the event parameters are accurate.
You can also add the visual events in the table below and set relevant event parameters. Click the link for details: https://forums.developer.huawei.com/forumPortal/en/topic/0203428614657600021
Once these events have been added, other relevant events will be reported to the specified analytics platform, such as HUAWEI Analytics, according to the users' action. These events can then be viewed on the analytics platform. DTM supports over 15 analytics platforms, including mainstream analytics platforms like HUAWEI Analytics, HUAWEI Ads, AppsFlyer, Adjust, Google Analytics (Firebase), and Facebook Analytics.
When an e-commerce app uses DTM to track and report events to HUAWEI Analytics, it can reduce the time it takes to track events from 3-4 days to just half a day. What's more, after receiving basic training, non-technical personnel can also manage tracking tags. DTM offers flexible event tracking solutions that can be adapted to different scenarios and requirements. With preset events in DTM, work that usually takes days or even weeks can be completed in just a few minutes.
To learn more about DTM, visit the HUAWEI Developers website.
Does it support to pdf format for downloading reports?
Can't we use the Huawei Analytics Kit to achieve the same result?
Introduction
In this article, we will learn GameAnalytics integration in Unity Game.In previous article, we learnt about some of the features provided by the GameAnalytics.In this part-2 we will implement the Huawei Ads kit, will know practivcally how GameAnalytics helps Huawei Ads events like Ad opened, Ad shown, Ad clicked and Ad failed to show, which can be easily recorded by GameAnalytics and also we will look into SourceEvents and Remote configuration, and other useful features of GameAalytics which makes easy to get custom reports on the various filters you desired.
Development Overview
You need to install Unity software and I assume that you have prior knowledge about the Unity and C#
Hardware Requirements
A computer (desktop or laptop) running Windows 10.
Android phone with API Level 21 or latest and USB cable, which is used for debugging.
Software Requirements
Java JDK 1.7 or more installation package.
Unity software version: 2020.1.15f1.4895 or latest installed.
Integration Preparations
Create Unity project.
{
"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. Download GameAnalytics plugin.
3. Download HMS plugin.
4. Create project in AG-Console
5. How to integrate Huawei Ads in Unity
6. Choose Assets > Import package > Custom package select GameAnalytics package file and
click OK.
How do I trigger Ads Events?
Ads Events supports only IOS and Android. The GameAnalytics ad event needs to invoke when certain events happen for implemented ad sdk.
An ad sdk has callback methods activating code when certain things like ad show and ad click activated. GameAnalytics makes easy to capture these call-back events to be recorded one has to call GameAnalytics sdk when these delegates called.
The examples below describes how to implement this for the ad-types.
Rewarded video
Interstitial
Bannner
[ICODE]
GameAnalytics.NewAdEvent([URL='https://gaadaction.show/']GAAdAction.Show[/URL], GAAdType.Interstitial,"onAdShow", ad.getAdId());
GameAnalytics.NewAdEvent(GAAdAction.Clicked, GAAdType.Interstitial,"unityad", ad.getAdId());
GameAnalytics.NewAdEvent(GAAdAction.FailedShow, GAAdType.Interstitial, "unity ads failed to load ", ad.getAdId());
[/ICODE]
How do I trigger Impression Events?
Impression events are used to get impression data from different ad networks. Currently the following ad networks are supported:
MoPub
Fyber
IronSource
MoPub
To record impression data from MoPub, add the following code inside the Start function and the SDK will send automatically the impression events for you.
void Start ()
{
GameAnalytics.SubscribeMoPubImpressions();
}
Fyber
To record impression data from Fyber, add the following code inside the Start function and the SDK will send automatically the impression events for you.
void Start ()
{
GameAnalytics.SubscribeFyberImpressions();
}
IronSource
To record impression data from IronSource, add the following code inside the Start function and the SDK will send automatically the impression events for you.
void Start ()
{
GameAnalytics.SubscribeIronSourceImpressions();
}
How do I fetch Remote Configuration value?
GameAnalytics provides remote configuration which allows user to configure key pair values from the remote place and also it allows user to Schedule that is set start date ad end date of the configuration.
String remoteValue = GameAnalytics.GetRemoteConfigsValueAsString("Test");
How can I download reports?
GameAnalytics allows you to various filter option and which makes user to predict and take decision based on the analysis report, you can download various kind of reports as show in the below image.
Result
Tricks and Tips
Make sure you have downloaded latest plugin.
Make sure that GameAnalytics Object is created.
Make sure that required permissions are added in Manifest.
Conclusion
In this article, we have learnt how to integrate Huawei Ads Kit with GameAnalytics in Unity. Which proves you with the ability to create own custom events depending on what you would prefer to capture, remote configuration, Funnel and provides various filter option on report.
Thank you so much for reading, I hope this article helps you to understand the GameAnalytics features in Unity.
Reference
GameAnalytics
GameAnalytics Unity
GameAnalytics Plugin
Check out in forum
is it different from HSM analytics kit?
Ad marketing typically requires marketers to research users' preferences so that they can deliver suitable ads. This article shows you a simpler way of doing this by quickly obtaining marketing data, and then analyzing users' preferences and adjusting your marketing strategies based on the marketing data.
HUAWEI Dynamic Tag Management (DTM) empowers you to easily obtain and distribute data by configuring rules or adding visual events. With DTM, you can flexibly manage data tags for your app without modifying your app code, dynamically track specified events, and report related data to the specified analytics platform and ad attribution platform.
Now, let's look at how to use DTM through an application scenario. To promote a video app, we usually choose to place ads for the app. In this case, we need to quickly obtain related data to analyze and check the ad effect, and adjust marketing strategies accordingly. The process is as follows.
{
"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. Deliver ads.
Marketers select a TV show as the ad asset to deliver ads, encouraging users to download and use the video app.
2. Users tap the ads to download and use the video app.
Once users have tapped the ads and downloaded the app, they can begin watching TV shows that they like through the app. TV shows that users like vary depending on users' preferences. Therefore, marketers must adjust the ad content to align with the types of shows users are interested in, to achieve a better ad effect. This is a key step for ad marketing, and it is one which DTM can help marketers quickly obtain user data for analyzing their preferences.
3. Configure a tag in DTM to report Trace Id, VideoType, and Duration.
Marketers need to define how to handle and report generated events in DTM, of which there are two ways of doing so. One is to add visual events by clicking and selecting related app components. In this way, marketers can dynamically and flexibly track events without modifying the app code. Another way is to configure rules that define when to send data, what data to send, and which platform (where) data is sent to.
When to send data:
What data to send:
Which platform data is sent to:
4. Report data to the specified data analytics platform and ad attribution platform.
If users watch TV shows through the app after they tap the ad and download the app, related data will be automatically obtained and reported to the specified data analytics platform and ad attribution platform based on the configured rules.
5. Analyze the reported data and adjust the marketing strategies.
Marketers can analyze the reported data and adjust the marketing strategies based on the findings, to optimize the ad effect and cut ad costs.
This is just one of DTM's many application scenarios. On top of this, marketers can also use DTM for anti-fraud analysis, helping improve the operations efficiency.
To learn more about DTM, please visit:
>> DTM official website
>> DTM development guide
>> DTM codelab