1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +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

@ -73,10 +73,10 @@ module.exports = function (grunt) {
]);
});
grunt.task.registerTask('devopsbuild', 'devopsbuild:<platform>:<arch>', function (p, a) {
grunt.task.registerTask('devopsbuild', 'devopsbuild:<platform>:<arch>:env', function (p, a, env = 'prod') {
grunt.task.run([
'config:prod',
'env:prod',
`env:${env}`,
'clean:all',
'copy:assets',
'shell:build_binary_azuredevops:' + p + ':' + a,
@ -99,6 +99,9 @@ gruntfile_cfg.env = {
prod: {
NODE_ENV: 'production',
},
testing: {
NODE_ENV: 'testing',
},
};
gruntfile_cfg.webpack = {