Invoking code from header

Hey guys, I am trying to invoke some javascript code in the header of my web page and I can’t see how to do it. The instructions are found here: https://www.zoho.com/salesiq/help/developer-section/js-api-visitor-email.html
What I want to do is take the hard-coded email address from the example and instead use the current user’s email address using methods I have in my Wix client-side code - something like, getCurrentUsersEmail() which I define somewhere in my public/… code. So the final code I’m embedding into the header would like like this:

<script>
$zoho.salesiq.ready=function() {
$zoho.salesiq.visitor.email(getCurrentUsersEmail()); }
</script>

Obviously that won’t work as written (need to declare how to find getCurrentUsersEmail) but hopefully you get the idea. I appreciate any tips/tricks.

Does anyone know how to invoke client-side Wix code from the header of a web page? Surely this is not that unusual…

Hi :raised_hand_with_fingers_splayed:

You need to post a message to the HTML component on your page.

Please take a look at this question .