How track Guest and Track User?

Hello,
I don’t find but if there are post on it sorry.
I would like for my site track the guests and track the users, but to know what the guests done, visited, and the users too specifiquely.
I want 2 track fo the same site.
Thanks for your help.