Run custom actions on unit load

You can run or add your custom scripts or actions on unit load on “unit_travaerse” event .
Example:

$('.unit_content').on('unit_traverse',function(){
 
//Your custom code
 
});

Write your scripts in the above function and add this script in wplms from wp-admin-> wplms -> Footer -> Google Anaylitics code:

<script>

$(‘.unit_content’).on(‘unit_traverse’,function(){

//Your custom code

});
</script>