How exactly does the affiliate tracking system work, from issuing a tracking url, to recording an ev

I'd like to understand the step by step process by which this works.

Once I've issued (or the user has issued themselves) their aff link, how does the plugin track and record everything?