可以按照自主定义的逻辑编写归因参数(referer),并添加到华为应用市场支持的deeplink地址中。示例如下:
hiapplink://com.huawei.appmarket?appId=C27162&channelID=HwBrowserSearch&referrer=Keywords
其中Keywords由您自行定义。
目前华为应用市场支持归因的deeplink地址如下所示:
appmarket://details
示例如下:
appmarket://details?id=pkgName&channelId=yourChannelId&referrer=yourReferrer
pkgName为应用包名。yourChannelId为渠道ID,可以根据此渠道信息输出报表。yourReferrer为归因参数。
hiapp://com.huawei.appmarket
示例如下:
hiapp://com.huawei.appmarket?activityName=activityUri|appdetail.activity¶ms=%7B%22params%22%3A%5B%7B%22name%22%3A%22uri%22,%22type%22%3A%22String%22,%22value%22%3A%22package%7Ccom.****.appmarket%22%7D%5D%7D&channelId=yourChannelId&referrer=yourReferrer
activityName应用的Activity名称。params中包含经过urlEncode处理的目标详情页包名信息。yourChannelId为渠道ID,可以根据此渠道信息输出报表。yourReferrer为归因参数。
hiapplink://com.huawei.appmarket
示例如下:
hiapplink://com.huawei.appmarket?appId=yourAppid&channelId=yourChannelId&referrer=yourReferrer
yourAppid为应用ID。yourChannelId为渠道ID,可以根据此渠道信息输出报表。yourReferrer为归因参数。