目录

com.huawei.hms.analytics.type.HAEventType

This API provides the ID constants of all predefined events.

Constant FieldValue

String CREATEPAYMENTINFO

Event reported when a user has added payment information but has not initiated payment during checkout.

It can be used with STARTCHECKOUT and COMPLETEPURCHASE to construct funnel analysis for the checkout process.

String ADDPRODUCT2CART

Event reported when a user adds a product to the shopping cart.

It can be used with VIEWPRODUCT and STARTCHECKOUT to construct funnel analysis for product purchase. It can also be used to analyze products that users are interested in, helping you promote the products to the users.

String ADDPRODUCT2WISHLIST

Event reported when a user adds a product to favorites.

It can be used to analyze products that users are interested in, helping you promote the products to the users.


String STARTAPP

Event reported when a user launches the app.

String STARTCHECKOUT

Event reported when a user clicks the checkout button after placing an order. It can be used with VIEWPRODUCT and COMPLETEPURCHASE to construct funnel analysis for the e-commerce purchase conversion rate.

String VIEWCAMPAIGN

Event reported when a user view details of a marketing campaign. It can be used to analyze the conversion rate of a marketing campaign.

String VIEWCHECKOUTSTEP

Event reported when a user views steps of the settlement process.


String WINVIRTUALCOIN

Event reported when a user obtains virtual currency. It can be used to analyze the difficulty for users to obtain virtual currency, which helps you optimize the product design.


String COMPLETEPURCHASE

This event is reported after a user purchases a product. It can be used to analyze the products or contents that users are more interested in, which helps you optimize the operations policy.


String OBTAINLEADS

Event reported when a sales lead is obtained. For example, it can be reported after a user touches the ad you placed and fills in and submits the contact information. In this case, the event is used to evaluate the possible revenue brought by the lead to developers. In addition, the event can also be used to evaluate the ROI of the placed ad.


String JOINUSERGROUP

Event reported when a user joins in a group, for example, joining in a group chart in a social app. It can be used to evaluate the attractiveness of your product's social features to users.

String COMPLETELEVEL

Event reported when a user completes a game level in a game app. It can be used with STARTLEVEL to analyze whether the game level design is proper and make targeted optimization policies.

String STARTLEVEL

Event reported when a user starts a game level in a game app. It can be used together with COMPLETELEVEL to analyze whether the game level design is proper and make targeted optimization policies.

String UPGRADELEVEL

Event reported when a user levels up in a game app. It can be used to analyze whether your product's user level design is optimal and make targeted optimization policies.

String SIGNIN

Event reported when a user signs in to an app requiring sign-in. It can be used to analyze users' sign-in habits and make targeted operations policies.

String SIGNOUT

Event reported when a user signs out.

String SUBMITSCORE

Event reported when a user submits the score in a game or education app. It can be used to analyze the difficulty of product content and make targeted optimization policies.

String CREATEORDER

Event reported when a user creates an order.


String REFUNDORDER

Event reported when the refund is successful for a user. It can be used to analyze loss caused by the refund and make targeted optimization policies.

String DELPRODUCTFROMCART

Event reported when a user removes a product from the shopping cart. It can be used for targeted marketing to the user.


String SEARCH

Event reported when a user searches for content in an app. It can be used with events such as VIEWSEARCHRESULT and VIEWPRODUCT to analyze the accuracy of search results.

String VIEWCONTENT

Event reported when a user touches a content, for example, touching a product in the product list in an e-commerce app to view the product details. It can be used to analyze the products that users are interested in.

String UPDATECHECKOUTOPTION

Event reported when a user sets some checkout options during checkout. It can be used to analyze checkout preferences of users.


String SHARECONTENT

Event reported when a user shares a product or content through a social channel. It can be used to analyze users' loyalty to the product.


String 

REGISTERACCOUNT

Event reported when a user registers an account. It can be used to analyze the user sources and optimize operations policies.

String CONSUMEVIRTUALCOIN

Event reported when a user consumes virtual currency. It can be used to analyze the products that users are interested in.

String STARTTUTORIAL

Event reported when a user starts to use the tutorial. It can be used with COMPLETETUTORIAL to evaluate the tutorial quality and formulate targeted optimization policies.

String COMPLETETUTORIAL

Event reported when a user completes the tutorial. It can be used with STARTTUTORIAL to evaluate the tutorial quality and formulate targeted optimization policies.

String OBTAINACHIEVEMENT

Event reported when a user unlocks an achievement. It can be used to analyze whether the achievement level design is optimal and make targeted optimization policies.

String VIEWPRODUCT

Event reported when a user browses a product. It can be used to analyze the products that users are interested in, or used with other events for funnel analysis.

String VIEWPRODUCTLIST

Event reported when a user browses a list of products, for example, browsing the list of products by category. It can be used to analyze the types of contents that users are more interested in.

String VIEWSEARCHRESULT

Event reported when a user views the search results. It can be used with VIEWPRODUCT and SEARCH to measure the accuracy of the search algorithm.

String UPDATEMEMBERSHIPLEVEL

Event reported when a user purchases membership or signs in for the first time after membership expires. It can be used to analyze user habits.


String FILTRATEPRODUCT

Event reported when a user sets conditions to filter products displayed. It can be used to analyze user preferences.


String VIEWCATEGORY

Event reported when a user taps a product category. It can be used to analyze popular product categories or user preferences.

String UPDATEORDER

Event reported when a user modifies an order.

String CANCELORDER

Event reported when a user cancels an order.

String COMPLETEORDER

Event reported when a user confirms the reception.

String CANCELCHECKOUT

Event reported when a user cancels an ongoing payment of a submitted order. It can be used to analyze the cause of user churn.

String OBTAINVOUCHER

Event reported when a user claims a voucher.

String CONTACTCUSTOMSERVICE

Event reported when a user contacts customer service personnel to query product details or make a complaint.

String RATE

Event reported when a user comments on an app, service, or product.

String INVITE

Event reported when a user invites other users to use the app through the social channel.

com.huawei.hms.analytics.type.HAParamType

This API provides the IDs of all predefined parameters, including the ID constants of predefined parameters and user attributes.

ParameterDescription

string Achievementid

Indicates the achievement ID.

string Begindate

Indicates the departure date, hotel check-in date, or lease start date.

string Bookingdays

Indicates the number of days that a user can stay in the case of hotel reservation.

string Bookingrooms

Indicates the number of rooms reserved by a user in the case of hotel reservation.

string Brand

Indicates the item brand.

string Category

Indicates the item category.

string Channel

Indicates the channel through which a user signs in.

string Class

Indicates the level of a room reserved by a user in the case of hotel reservation.

string Clickid

Indicates the ID generated by the ad network and used to record ad clicks.

string Content

Indicates the content of a marketing activity.

string Contenttype

Indicates the content type selected by a user.

string Currname

Indicates the currency type of the revenue, which is used together with $Revenue.

string Destination

Indicates the flight or travel destination.

string Enddate

Indicates the project end date, checkout date, or lease end date.

string Extendparam

Indicates a customized parameter.

string Flightno

Indicates the flight number generated by the transaction system.

string Keywords

Indicates the search string or keyword.

string Levelid

Indicates the game level.

string Levelname

Indicates the name of a game level.

string Materialname

Indicates the name of the creative material used in a marketing activity.

string Materialslot

Indicates the location where the creative material is displayed.

string Medium

Indicates the media where the campaign occurred, for example, CPC and email.

string Option

Indicates the checkout option entered by a user in the current settlement step.

string Originatingplace

Indicates the departure location.

string Passengersnumber

Indicates the number of customers in the case of hotel reservation.

string Place

Indicates the item’s location ID.

string Placeid

Indicates the item’s location ID.

string Positionid

Indicates the index of an item in the list.

string Price

Indicates the purchase price.

string Productfeature

Indicates the item variant.

string Productid

Indicates the item ID.

string Productlist

Indicates the item list displayed to a user.

string Productname

Indicates the item name.

string Promotionname

Indicates the name of a marketing activity.

string Quantity

Indicates the purchase quantity.

string Result

Indicates the operation result.

string Revenue

Indicates the context-specific value that is automatically accumulated for each event type.

string Rolename

Indicates the role of a user.

string Score

Indicates the score in a game.

string Searchkeywords

Indicates the search string or keyword.

string Shipping

Indicates the transportation fee generated in this transaction.

string Source

Indicates the source of a marketing activity provider, for example, Huawei PPS.

string Step

Indicates the step where a user is currently in during the settlement process.

string Storename

Indicates the store or organization where a transaction occurred.

string Taxfee

Indicates the tax entailed in this transaction.

string Transactionid

Indicates the e-commerce transaction ID.

string Usergroupid

Indicates the ID of a group that a user joins.

string Virtualcurrname

Indicates the virtual currency type.

string Voucher

Indicates the coupons used by a user in this transaction.