Hi,
custom untested script can be done through Embedding Custom Code on Your Site | Help Center | Wix.com
currently there is no straight forward integration we can guide you through.
try invoking global javascript code using the onclick event, i’d use chrome dev tools debugging to try and make it work
please share if you are able to make it work,
Shlomi