1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 21:35:23 +02:00

feat(analytics): add apis for event tracking (#5298)

* feat(analytics): add apis for event tracking

feat(api): fetch instanceID

feat(state): set instance id and version on matomo

refactor(state): export validation of app state

feat(analytics): update dimensions

refactor(analytics): move matomo to module

feat(analytics): disable analytics on non production

feat(analytics): track event metadata

refactor(analytics): clean push function

refactor(analytics): rename init function

feat(analytics): track user role

feat(analytics): track user global role

fix(stacks): remove event tracking for stack create

* style(analytics): remove TODO

* feat(build): add testing env
This commit is contained in:
Chaim Lev-Ari 2021-08-11 01:45:53 +03:00 committed by GitHub
parent 11d555bbd6
commit 9be0b89aff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 251 additions and 282 deletions

View file

@ -4,7 +4,7 @@ import '@babel/polyfill';
import angular from 'angular';
import './matomo-setup';
import './assets/js/angulartics-matomo';
import analyticsModule from './angulartics.matomo';
import './agent';
import './azure/_module';
@ -39,7 +39,7 @@ angular.module('portainer', [
'rzModule',
'moment-picker',
'angulartics',
'angulartics.matomo',
analyticsModule,
]);
if (require) {