A Shopify store that sells to Italian visitors has a cookie question before it has a campaign. I am Mariusz Szatkowski, a developer in Gdynia who works remotely and in writing. Storefront design comes from me, or from your own files if you have them. The legal position on each cookie is for the store owner and an adviser, and I build the banner, the tags and the records so that the position can be shown.

The Due Torri, Bologna. Author FrDr, licence CC BY-SA 4.0, via Wikimedia Commons.
#Which Italian cookie rules apply to a store?
The Garante per la protezione dei dati personali adopted its Guidelines on the use of cookies and other tracking tools on 10 June 2021. The text is on garanteprivacy.it as doc web 9677876 and register of measures no. 231, and the English version states publication in the Gazzetta Ufficiale no. 163 of 9 July 2021. The Garante gave addressees six months from that publication to comply. It added that consent collected earlier remains valid when it meets the Regulation and the collection was recorded, so that it can be documented.
The guidelines rest on section 122 of the Italian data protection Code, which the text quotes. Storing information on a visitor’s device, or reading what is already stored, is allowed only with the visitor’s consent after being informed. The exception is technical storage that serves only to carry a communication, or that is strictly necessary for a service the visitor explicitly asked for.
Two consequences follow from the Garante’s reading:
- A cookie that is not technical needs consent first. The notice alone is enough only for technical cookies.
- The Garante states that under no circumstances may the operator’s legitimate interest justify cookies or other tracking tools.
#When does analytics count as technical?
The Garante treats analytics cookies as technical only under conditions, set out in paragraph 7.2. The cookie must not single out the visitor. The text names masking at least the fourth component of an IPv4 address as one measure and says similar steps are needed for IPv6. The statistics must be aggregated and tied to one website or app, and a third party that measures for the publisher must not match the data with other information or pass it on.
For a store this decides which tools sit behind the banner and which do not. A script that reports aggregate visits with a masked address is a different case from a pixel that builds an audience across sites. I read each tool’s documentation for what it sets and what it sends, and I list the result next to the tool. Whether a given tool meets the conditions is a call for your adviser, because the answer depends on how the tool is configured.
#What does the Garante banner model ask for?
The Garante frames its banner model as a suggestion. Controllers may use other mechanisms, as long as they reach compliance and the visitor’s action is unambiguous. If the operator follows the suggested model, the text asks for these elements:
| Element | What the guidelines say |
|---|
| First view | A banner large enough to interrupt browsing noticeably without letting the visitor trigger something by accident |
| Close with X | Closing the banner keeps the defaults, so browsing continues with technical cookies only. The X must be as visible as the other controls |
| Warning | A line that says closing with X leaves the default settings unchanged |
| Short notice | Technical cookies, and other cookies only after consent, for advertising, personalisation or analysing visitor behaviour |
| Privacy policy | A link to the policy or to a second-layer notice, one click away from a footer link on every page |
| Accept | A button that accepts all cookies and tracking tools |
| Granular choices | A link to a section where the visitor picks functions, third parties and cookies, possibly grouped by category |
Two further points shape the build. Every granular choice is preset to refuse, so a visitor can only opt in. The first-view action must be an opt-in. It may never be an opt-out. The text also asks for controls of the same size, emphasis and colour, so that design does not steer the visitor toward one answer.
Paragraph 6.1 answers both. Scrolling down the page is in itself unsuitable for obtaining consent to profiling cookies or other tracking tools. The Garante shares the position of the European Data Protection Board, which said that scrolling or swiping does not satisfy the requirement of a clear affirmative action. The Garante allows that scrolling can be one component of a longer process, if the visitor’s informed choice ends up as an unambiguous, recordable event. An action that does not produce such an event is not valid consent.
A cookie wall is a take it or leave it mechanism that blocks access unless the visitor consents. The Garante calls it unlawful, except where the operator offers equivalent content or services without consent, checked case by case. The alternative has to respect Article 5(1) of the Regulation. For a shop this rules out a full-screen overlay that hides the catalogue until the visitor accepts.
#How long before the banner may return?
Paragraph 6.2 criticises banners that appear on every visit after the visitor has chosen. The choice must be recorded, and the visitor is not asked again unless one of three things applies:
- the circumstances of the processing change significantly, for example a new third party
- the operator cannot know that a cookie is already stored, for instance after the visitor deleted cookies and the operator cannot keep track of the choice
- at least six months have passed since the banner was last shown
The same text says that anyone who closes the banner with the X creates an event that the operator can record, and that this should keep the banner away for no less than six months. The stored choice must also be easy to change. The Garante asks for a footer link with wording such as “Change your mind on cookies”, and suggests an icon on every page that shows the current setting. Later choices override earlier ones, both when consent is given after a refusal and when it is withdrawn.
#What does the Shopify cookie banner do?
Shopify documents the banner under Settings, Customer privacy, Cookie banner. For a new store, automated privacy settings are on by default, and Shopify says it then configures the banner for visitors in the UK and EEA, provided the store has active markets there. Merchants can switch the automation off and pick regions by hand. Shopify says the banner can appear on the storefront, cart, checkout and customer account pages in configured regions, and that visitors reach their choices through the banner or a “Cookie preferences” link in the footer menu.
Three statements on the Shopify help page matter for an Italian store:
- Shopify says the banner governs Shopify-specific tools, including cookies and Shopify Pixels. Third-party cookies or pixels installed by hand or through apps may need a third-party banner or custom logic.
- In configured banner regions, Shopify says non-essential data is collected only after consent. It warns that this can lower session counts and conversion rates in analytics.
- Shopify states that automated settings are not a substitute for legal advice and that the merchant is responsible for compliance.
Shopify’s documentation does not list the buttons or their styling, so I make no claim about them. I open the live banner on the store and compare it with the table above: is the close control visible, does Accept carry the same weight as the other choices, is a path to granular choices present. Whether Shopify’s own consent categories satisfy the Garante’s granularity point is for your adviser to judge.
#How can code read the visitor’s consent choice?
A custom theme, an app or a third-party banner can talk to consent through the Customer Privacy API on shopify.dev. It runs in the browser, loads through the consent tracking feature and appears at window.Shopify.customerPrivacy. Shopify describes four checks that return true or false: preferences, analytics, marketing and sale of data processing. Each call reflects the merchant’s settings, the visitor’s location and the consent given.
The rules Shopify attaches to the API match the Garante’s concern about recorded choices:
- Consent is recorded only on a visitor interaction, such as accepting or declining in a banner, and never automatically on the visitor’s behalf.
- Code should not read or edit Shopify cookies directly, because processing can break when Shopify releases new versions.
- A document event named visitorConsentCollected fires when consent changes, which lets other scripts wait for the choice.
- A method named shouldShowBanner reports whether the visitor is in a region that shows the banner and has not decided yet.
- A consent identifier is available per visitor, which Shopify describes as useful for the merchant’s consent audit log.
- On a custom storefront, Shopify points to Hydrogen analytics and consent, so that consent persists across page loads and is honoured by checkout.
The Garante expects each tracking tool to be gated by the choice. A tag that sets a marketing cookie before the visitor decides breaks that rule even when the banner looks right. Third-party scripts are the usual source of that gap, which is why I test the page with an empty browser profile and list which cookies appear before any click, after Accept and after refusal.
#What should the store record?
The Garante asks for choices that can be recorded and shown later. A record that serves that purpose holds:
- the choice made, and whether it was acceptance, refusal by closing, or a granular selection
- the date of the choice, so the six months in paragraph 6.2 can be counted
- the version of the banner text and the list of tools behind it at that moment
- the cookies observed before any click, after Accept and after refusal, from an empty profile
- the tools the adviser classified as technical, analytics or profiling, with the reason
Shopify’s consent identifier can tie a visitor’s choice to the store’s log. What the store keeps beyond that depends on the consent tool in use, so I work from what your tool stores instead of promising one structure.
#Checklist for a Bologna Shopify store
- Decide with your adviser which tools are technical, analytics or profiling.
- Compare Shopify’s banner regions with those of any third-party consent app.
- Check that closing the banner leaves only technical cookies in place.
- Check that Accept and the other choices have the same size and weight.
- Preset every granular choice to refuse.
- Add a footer link to change or withdraw the choice.
- Gate third-party tags behind the stored choice.
- Test with an empty profile before launch and after every theme or app change.
#How does a project run?
- You send the store address, the tools that set cookies or send visitor data, and the markets you sell to.
- I list each tool with what its documentation says it sets and sends, and mark the points where your adviser must decide.
- I build the banner settings and tag gating on a theme copy, and you check it with a fresh browser profile.
- You approve the wording and the tool classification in writing before anything goes live.
I need staff access to the store and the tag or consent tool, plus your adviser’s classification of each tool. Storefront and theme work beyond cookie consent is on the Shopify developer page.
#Send me your store
If your Bologna store sells to Italian visitors, send the store address, the tools that set cookies and your deadline through the contact form. The classification of each tool stays with you and your adviser.