Skip to main content

Attribution

info

View this example in Motif here.

After splitting the sequences into sessions, this example identifies the last-touch attribution before every watch_start.

Video

SOL query

// Split user sequences into sessions with an hour or more in between
match split Session()+
if duration(Session[-1], SUFFIX[0]) > 1h

// Split sessions into every watch_start and preceding last touch
match split LastTouch(search_page | home_page | favorites_page | top_movies_page | continue_watching ) >> (^search_page, home_page, favorites_page, top_movies_page, continue_watching)* >> watch_start

Key steps

  1. Add a tag and additional candidates for our last touch attribution, making sure to also add them to the “not” step ahead of watch_start.
match LastTouch(search_page | home_page | favorites_page | top_movies_page ) >> (^search_page, home_page, favorites_page, top_movies_page)* >> watch_start
  1. Add the continue_watching event, and a split to our match.
match split LastTouch(search_page | home_page | favorites_page | top_movies_page | continue_watching ) >> (^search_page, home_page, favorites_page, top_movies_page, continue_watching)* >> watch_start
  1. Plot the name dimension for our LastTouch tag, along with the percentage of all touches.

attribution