Dear Xerte team,
a wholehearted thanks for providing such an excellent tool! We're using your software to provide interactive virtual assistants, and it's working fantastically well for us.
I'm writing today with a technical question: We'd like to find out more about how users navigate the decision trees we provide, in order to uncover pain points, drop-out, and the like. To this end, we'd like to embed event tracking within Xerte via small JavaScript snippets. (we already collect the overall number of users through our off-the-shelf site statistics package, and we'd like to extend that to some finer-grained metrics)
What I'm struggling with is that there doesn't seem to be a script option in decision tree items, so I didn't find a way to add code that would run when a particular decision is presented. I've also started digging in the Xerte client-side JS, in particular the `state` and `decision` global variables, as well as `x_currentpage` and `x_currentpageXML`. However, all of these appear to refer to the overall decision tree rather than any of the nested questions. I finally tried patching the `x_navigateToPage` function, but it doesn't seem to get called in between decision tree steps.
Kind folks of Xerte, can you help? Again, the goal is to run some JS on question transitions, and I'd much appreciate any pointers in that direction. I'd be glad to try things out, and answer any questions that come up or explain more clearly if you'd like!
Thanks for your support, and for all that you do!
-Felix