It is a fact that websites can keep track of their own web pages that you have visited.
However, they can also use the 3rd party cookies to track users' browsing history to find out which websites they have visited apart from their own website as long as they are loading the cookies from the same domain.