链接级别分析

控制面板

链接统计视图

只要您的链接包含唯一标记,就可以在链接后附加?stats=true ,并查看任意时间段内的趋势明细。

图像

点击流

您还将看到按平台分类的点击,安装和重新打开的明细。

图像

快速链接

如果您在“快速链接”页面上创建了营销链接,则可以查看该特定链接的分析明细。

图像

API

要使用任何形式的API,您都需要链接ID。您可以简单地从 https://api2.branch.io/v1/url 请求它,例如:

请求:

的HTML

curl -XGET 'https://api2.branch.io/v1/url?url=https://example.app.link/WgiqvsepqF&branch_key=key_live_kaFuWw8WvY7yn1d9yYiP8gokwqjV0Swt'

响应:

的HTML

{
  "campaign": "new product",
  "channel": "facebook",
  "feature": "onboarding",
  "stage": "new user",
  "tags": [
    "one",
    "two",
    "three"
  ],
  "data": {
    "$canonical_identifier": "content/123",
    "$desktop_url": "http://www.example.com",
    "$og_description": "Description from Deep Link",
    "$og_image_url": "http://www.lorempixel.com/400/400/",
    "$og_title": "Title from Deep Link",
    "$one_time_use": false,
    "custom_array": [
      1,
      2,
      3,
      4,
      5,
      6
    ],
    "custom_boolean": true,
    "custom_integer": 1243,
    "custom_object": {
      "random": "dictionary"
    },
    "custom_string": "everything",
    "~campaign": "new product",
    "~channel": "facebook",
    "~creation_source": 0,
    "~feature": "onboarding",
    "~id": "423196192848102356",
    "~stage": "new user",
    "~tags": [
      "one",
      "two",
      "three"
    ],
    "url": "https://example.app.link/WgiqvsepqF"
  },
  "type": 0,
  "alias": null
}

从响应中获取**~id**

CSV:手动导出或数据导出API

  • 使用ID,您可以在last_attributed_touch_data_tilde_id 列中查看所有归因事件。

查询 API(Query API)

如果您只想通过指定last_attributed_touch_data_tilde_id来通过查询API查看公正计数,例如:

请求:

的HTML

curl -X POST -H "Content-Type: application/json" -d '{

  "branch_key": "<YOUR_BRANCH_KEY>",

  "branch_secret": "<YOUR_BRANCH_SECRET>",

  "start_date": "2017-12-14",

  "end_date": "2017-12-20",

  "data_source": "eo_click",

  "granularity": "all",

  "dimensions": [

    "last_attributed_touch_data_tilde_id"

  ],

  "filters": {

    "!last_attributed_touch_data_plus_current_feature": [

      "MOBILE_DEEPVIEWS",

      "DESKTOP_DEEPVIEWS"

    ],

    "last_attributed_touch_data_tilde_id": [

      "458794678159033945"

    ],

    "!user_data_platform": [

      "ROBOT"

    ]

  },

  "aggregation": "unique_count"

}' "http://api.branch.io/v1/query/analytics?limit=100"

响应:

的HTML

{

  "results" : [ {

    "result" : {

      "last_attributed_touch_data_tilde_id" : "271026075193177506",

      "unique_count" : 1

    },

    "timestamp" : "2017-12-14T08:00:00.000Z"

  } ],

  "paging" : {

    "total_count" : 1

  }

}

/ exports / query-recipe-book /#no-filters_3

更新15 天前

链接级别分析


建议的编辑仅限于API参考页

您只能建议对Markdown正文内容进行修改,而不能建议对API规范进行修改。