< Return to Glossary

What is a Cookie?

A cookie is a small piece of data sent by a Web site and stored on the user's computer by the user's Web browser while the user is browsing. Cookies are a reliable mechanism for Web sites to remember status information (such as items added to a shopping cart in an online store) or to record the user's browsing activity (such as clicking certain buttons, logging in, or recording which pages have been visited in the past). They can also be used to remember information that the user has previously entered into form fields, such as names, addresses, passwords, and credit card numbers.

Cookies can be classified as either "session" or "persistent" cookies. Session cookies are deleted from your computer when you close your browser, while persistent cookies remain on your computer until you delete them or they expire. This feature helps sites provide users with a personalized experience and can be essential for functions such as maintaining login status.

Because of their role in tracking user behavior, cookies have also been at the center of debates about privacy and security on the Internet, leading to regulations that require sites to obtain user consent before using them.

Pirsch Analytics Icon

Ready to Level up Your Analytics?

Try Pirsch Analytics free of charge for 30 days with no credit card required. Pick the best Google Analytics alternative, setting up your first website only takes a few minutes.