Cookies are small text files a website uses to recognize users, and are typically placed on your computer, mobile phone, or other device by a web server. Pixels are small blocks of code on webpages that do things like allow another server to measure viewing of a webpage and often are used in connection with cookies.