When you visit a website, a cookie is placed in the user's browser from two sources: One is the source code of the website itself. Generally, cookies placed by a website are necessary for operation or increase security. The other source is the use of external services (e.g. Facebook button, Google Analytics).