Skip to content

Cookies and GDPR for your business website

Updated 16 November 2026 · 5 min · Writer By RankLabs

Short answer

If your website has statistics from Google Analytics, ad tracking or embedded services that set cookies, you need the visitor’s consent first. Only cookies needed for the site to work are exempt. Consent must be an active choice, and it must be as easy to say no as yes. This guide describes what the Swedish authorities say and is not legal advice.

When is consent required?

The Swedish Post and Telecom Authority (PTS) says that you need the visitor’s consent before you store information on the visitor’s device or retrieve information from it. This applies to cookies and similar technology.

The exception is cookies that are necessary for a service the visitor has asked for. PTS says that it is not you as the owner who decides what is necessary, and gives statistics as an example of something that doesn’t count as necessary.

Type of cookieExampleIs consent required?
NecessaryRemembers the visitor’s cookie choiceNo
StatisticsGoogle AnalyticsYes
MarketingGoogle Ads, the Meta PixelYes
  • Necessary

    Example
    Remembers the visitor’s cookie choice
    Is consent required?
    No
  • Statistics

    Example
    Google Analytics
    Is consent required?
    Yes
  • Marketing

    Example
    Google Ads, the Meta Pixel
    Is consent required?
    Yes

Two authorities are involved. PTS supervises the rules on storing cookies, which are in the Swedish Electronic Communications Act. The Swedish Authority for Privacy Protection (IMY) supervises how personal data is then used, under the GDPR.

Does your website have the right cookie banner? Choose which services the site uses, and you get a banner with three equal choices.

Open Cookie Banner

What a banner needs to do

According to PTS, a banner must meet these requirements:

  • Yes and no are in the same view, and the buttons look the same.
  • No boxes are pre-ticked.
  • If the visitor doesn’t choose anything, only necessary cookies are stored.
  • The visitor can consent to each purpose separately, for example statistics but not marketing.
  • It is as easy to withdraw consent as to give it, for example through a link in the footer.
  • The visitor is told which cookies are used, what they are for, how long they are kept and whether anyone other than you gets the data.

PTS also says that these don’t count as consent: the visitor continuing to use the site, a button with the text ”I understand”, or the site being blocked for anyone who says no.

What the authorities have criticised

In April 2025, IMY criticised the cookie banners of three companies. The criticism concerned unclear information about the right to withdraw consent, misleading banner design and processing of data without a legal basis. The companies received reprimands, not fines.

Google Ads and Google Analytics

Google requires that you, as a user of their services, obtain valid consent from visitors in the EEA, for both cookies and personal data used for personalised ads. You must also keep a record of the consent and show how it can be withdrawn.

Consent Mode is Google’s way to receive the visitor’s choice. The banner sends the choice to Google, and Google’s tags adapt to it. Consent Mode is not a banner in itself, so you need your own.

There are two modes:

ModeWhat happens before consent
Basic modeGoogle’s tags don’t load at all, and nothing is sent to Google
Advanced modeThe tags load and send cookieless signals until the visitor has chosen
  • Basic mode

    What happens before consent
    Google’s tags don’t load at all, and nothing is sent to Google
  • Advanced mode

    What happens before consent
    The tags load and send cookieless signals until the visitor has chosen

Which mode is right for you is a legal judgement. Basic mode is the cautious choice.

Frequently asked questions

Do I need a banner if I only have Google Analytics?

Yes. PTS says that statistics don’t count as necessary, so statistics cookies require consent.

Do I need a banner if the site has no cookies at all?

No, not for cookies. But check that this is true. Embedded maps, videos and fonts from other services can set cookies without you having chosen it.

Is a box saying ”We use cookies” with an OK button enough?

No. PTS says that text that only informs is not consent. The visitor must be able to say no as easily as yes.

Will my site be legal if I use the cookie banner from RankLabs?

The banner is built to follow the rules, but you are responsible for making sure all scripts on your site are connected to it and that the information about your cookies is correct. If you are unsure, ask a lawyer.

Would you like us to set up the banner and tracking for you?

Get a price proposal for your website

Reply within one working day.See what’s included and the price

Not ready yet? Create your banner yourself first

We use necessary cookies to make the site work. With your consent, we also use cookies for statistics and marketing. You can change your choice at any time under Cookies in the footer.

Privacy policy