Is there any open source tooling?
Also there's a reason people pay for referring a friend - it's easy to track who cares enough that they'd tell friends.
Then summarize the number of users for whom each action was the last one that they completed of the full sequence. You'd then infer that the user dropped out due to something between doing the actions with the highest numbers and the very next action(s) in the chain.