-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/matomo trackers #12
Conversation
src/components/Login.vue
Outdated
"login", | ||
"Success", | ||
// OC Id : | ||
_.get(this.user, ["organismeCertificateur", "nom"], "Utilisateur non OC") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Du coup ça veut dire qu'on ne pourra pas faire le distingo des agriculteur·ices ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est possible, je voulais tester d'abord avec ceci voir si on arrivait à classer les évenements par OC sur Matomo. On peut aussi suivre le(s) groupe(s) auxquel appartient la personne qui se connecte, et leur organisme certificateur.
src/components/Login.vue
Outdated
// Name, the name of the variable, for example: Gender, VisitorType | ||
"login", | ||
"Failed", | ||
// Value, for example: "Male", "Female" or "new", "engaged", "customer" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Value, for example: "Male", "Female" or "new", "engaged", "customer" |
src/components/Login.vue
Outdated
@@ -107,6 +116,13 @@ export default { | |||
this.loading = false; | |||
this.loader = null; | |||
this.loginFailed = true; | |||
window._paq.push(['trackEvent', | |||
// Name, the name of the variable, for example: Gender, VisitorType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Name, the name of the variable, for example: Gender, VisitorType |
"login", | ||
"Failed", | ||
// Value, for example: "Male", "Female" or "new", "engaged", "customer" | ||
error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ici ça veut dire qu'on track l'objet JavaScript ; ça se sérialise bien ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
L'erreur n'est pas un objet JavaScript pour je ne sais quelle raison. En cherchant, ça vient peut être d'ici : axios/axios#960 (comment)
Ajout de trackers sur la connexion :