Shopify developer in Lisbon

Shopify for businesses in Lisbon, delivered remotely by one developer.

Shopify developer

My place in the WordPress community

  • I have had a wordpress.org account since 2006.
  • I contributed to WordPress core for versions 7.0 and 7.1.
  • I maintain 30 plugins on wordpress.org.
  • I organise and speak at WordCamps.
  • I have attended every WordCamp Europe from 2017 to 2026.
  • Local WordPress meetup: WordPress Lisboa

My WordPress.org profile

Cookies and tracking scripts are already running by the time a Shopify store takes its first order. In Portugal, one article of the privacy law for electronic communications governs that. I am Mariusz Szatkowski, a developer from Gdynia, and I work with Lisbon stores remotely and in writing. I am not a lawyer: which cookie needs consent is for you and your adviser to decide. I build the Shopify setup so that the decision is enforced in the theme and I can show where each script is gated.

Vasco da Gama Tower rising over Parque das Nações

Image by Haydn Blackey of Cardiff, licensed CC BY-SA 2.0, via Wikimedia Commons.

#Which Portuguese law governs cookies on a Shopify store?

Lei n.º 41/2004 of 18 August 2004, the Portuguese privacy law for electronic communications. Its art. 5 is the cookie rule. Lei n.º 46/2012 of 29 August 2012 gave art. 5 its current wording. The title of Lei 46/2012 says it transposes Directive 2009/136/EC in the part that amends Directive 2002/58/EC. It entered into force on the day after publication, so on 30 August 2012.

The consolidated text on the Lisbon prosecutor’s legal database (pgdlisboa.pt) lists Lei 46/2012 as the only amending act for art. 5, and the CNPD links to that database as its source for Lei 41/2004. I read the 2012 gazette and that consolidated text. I did not read the Diário da República consolidated page, because it needs a browser script to display, so check it for any change after the date of my reading.

Art. 5 is not limited to cookies. It speaks of storing information, and of the possibility of access to information stored, on a subscriber’s or user’s terminal equipment. Pixels, local storage and similar techniques fall within that wording, in my reading.

#What does art. 5 of Lei 41/2004 require?

Art. 5(1): storing information and accessing information stored on the terminal equipment of a subscriber or user is allowed only if they gave their prior consent, based on clear and complete information, in line with the Personal Data Protection Law, in particular about the purposes of the processing.

Three points follow for a store:

  • Consent comes first. A script that sets a cookie and then asks is outside the wording.
  • The information has to be clear and complete, and it has to name the purposes.
  • The article refers to the data protection law for the information requirements. The text still uses the old term, so how the GDPR defines valid consent is a question for your adviser.

Art. 5(2) says the article and the previous one do not prevent technical storage or access:

  1. whose sole purpose is to transmit a communication over an electronic communications network, or
  2. that is strictly necessary for the provider to deliver an information society service the subscriber or user expressly requested.

On a Shopify store, the cart and the checkout session belong to the second group, because the shopper asked for them by shopping. An advertising pixel or an analytics script is another matter. The word “strictly” matters: convenience for the merchant is not the test.

Sorting scripts into necessary and not necessary is a decision for the shop owner. The setup follows the decision: a list of every script and its purpose, and a gate for each one that is not necessary.

The CNPD (Comissão Nacional de Proteção de Dados). Art. 15(1) gives it the power to open, investigate and close offence proceedings and to apply warnings, fines and additional sanctions for breaches of, among others, art. 5. Art. 13-D lets the CNPD and ICP-ANACOM issue regulations, orders and recommendations within their areas.

Art. 14(1)(e) makes failing to observe the conditions of storage and access in art. 5 an offence. The fine is:

OffenderMinimumMaximum
Individual1,500 euros25,000 euros
Legal person5,000 euros5,000,000 euros

Art. 14(5) says negligence and attempt are punishable, with the minimum and maximum halved. Art. 14(4) lets the authority order the offender to comply, on pain of a recurring penalty, and a fine does not release the offender from the duty if compliance is still possible (art. 14(3)).

I looked and found none. The CNPD page of diretrizes lists five items: 1/2018 on the publication of students’ and staff data by higher education institutions, 1/2019 on election campaigns, 2/2019 on smart electricity grids, 1/2022 on electronic direct marketing communications, and 1/2023 on organisational and security measures. None concerns cookies. The orientations section of the CNPD site has no cookie item either.

Diretriz 1/2022, approved on 25 January 2022, is relevant for a store in another way. It covers email, SMS and similar marketing, which a store runs through its newsletter and checkout.

