【问题标题】:How would I query how many customers hit a page even if they weren't customers at the time?即使他们当时不是客户,我如何查询有多少客户点击了一个页面?
【发布时间】:2017-08-17 00:10:07
【问题描述】:

假设我正在使用visitor_id 属性将浏览量数据流式传输到keen.io。除了那个属性,假设还有一个 is_customer 布尔值。

pageview = {
  "visitor_id" : "292n0s9f323"
  "is_customer" : true,
  "page" : "https://burningman.org/xyz"
}

我知道如何计算上个月访问 /xyz 页面的唯一身份访问者有多少,并且我知道如何计算访问该页面时其中有多少是客户……但是..

我如何计算本月有多少客户访问了 /xyz 页面,即使他们在访问该页面时还不是客户?

【问题讨论】:

    标签: analytics keen-io


    【解决方案1】:

    您将使用漏斗追溯计算这一点,类似于您进行广告归因的方式。

    var funnel = new Keen.Query("funnel", {
      steps: [
        { // step one counts how many unique customers viewed any pages in the timeframe
          event_collection: "pageview",
          actor_property: "visitor_id",
          timeframe: "this_30_days",
          filters: [
            {
              property_name: "is_customer",
              operator: "eq",
              property_value: true
            }
          ]
        },
        { // step two counts how many of those specific visitors viewed XYZ page
          event_collection: "pageview",
          actor_property: "visitor_id",
          timeframe: "this_30_days",
          filters: [
            {
              property_name: "is_customer",
              operator: "eq",
              property_value: true
            }
          ]
        }
      ]
    });
    

    响应如下:

    {
      "result": [
        3034,  // count of unique customers who viewed any page
        24 // count of those customers who at some point viewed XYZ page
      ],
      "steps": // additional metadata...
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-04
      • 1970-01-01
      • 2017-09-19
      • 1970-01-01
      • 2013-11-13
      • 2016-09-16
      • 1970-01-01
      • 2021-01-28
      相关资源
      最近更新 更多