NOTE: This tip will work only for wordpress videos.
Please go to wp-admin -> wplms -> footer -> google analytics code.
<script> jQuery( 'body' ).delegate( '#mark-complete', 'media_complete', function(event){ jQuery('#mark-complete').trigger('click'); setTimeout(function(){ jQuery('#next_unit').trigger('click'); var esc = jQuery.Event("keydown", { keyCode: 27 }); jQuery("body").trigger(esc); },3000) }); </script>