#What does the direct marketing rule mean for a store?

Art. 13-A of Lei 41/2004 makes unsolicited direct marketing by email, SMS and similar means subject to the prior and express consent of the subscriber who is a natural person, or of the user. Art. 13-A(3) allows a supplier that obtained a customer’s electronic contact details in the context of a sale to use them to market its own similar products or services, if the customer is clearly and explicitly offered a free and easy way to refuse, when the details are collected and in every message.

The CNPD’s Diretriz 1/2022 states the same split. With an existing customer relationship, marketing for analogous products needs no consent. For different products, or with no prior relationship, it depends on prior consent. This affects the email field at the Shopify checkout and any newsletter form.

In the admin: Settings, then Customer privacy, then Cookie banner in the Privacy settings section. These facts are from the Shopify Help Center:

  • With Use automated settings on, Shopify configures the banner for visitors in the UK and EEA when you have active markets there. Portugal is in the EEA.
  • In configured regions, Shopify collects non-essential data only after consent.
  • The banner can appear on the storefront, the cart, checkout and customer account pages.
  • Customers can change their choice through the banner, a policy link, or Cookie preferences in the footer menu when the banner is not shown at checkout.
  • Privacy features support the 32 languages available in checkout and themes, and content can be localised with Translate & Adapt. Check the Portuguese banner text in the admin preview.
  • A third-party banner must use the same consent regions as Shopify. Shopify respects consent choices only from apps that integrate with the Customer Privacy API.

The brief for the Portuguese text is art. 5(1): the purposes named for each category, and consent given before the script runs. The refuse button needs the same prominence as the accept button. That last point comes from general data protection practice, not from art. 5 itself, so confirm it with your adviser.

Custom theme code and apps must respect the same consent state. From the Shopify developer documentation:

  • It is a browser JavaScript API at window.Shopify.customerPrivacy, loaded with loadFeatures.
  • Consent categories are preferences, analytics, marketing and sale of data.
  • Checks such as analyticsProcessingAllowed() and marketingAllowed() take merchant settings, visitor location and consent into account.
  • setTrackingConsent is called only after a visitor interaction, and Shopify cookies are never read or modified directly.
  • The visitorConsentCollected event fires when consent changes.

In a Liquid theme every script I add waits for the matching check and runs again on that event. A script that fires on page load whatever the consent is the usual defect in a theme built by someone else.

Settings, then Checkout. Shopify says you choose whether the marketing consent checkbox shows at checkout, at sign-in, or both, and which customer regions have the email checkbox preselected. You can leave no region preselected. The SMS checkbox cannot be preselected. Shopify adds that its automatic recommendations are not legal advice and that you are responsible for local law.

With art. 13-A in mind, whether to preselect anything for Portuguese customers is a question for your adviser. An unticked box is the setting that leaves the least to argue.

#Checklist for a Lisbon Shopify store

  • List every script, pixel and app that stores or reads information on the visitor device, with its purpose.
  • Decide with your adviser which items fall under art. 5(2).
  • Check the Cookie banner regions, text, language and the accept and refuse buttons.
  • Test in a clean browser: nothing non-essential fires before consent.
  • Match the regions of any third-party banner to Shopify.
  • Gate custom code with the Customer Privacy API checks.
  • Review the newsletter and checkout email consent against art. 13-A.
  • Run the clean-browser test again whenever the theme or an app changes.

#How does a project run?

  1. You send the store URL, a list of installed apps and pixels, your target markets and the date you need it.
  2. I write down the scope and my assumptions, with questions on the script inventory.
  3. I work on a development theme, and you check the banner and the script behaviour in a clean browser.
  4. Once you accept in writing, I publish the change and hand over a short note on the script inventory.

Access needed: a collaborator account on the Shopify store, nothing else. Other Shopify work is listed on the Shopify developer page.

#Send me your store

If your Lisbon store sells to Portuguese customers, send me the store address, the apps and pixels in use, the markets you sell to and your deadline through the contact form. The consent decision per cookie, and the wording of the banner, stay with you and your adviser.

See also in Portugal

Need this service: Shopify developer in Lisbon?

Describe your project by e-mail. I reply within 24 hours.

Describe your project

Latest Shopify developer articles

Nov 6, 2026

EU energy label in an online shop: UK and Ireland rules

Which products need an energy label online, what must sit next to the price, how the product information sheet and EPREL fit in, who enforces it in Ireland and the UK, and how to build it in WooCommerce and Shopify.