Skip to content

Commit

Permalink
feat: tout les trackEvent sont maintenant fait avec `Piwik.getTrack…
Browse files Browse the repository at this point in the history
…er` (#3934)
  • Loading branch information
baptou12 authored Aug 30, 2023
1 parent 2a97cb7 commit 266a0ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/components/action-buttons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,11 @@ const localOnSubmit = (event) => {
}
const goBack = () => {
window._paq?.push([
"trackEvent",
window.Piwik?.getTracker()?.trackEvent(
"Parcours",
"Bouton précédent",
route.fullPath,
])
route.fullPath
)
const answerIndex = getAnswerIndexByPath(
store.simulation.answers.current,
route.fullPath
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/state-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const StateService = {
action: "Navigation cancelled",
label: failure.toString(),
},
this.$matomo
window.Piwik?.getTracker()
)
} else {
throw new Error(failure)
Expand Down

0 comments on commit 266a0ac

Please sign in to comment.