0.0.20 • Published 6 years ago
@mlx/ga v0.0.20
GA
Allows you to fetch data from Google analytics. Combined with @mlx/parser
you can aggregate the route information and map it to your application's parametrized routes:
const { fetch } = require('@mlx/ga');
const { parseRoutes, ProjectType } = require('@mlx/parser');
const { writeFileSync } = require('fs');
const key = require('./credentials.json');
const viewId = '000000000';
const applicationRoutes = parseRoutes('tsconfig.app.json', ProjectType.Angular);
fetch({
key,
viewId,
period: {
startDate: new Date('2016-1-1'),
endDate: new Date('2018-2-24')
},
formatter: r => r.replace('/app', ''),
routes: applicationRoutes.map(f => f.path)
}).then(g => {
writeFileSync('data.json', JSON.stringify(g, null, 2));
});
For more details visit https://github.com/mgechev/mlx.
License
MIT
0.0.20
6 years ago
0.0.19
6 years ago
0.0.18
6 years ago
0.0.17
6 years ago
0.0.16
6 years ago
0.0.15
6 years ago
0.0.14
6 years ago
0.0.13
6 years ago
0.0.12
6 years ago
0.0.11
6 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago