add-private-metrics

1.0.2 • Public • Published

Add private metrics extension for EverShop

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.

Installation guide

Step 0: Install the Evershop application

There are three approaches to install the Evershop application, please refer to:

Step 1: Install the extension using npm:

npm i add-private-metrics

Step 2: Enable the extension

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
      }
    ]
  }
}

Testing guide

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.

Package Sidebar

Install

npm i add-private-metrics

Weekly Downloads

2

Version

1.0.2

License

GPL-3.0-or-later

Unpacked Size

81.5 kB

Total Files

41

Last publish

Collaborators

  • grebethzy