Regulatory briefing
An e-commerce website collects personal data at every stage: browsing, account creation, ordering, payment and after-sales service. Where an e-commerce website targets Moroccan and European customers, two regimes may apply simultaneously. Their application depends on the controller’s place of establishment and on the customers the website targets.

The texts applicable to an e-commerce website
In Morocco, Law No. 09-08 on the protection of individuals with regard to the processing of personal data governs the collection and use of data. The National Commission for the Control of Personal Data Protection supervises its implementation.
In the European Union, Regulation (EU) 2016/679, known as the General Data Protection Regulation, applies to controllers established in the Union. It also applies to controllers established outside the Union that offer goods or services to persons who are in the Union. The same applies where such controllers monitor the behaviour of those persons. In addition, Directive 2002/58/EC governs the use of cookies and other trackers.
On 19 November 2025, the European Commission presented a proposal for a regulation known as the “Digital Omnibus” (COM(2025) 837). That proposal (procedure 2025/0360(COD)) would amend both texts. The Council adopted its negotiating mandate on 21 October 2026, the European Parliament not yet having adopted its position. Pending the adoption and application of a final text, Regulation (EU) 2016/679 and Directive 2002/58/EC apply in their previous wording.
Common obligations of an e-commerce website
Both regimes rest on similar principles. These include specified and legitimate purposes, collection limited to the data necessary and information of data subjects. They also include limited retention periods, security of processing, and respect for the rights of access, rectification and objection. The e-commerce website must therefore publish a privacy policy setting out these elements in a clear and accessible manner.
Points of difference: formalities, transfers and trackers
Law No. 09-08 provides for prior formalities with the National Commission (notification or authorisation depending on the processing). It also lays down rules governing transfers of data abroad. In practice, the National Commission makes such transfers subject to prior authorisation, granted for each processing operation. That requirement covers even transfers to countries on its list.
Conversely, the European Regulation abolished general prior formalities in favour of an accountability approach. That approach relies on records of processing activities, impact assessments for high-risk processing and notification of personal data breaches. In the cases provided for, it also involves designating a representative in the Union for controllers established outside the Union.
As regards trackers, European law requires the prior consent of the user for trackers that are not strictly necessary. Several European supervisory authorities infer from this that refusing must be as easy as accepting. These include the Commission nationale de l’informatique et des libertés in France.
In Morocco, on 28 November 2025 the National Commission adopted Deliberation No. D-939-2025. That deliberation sets the model simplified notification for the processing of data derived from cookies placed on the user’s terminal. Personalised advertising cookies and social media sharing cookies require consent. The user gives that consent through a clear and explicit action, before placement of the first cookie. Conversely, personalising content according to the user’s previous choices does not require consent. Nor does audience measurement without a personal profile. Refusal must be possible and respected. In addition, the retention period of the data collected may not exceed six months. Finally, any profiling of users requires prior authorisation from the National Commission.
Practical implications for an e-commerce website
An e-commerce website open to both markets must map its processing operations. The mapping covers data collected, purposes, recipients, service providers and hosting location. It must also complete the formalities applicable in Morocco. Moreover, it must determine whether the European Regulation applies to its activity and draw the consequences. In addition, it must deploy a consent management tool for trackers. Finally, it must organise the handling of requests to exercise data subject rights.
Points of attention
- Verify the formalities applicable with the National Commission before going online.
- Regulate transfers of data to service providers established outside Morocco.
- Obtain valid consent for non-essential trackers.
- Limit forms to the data necessary.
- Provide for a personal data breach notification procedure.
References
- Law No. 09-08 on the protection of individuals with regard to the processing of personal data, promulgated by Dahir No. 1-09-15 of 22 Safar 1430 (18 February 2009), Official Bulletin No. 5714 of 7 Rabi I 1430 (5 March 2009) (official translation edition); Decree No. 2-09-165 of 25 Jumada I 1430 (21 May 2009) implementing it, Official Bulletin No. 5744 of 24 Jumada II 1430 (18 June 2009), p. 3571.
- National Commission for the Control of Personal Data Protection, Deliberation No. D-939-2025 of 28 November 2025 on the model simplified notification for the processing of personal data from cookies on a terminal.
- Regulation (EU) 2016/679 of 27 April 2016 (General Data Protection Regulation), OJ L 119, 4.5.2016, p. 1, in particular Article 3.
- Directive 2002/58/EC of 12 July 2002 (Directive on privacy and electronic communications), OJ L 201, 31.7.2002, p. 37.
See also: Checklist – E-commerce website compliance; Flash consultation. Information Systems & Digital Transformation practice.
General information document; it constitutes neither legal advice nor an opinion on a particular situation. References to legal texts should be checked against the version in force on the date of use.
Consulting firm not registered with any Bar; no representation before the courts and no act reserved to the regulated legal professions.
