NSPlug / Magento 2 extension
NS GDPR for Magento 2: User Guide
Install the extension, activate your license, configure cookie choices, and review privacy requests. This guide covers release 0.2.19 and applies to Magento Open Source, Adobe Commerce, and Adobe Commerce Cloud.
The extension provides controls for a store-specific privacy program. Review your notices, tracker inventory, retention settings, and legal requirements before enabling them on a production store.
1. Before you install
- Magento 2 with a compatible PHP release. The package requires PHP 8.3 through 8.5 and
nsplug/core:^1.0. - A working Magento backup and a staging copy of your storefront. Test the banner and optional resources on the theme you use.
- A published privacy policy URL and a reviewed list of optional scripts, frames, images, and cookie names.
- For guest request verification, working transactional email delivery.
Open Source was tested on Magento 2.4.8-p5. The 0.2.19 Commerce build passed guest access, deletion request, and admin CSV export checks on Adobe Commerce 2.4.9. Full Hyvä and Hyvä Checkout testing is pending.
2. Install with Composer or ZIP
Composer (recommended)
Sign in to your NSPlug account and generate a download username and token under My Account → Composer access. Run these commands from the Magento root as the Magento file owner. Composer will prompt for the credentials; keep them out of composer.json and source control.
composer config repositories.nsplug composer https://www.nsplug.com/composer
composer require nsplug/module-gdpr:^0.2
bin/magento module:enable NSPlug_Core NS_Gdpr
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
On production stores, deploy static content as required by your Magento deployment process, then check bin/magento setup:db:status. The extension starts disabled until you activate the license and enable its controls.
Manual ZIP
With an active updates entitlement, download both NSPlug Core and NS GDPR ZIPs from My Account → Composer access. Extract the Core module into app/code/NSPlug/Core and the GDPR module into app/code/NS/Gdpr, preserving each archive’s root files. Then run the Magento enable, upgrade, compile, static deployment, and cache commands above. Do not install the same module from both Composer and app/code.
3. Activate the license
- In Magento admin, open NSPlug → GDPR license.
- Enter the license key and token issued to your NSPlug account, then select Activate.
- Confirm the page reports a verified license for this installation. The Open Source variation is for Magento Open Source; Commerce and Cloud variations are for Adobe Commerce installations.
- Open Stores → Configuration → NSPlug → Privacy and GDPR. Set the scope for the intended website or store view before changing values.
The licensed privacy controls keep running on this installation if an update or support term ends. Renewal maintains access to releases and support.
4. Configure cookie choices
General
Set Privacy policy URL, Policy version, and the privacy contact email. Change the policy version when purposes or the inventory change so visitors are asked again.
Cookie consent
Enable privacy features and Show cookie choices. Review the banner text, policy link, and first-visit Functional checkbox setting.
Appearance
Choose the title, button text and classes, policy details display, width, position, colors, typography, and shadow.
Essential is always on. Visitors can allow all optional categories, reject them, or save a selection; the footer link lets them reopen choices later. The separate cookie inventory page on your Magento store is /nsgdpr/privacy/cookies/.
5. Inventory and test optional trackers
Under Cookie consent → Optional tracker inventory (JSON), add one entry per optional service. Each entry needs an ID, name, provider, category, purpose, duration, and a specific match string. Add exact first-party cookie names when known. Categories are functional, analytics, or marketing.
[
{
"id": "video-provider",
"name": "Product video",
"provider": "Your video provider",
"category": "functional",
"purpose": "Play embedded product videos",
"duration": "Check provider documentation",
"match": "video.example.com/",
"cookies": []
}
]
The example is a template; replace it with your actual service and verified cookie data. The inventory page shows only services configured for your store. The module holds matching rendered and common dynamically inserted scripts, images, and iframes, plus exact listed first-party cookie writes, until the relevant category is allowed.
Google Consent Mode v2 and Microsoft UET/Clarity signals follow the saved categories. Review provider-specific behavior on your own theme and tag setup.
6. Forms and privacy requests
Optional form consent
Under Optional form consent, enter purpose-specific checkbox text and choose standard registration, contact, or newsletter forms. The checkbox is optional and unchecked. Enable this only after you have reviewed the purpose and your privacy policy.
Customer and guest requests
Signed-in customers use their account privacy page to export data or submit a password-confirmed deletion request. Guests use /nsgdpr/privacy/guest/, enter one order number and its billing email, then confirm a one-time email link. A verified access request downloads that order’s CSV; a verified deletion request enters the admin review queue.
Admins review requests under NSPlug → Privacy requests. Check order status, retention requirements, and any third-party extension data before approving deletion. The built-in anonymizer covers specified Magento core customer and sales records; custom extension tables and linked payment or Vault data need separate review.
7. Reporting, retention, and launch checks
The admin request page shows statuses and recent consent counts and can export a CSV report. Under Retention, scheduled anonymization is off by default. Set a reviewed order retention period and confirm eligible final-order behavior in staging before enabling it. Geographic rules are optional and require trusted proxy location headers; unknown locations require consent.
Launch checklist
- Verify the license, policy URL, policy version, and correct store scope.
- Check the banner on desktop and mobile, including reopen, reject, save, allow, and withdrawal.
- Inspect network traffic and cookies before and after each consent choice, including cached pages.
- Confirm email delivery and a disposable guest access request before relying on guest workflows.
- Review third-party data stores and retention before processing a deletion request.
If the banner is missing, check that both Enable privacy features and Show cookie choices are on, the license is verified, and Magento caches are refreshed. If a video or tag remains blocked, confirm its inventory category and the visitor’s saved choice. For help, contact NSPlug Help Center.
