For all the others wondering, open WIX Editor → on the left where your menu is, the last one is called “Code” with the following symbol { } . Click on it, then click “Start codng” and paste the code provided by SgtBatten with your API key inserted.
@SgtBatten I found out that the script does not work when entering the domain from FB ads for example, do you have the same issue?