Skip to content

altitudelabs/analytics_module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

analytics_module

UGLY README will modify later

  1. require('analytics')

  2. in /server/config add analytics.js

module.exports = (mongoose) => { Analytics.init(mongoose); };

  1. use Analytics.send({data}) with {data} following schema format in index.js to save data

  2. use Analytics.getLogFilter to get time series array (x axis: timeline, y axis: value). Example: Analytics.getLogFilter({category: 'productView', action: 'click'}, 'days', '2016-11-10', '2016-11-20');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published