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.
Next.js developer in Thessaloniki and the Greek cookie rule
A Next.js site is mostly JavaScript that a browser downloads and runs, and every third party script in it can read or write information on the visitor’s device. In Greece the rule for that is not buried in a general privacy policy. It is one paragraph of a telecom privacy statute, and the supervisory authority publishes its own portal as a worked example. This page reads both and maps them to the App Router. It is engineering context, not legal advice.
Which Greek law covers cookies?
The Hellenic Data Protection Authority (HDPA) describes its remit on its legal framework page: the GDPR, Law 4624/2019 (implementing measures, in force without amendments according to the HDPA), and Law 3471/2006 for electronic communications. Law 3471/2006 transposes Directive 2002/58/EC, the ePrivacy Directive, as amended by Directive 2009/136/EC.
The cookie rule is Article 4(5), in the English translation the HDPA publishes. Its content, in short:
- Storing data on, or gaining access to information already stored in, a subscriber’s or user’s terminal equipment is allowed only with the user’s consent, given after clear and detailed information.
- Consent may be given through browser settings or another application.
- Technical storage or access is not blocked when its sole purpose is conveying a communication over an electronic communications network, or when it is necessary for an information society service the user explicitly requested.
- An act of the Authority sets out in detail how the information is provided and consent is declared.
Two consequences for a build. First, the rule is about the act of storing or reading, so it covers localStorage and fingerprinting scripts as much as cookies in the narrow sense. Second, the exception is tied to a service the user explicitly requested. A session cookie behind a login qualifies. An analytics tag does not become necessary because the business wants the numbers.
How does the HDPA sort its own cookies?
The Authority’s portal publishes a cookie policy that works as a template. Its banner offers four groups: Necessary, Matomo, LinkedIn and Twitter, with the buttons “Reject all” and “Accept selected cookies”. The policy states that optional cookies are used only with consent.
The necessary group holds a session cookie for registered users of its online services, plus cookies that store the visitor’s choices. The preference cookies named on the policy page last six months: the banner cookie, the Matomo consent cookie, and the LinkedIn and Twitter consent cookies. After six months the banner appears again. The policy states that mandatory cookies do not require consent.
The audience measurement group is Matomo, hosted on the Authority’s own server. The policy describes two settings: IP address masking, which replaces each of the last three bytes with zero, and respect for the browser’s Do Not Track option. The Matomo cookies it lists are:
| Cookie | Purpose on the policy page | Duration |
|---|---|---|
_pk_id | Unique visitor number to count visits | 13 months |
_pk_ses | Temporary recognition of the visit | 30 minutes |
_pk_testcookie | Checks that the browser supports cookies | Seconds |
_pk_ref | Site the visit came from | 6 months |
The pattern is useful as a spec for a product: a small necessary group, every analytics or social tool in its own category, a visible rejection path, and a stored choice that expires and is asked again. It also shows a self-hosted analytics tool with masked addresses, which is a design choice a team can copy without copying the legal conclusion.
Consent gated scripts in the App Router
Next.js documents next/script loading strategies: beforeInteractive, afterInteractive (the default), lazyOnload and an experimental worker. The docs list cookie consent managers among the scripts suited to beforeInteractive. A consent gated tag is the opposite case: it should not exist in the page until the choice is stored.
The simplest shape keeps the decision on the server. The cookies function is async in Next.js 15 and later, and a Server Function can write the choice. The cookie lifetime below is 180 days, roughly the six months the HDPA uses.
// app/actions.ts
"use server";
import { cookies } from "next/headers";
export async function saveConsent(formData: FormData) {
const store = await cookies();
const granted = formData.get("analytics") === "granted";
store.set("analytics-consent", granted ? "granted" : "denied", {
maxAge: 60 * 60 * 24 * 180,
path: "/",
sameSite: "lax",
secure: true,
});
}// app/layout.tsx
import { cookies } from "next/headers";
import Script from "next/script";
export default async function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
const store = await cookies();
const analytics = store.get("analytics-consent")?.value === "granted";
return (
<html lang="el">
<body>
{children}
{analytics && (
<Script
src="https://stats.example.com/matomo.js"
strategy="afterInteractive"
/>
)}
</body>
</html>
);
}The trade-off is documented. Without Cache Components, using cookies in a layout or page opts the route into dynamic rendering. A marketing site that is otherwise static loses static output for every route under that layout. One way out is to read the consent state in a client component and render the tag from there, which leaves the layout static. Either way the third party script stays absent until the visitor chooses, which is the property Article 4(5) cares about.
A banner built this way also needs its form to work without client JavaScript, a reject button as prominent as the accept button, and a way to change the choice later. The HDPA portal’s banner offers rejection in one click, which is a reasonable benchmark.
What goes in the consent inventory?
Before launch, the finished site is crawled and every domain it contacts is listed, split into three groups, in the same way the HDPA policy splits its own.
- Necessary: session and security cookies, the consent cookie itself, load balancing if any.
- Optional, own infrastructure: self-hosted analytics, with masked addresses where the tool supports it.
- Optional, third party: social embeds, maps, video, advertising tags, chat widgets, A/B testing.
Fonts are the usual surprise. A font loaded from a third party host sends the visitor’s address to that host on every first visit. According to the Next.js docs, next/font downloads CSS and font files at build time and self-hosts them with the static assets, so the browser sends no requests to Google. Maps and video load after a deliberate click on a placeholder.
The inventory is handed to the client and their adviser, who decide what needs consent. That decision is not an engineering one.
Does the HDPA reach AI features too?
The HDPA’s legal framework page says that Law 5321/2026 gives the Authority a central role in implementing the AI Act in Greece. It is named as market surveillance authority for AI systems under the prohibited practices, the high risk systems listed in Annex III, and the systems subject to the Article 50 transparency obligations. It is also the single point of contact for Greece with the European Commission.
For a product team in Thessaloniki adding a chat assistant to a Next.js app, the same authority that reads the cookie banner may read the disclosure that the user is talking to an AI system. The page also notes that Regulation (EU) 2026/1744 amends and simplifies parts of the AI Act, so the classification of a given feature should be checked against the current text, not against this summary.
The HDPA is additionally designated under Law 5099/2024, as amended, for parts of the Digital Services Act: advertising transparency, the ban on profiling based ads that use special categories of data, and the protection of minors online. A site that shows ads based on profiling should know that a second set of rules sits next to the cookie rule.
Remote work, one hour ahead of Gdynia
Work happens remotely from Gdynia, one hour behind Thessaloniki. The consent inventory and every decision on it stay in writing. When personal data is involved, a written Art. 28 GDPR processor arrangement comes first, and changes run on a staging copy that needs written sign-off before going live. At handover the repository, component library and runbooks belong to the client.
For a Next.js build in Thessaloniki that needs a consent flow and a domain inventory from the first sprint, send the scope through the contact page. A site that keeps its content in a CMS is covered on the headless CMS developer page.
Selected projects
Examples of my work.
Portbrzezno.pl - Adventure Rope Park Website
The Port Brzeźno Rope Park is a place where both children and adults can experience an unforgettable adventure at height with a good dose of adrenaline in Gdańsk, Poland.
QUALITY WATCH - Mystery Shopping & Customer Experience Solutions
The Quality Watch project was created with the aim of presenting the services of a company specializing in improving customer service standards, quality management, customer experience, customer journeys and customer intelligence.
Real Estate Platform: DUNE CITY
The Dune City website was built for a prestigious apartment complex located on the 10-kilometre spit separating the Baltic ...
WordPress support & development in Thessaloniki
See also in Greece
Need this service: Next.js developer in Thessaloniki?
Describe your project by e-mail. I reply within 24 hours.
Describe your projectExplore other WordPress services and knowledge base
Migration to Astro, Next.js, and headless WordPress.
WooCommerce sync with ERP and wholesale systems.
Business process automation around WordPress and company systems.
Library of concrete automation use cases.
Headless WordPress, Sanity, Strapi, and Contentful with Astro or Next.js.
Astro, MDX, edge delivery, and Core Web Vitals measured on real traffic.
Custom WordPress engineering and architecture.
Scalable headless, ERP, and AI architecture for enterprise.
Related categories
Supporting articles

Six to sixteen weeks for typical engagements, with a four-phase shape: discovery, scoping, build and cutover, tuning. The variables are catalogue size, integration count, URL preservation, and editorial team readiness, not framework choice.

A definitive 4-year Total Cost of Ownership (TCO) analysis, real-world Core Web Vitals benchmarks, Astro 7 GraphQL APQ architecture, and a 10-point executive decision matrix for choosing between decoupled and traditional WordPress.

The Shopify Plus vs WooCommerce headless decision in 2026 is no longer a binary "platform vs custom" trade-off. Both can run headless, both integrate AI, both ship at the edge. The real axes are control, total cost over five years, and exit strategy. This article walks the matrix with confirmed platform facts.