The construction accounting for an mm_paths object: how many events went
in, how many journeys came out, and how many conversions were lost to
filtering along the way.
Arguments
- paths
An
mm_pathsobject frombuild_paths().
Value
A one-row data frame with the columns
events_in,events_outRows supplied, and rows retained.
journeys,converting_journeysJourneys built, and how many ended in a conversion that can still be credited.
mean_length,median_length,max_lengthJourney length in touchpoints.
direct_eventsEvents whose channel matched
direct_labels.conversion_eventsConversion events in the input. This exceeds
conversions_observedwhen several conversions fall inside one journey, which happens undersplit_on = "none"or"gap".conversions_observedJourneys that contained a conversion.
conversions_unattributableConverting journeys that lost every touchpoint to a direct-traffic rule, and so cannot be credited to any channel. That number should be reported, not absorbed.
On a subset of a journey table the construction counts no longer apply, and
the columns describing the input are NA rather than the parent's values.
Examples
data(mm_events)
paths <- build_paths(mm_events, id = "customer_id", channel = "channel",
timestamp = "timestamp", conversion = "conversion")
path_summary(paths)
#> events_in events_out journeys converting_journeys mean_length median_length
#> 1 20799 17306 6137 2741 2.819945 3
#> max_length direct_events conversion_events conversions_observed
#> 1 9 1597 2741 2741
#> conversions_unattributable
#> 1 0