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:
- Vue: viewgle-vue
- React: Coming soon...
Usage
In your express app file:
- Set up your viewgle options like so:
let opts: dbConnect: processenvMONGO_CONNECT_STRING // this is on you skipAssets: true;
- 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 routerapp; // set up viewgle optionsapp;
Available options:
Option | Type | Description |
---|---|---|
dbConnect |
String |
The string value for your mongodb database connection |
skipLocalhost |
Boolean |
Boolean for skipping logging of localhost url or not |
skipAssets |
Boolean |
Boolean for skipping logging of assets like .js and .css |