1.1.8 • Published 5 years ago

viewgle v1.1.8

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

viewgle

A small analytics platform for express and mongo to leverage server side rendering. If you want to add viewgle to your client side application see our plugins:

npm.io

  1. Vue: viewgle-vue
  2. React: Coming soon...

Usage

In your express app file:

  1. Set up your viewgle options like so:
let opts: {
  dbConnect: process.env.MONGO_CONNECT_STRING, // this is on you
  skipAssets: true
};
  1. Tell your express app to use the viewgle router - this will create a catch all for collecting data across all urls in your app, this will also create a /viewgle route to view your analytics:
// use the viewgle router
app.use(viewgle.router);

// set up viewgle options
app.use(
  viewgle.define({
    opts
  })
);

Available options:

OptionTypeDescription
dbConnectStringThe string value for your mongodb database connection
skipLocalhostBooleanBoolean for skipping logging of localhost url or not
skipAssetsBooleanBoolean for skipping logging of assets like .js and .css
1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago