How to Call a function loaded in a header script

I’ve loaded an analytics script as part of the header and it is working fine.

However, I would like to call a function within this script from wix code. How can I do this?

Can I import something on the page code or something?

Is there any news for this?