This extension is implemented based on two npm package - Evershop @thenguyen and add-private-metrics @grebethzy.
add-private-metrics allows you to track the essential e-commerce user actions: view, click, add to cart, checkout and order. Based on this, display-private-metrics illustrates those collected actions to users, granting user with right to be forgotten by GDPR.
Note: This extension requires EverShop version 1.0.0-rc.9 or higher.
There are three approaches to install the Evershop application, please refer to:
- NPM package published: https://www.npmjs.com/package/@evershop/evershop
- Github repository: https://github.com/evershopcommerce/evershop
npm i add-private-metrics
npm i display-private-metrics
Edit the config/default.json
file in the root directory of your EverShop installation and add the following line to the extensions
section:
{
...,
"system": {
...,
"extensions": [
...,
{
"name": "add-private-metrics",
"resolve": "node_modules/add-private-metrics",
"enabled": true,
"priority": 10
},
{
"name": "display-private-metrics",
"resolve": "node_modules/display-private-metrics",
"enabled": true,
"priority": 10
}
]
}
}
An account for testing purpose has been implemented: Email: test@test.com Password: 123456
Some fake actions has been added to this account for illustration purpose.