Since nobody answered to this question in the 'General Forum', I give it another try here:
Hi there,
I am using a Chat-Tool (tawk.to) to be able to chat with my visitors / students.
Currently they have to enter their name manually so I can identify them.
There is an option to pass the Username and Email to the tawk.to script by adding the following script to the 'additional HTML' section:
<script type="text/javascript"> var Tawk_API=Tawk_API||{}; Tawk_API.visitor = { name : 'visitor name', email : 'visitor@email.com' }; var Tawk_LoadStart=new Date(); </script>This works fine, but now I need to know how I can access the variable 'username' and 'email' that are used by Moodle within that script (instead of visitor name above, because few of my students are called 'visitor name' )
How can I pass these variables to the script?
Stefan
Moodle 3.8.3