create_an_interactive_e-learning_template
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
create_an_interactive_e-learning_template [2017/07/29 21:51] – [How to track users watching an awareness video] lucy | create_an_interactive_e-learning_template [2020/05/26 16:58] – [Troubleshooting] lucy | ||
---|---|---|---|
Line 27: | Line 27: | ||
b) If you are working on an awareness website within a campaign then click here (see pic) | b) If you are working on an awareness website within a campaign then click here (see pic) | ||
- | {{ q2.png?600 }} | + | {{ :: |
Lucy then will automatically inject a JavaScript called /js/quiz.js to your template, making quiz-‐related functions available | Lucy then will automatically inject a JavaScript called /js/quiz.js to your template, making quiz-‐related functions available | ||
Line 76: | Line 76: | ||
{{ video_stats_sample.png? | {{ video_stats_sample.png? | ||
+ | |||
+ | ===== Extended method of tracking the end of the quiz ===== | ||
+ | |||
+ | Starting with version Lucy 4.6, there is a new option called “Use extended method of tracking the end of the quiz”, which is designed to track when the user finishes the quiz. The option is available on the Awarness Template editing page: | ||
+ | |||
+ | {{ :: | ||
+ | |||
+ | Default state: disabled. | ||
+ | |||
+ | In order for this method to work, you will need to add a call to an additional function " | ||
+ | |||
+ | :!: Attention! Enabling this option without calling the " | ||
+ | By default, Lucy marks each recipient as " | ||
+ | |||
+ | ==== An example of usage the function lucyQuizEnd() in awareness training ==== | ||
+ | |||
+ | Using the awareness template " | ||
+ | |||
+ | Add a new variable " | ||
+ | |||
+ | < | ||
+ | var correctAnswersCount = 0; | ||
+ | </ | ||
+ | |||
+ | {{ :: | ||
+ | |||
+ | Find the place in the code where function lucyQuizAnswer is called and insert a call of the function lucyQuizEnd after it with the condition as shown below. | ||
+ | |||
+ | < | ||
+ | correctAnswersCount++; | ||
+ | if (correctAnswersCount >= 5) { | ||
+ | lucyQuizEnd(); | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | {{ :: | ||
+ | |||
+ | Save the template and run the campaign. After 5 quiz questions are answered correctly, the recipient will be marked as " | ||
+ | |||
+ | :!: **Attention**. Using the function // | ||
+ | |||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | __Issue.__ Lucy marks the recipients as ' | ||
+ | __Solution__: | ||
+ | |||
+ | __Issue.__ Lucy does not mark the recipients as ' | ||
+ | __Solution__: |
create_an_interactive_e-learning_template.txt · Last modified: 2021/04/30 11:38 by lucy