I see that the text box is inserted into the page after the snippet is inserted. In that case, sadly the {site} command will not work as it is only computed when the snippet is first run.
We hope to support dynamic {site} command but we have no ETA on that yet. See relevant discussion here: