HI Peter Lewis I am not an expert in HTML but tried to do some things, the API is unable to read 'window.location.href' and insert the site URL from where this API is being called. Replacing the HTML function with a hard coded value works fine as expected…