This extension is implemented based on another npm package - Evershop @thenguyen.
It allows you to track the essential e-commerce user actions: view, click, add to cart, checkout and order.
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
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
}
]
}
}
The extension has preloaded some products for testing purpose. It also pre-set the shipping zone to include the US.
User can directly create a new account and perform the five actions, which will be reflected in the backend database.
Use psql -U postgres -d evershop
to check the updates.