您可以使用一個渠道來追溯計算,類似於您如何做廣告歸因。
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...
}