差异诊断
原能力
定位丢失发生在触达、理解还是后续行动,保留其他可能影响。(细化版 p.6–7)
首选项目
Matomo(GPL-3.0 平台核心)。 Matomo
匹配范围
按入口、落地页、转化行为对齐并做差异分解。
源码
Matomo · public function getEntryPageUrls(
plugins/Actions/API.php · 244–257 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
public function getEntryPageUrls(
$idSite,
string $period,
string $date,
$segment = false,
bool $expanded = false,
$idSubtable = false,
bool $flat = false
) {
Piwik::checkUserHasViewAccess($idSite);
$dataTable = $this->getPageUrls($idSite, $period, $date, $segment, $expanded, $idSubtable, false, $flat);
$this->filterNonEntryActions($dataTable);
return $dataTable;
DuckDB · SinkResultType PhysicalHashAggregate::Sink(
src/execution/operator/aggregate/physical_hash_aggregate.cpp · 396–409 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
SinkResultType PhysicalHashAggregate::Sink(ExecutionContext &context, DataChunk &chunk,
OperatorSinkInput &input) const {
auto &local_state = input.local_state.Cast<HashAggregateLocalSinkState>();
auto &global_state = input.global_state.Cast<HashAggregateGlobalSinkState>();
if (distinct_collection_info) {
SinkDistinct(context, chunk, input);
}
if (CanSkipRegularSink()) {
return SinkResultType::NEED_MORE_INPUT;
}
DataChunk &aggregate_input_chunk = local_state.aggregate_input_chunk;
实现与验收要点
从漏斗观察区分相关与因果,列出活动外部因素。