New: Pandectes in Claude & ChatGPT - ask your AI assistant about your cookie banner, scans and consent rates

New: Pandectes in Claude & ChatGPT See how it works

What are cookies?

The short answer: a cookie is a small text file that a website stores in your browser to remember you: your cart, your language, that you are logged in, or your visits for analytics and advertising. In the EU and the UK, a website must get your consent before setting cookies that are not strictly necessary for the site to work, such as advertising cookies. In the US, there is no general consent requirement, but several state laws let you opt out of cookies used for targeted advertising.

Cookies, also known as internet cookies, are small text files created by websites and stored in a user’s web browser. When you visit a website, it sends a cookie to your browser, which stores the file on your device, whether it’s a computer, smartphone, or tablet. These cookies contain data about your interactions with the website, such as your preferences or login details. The next time you visit the same website, your browser sends the stored cookie back to the web server, allowing the site to deliver a tailored experience, such as remembering your username or the items in your shopping cart.

Cookies are designed to improve the user experience by saving information locally, reducing the need for websites to request the same data repeatedly. They also enable features like personalization, seamless navigation, and faster load times.

Cookies are often referred to by other names, including web cookies, browser cookies, or HTTP cookies. The term itself originates from the concept of “magic cookies,” which were small packets of data passed between programs in early computing. The analogy to a fortune cookie, a cookie containing a hidden message, aptly describes their function.

The invention of cookies dates back to 1994, when computer programmer Lou Montulli created them while working at Netscape Communications. Netscape sought to make websites more functional and commercially viable, and cookies provided a way for sites to remember user data. Montulli’s invention has since become a foundational technology for the internet.

Cookies are not the only way websites track visitors. Tracking pixels send information about a visit to third parties, often alongside cookies.

Frequently asked questions

What are the different types of cookies? They are grouped in two ways. By who sets them: first-party cookies come from the site you are visiting, third-party cookies from another domain, such as an ad network. By how long they last: session cookies are deleted when you close the browser, persistent cookies stay until their expiry date. They are also grouped by purpose: strictly necessary, preferences, analytics and marketing. Our guide to the types of internet cookies explains each one.

What does accepting cookies mean? Clicking “Accept” on a cookie banner allows the website to set cookies that are not strictly necessary, such as analytics or advertising cookies, for the purposes the banner describes and the site’s cookie policy explains in detail. If you reject them, the site should still work with only the necessary cookies. You can change your mind later through the site’s cookie settings, and withdrawing consent must be as easy as giving it.

Should I accept cookies? It is your choice. Accepting can make some features work better, such as remembered preferences, but it also allows tracking for analytics and advertising. Rejecting keeps the strictly necessary cookies, so the site still works, including logging in and the shopping cart.

Is it dangerous to accept cookies? A cookie cannot contain a virus or read the files on your device. The risk is to privacy: third-party cookies let companies follow your browsing across sites to show targeted ads. You can reject them in a site’s cookie banner or delete them in your browser settings.

How do websites handle cookie consent on Shopify? With a consent management app such as Pandectes GDPR Compliance, which scans the store’s cookies, shows the banner and blocks non-essential cookies until the visitor accepts.

More from the Knowledge Base

Make your Shopify Store's use of cookies and online tracking compliant today

Try for free