Trying to set up custom events to track quiz answers.
I am having a hard time knowing what javascript to use to set up trigger on Storyline 360 slide to track which answer a user has clicked. Could someone point me in the right direction please?
Reply
Posted on 10/8/2024
Please type your reply.
@support
Hi. The question is posted under User Flow, assuming this is correct: There's only one JavaScript trigger in User Flow, you can click "Show setup instructions" and copy the code.
And of course feel free to respond with any specific questions that come up.
Reply
Posted on 10/8/2024
@jillsharlock
Thank you for your reply. I did set up that javascript from the set up instructions when I first created the slides. I added that JS to every slide but still not pulling in clicks. I can see that someone accessed the quiz. I can see everything on the left hand side list of sections up to Time on Slide. After that the data is empty for the following sections: Slide Clicks, Player Clicks, Custom Events.
Reply
Posted on 10/9/2024
@support
Note that the setup instructions say to add the trigger on the master, not every slide in the project. It's probably not an issue the way you did it, just creates unnecessary triggers all over.
Note that Slide Clicks, Player Clicks, and Custom Events reports all have a "Select a slide" dropdown. Are you checking the correct slide and still not seeing any data?
One more thought: if you have a Submit button, the clicks report is probably not 100% helpful because someone may click around on different answers before submitting. In this case, maybe you're better off setting up custom events when the Submit is clicked. For example:
userflowEvent('Question 1', 'The text of the answer');
or
let player = GetPlayer(); userflowEvent('Question 1', player.GetVar('submitted_answer'));
If you want, feel free to share the link to your .story file, I can set up one question for you as an example you can follow with the rest of the questions.
Reply
Posted on 10/9/2024
@jillsharlock
I so very much appreciate your help with this! Unfortunately, I am unsure how to share the link to the story file with you. We add these storyline 360 slides as a block in Rise 360 and wrap in scorm package to upload to our LMS. Is there a way for me to get the file to you another way?
I did the slides under Select a Slide dropdown and still no data.
I am also testing out the data pull for the beta Rise 360.
We are trying to test out all of the analytics functionality of this tool - if we can get it to work for what we hope to purchase a plan. But, need to make sure it all works first. Is it possible to schedule a demo/discovery call with you all to explain our use case? Thank you again!!
Reply
Posted on 10/9/2024
@support
You can either upload the file to a file sharing service such as Dropbox and paste a link in a response here or send the link via the Custom Development portal at https://custom.cluelabs.com/
Reply
Posted on 10/9/2024
@jillsharlock
Awesome - here is a dropbox link - hope it works! :) [link]
Reply
Posted on 10/9/2024
@support
Here's your file: https://we.tl/t-IGR8eUxJ2C Both pages are done, you should see the selected checkboxes listed under Custom Events. If you need to edit the names of the events, look for the JS triggers on the Next button.