You can do something like this:
Start with two hidden divs: the first one will have a js condition (for example, onChange), which will be written with the site URL (after loading js). Then js changes innerHTML (or just the class if you use css to make visible label), which will contain the value of the first div.
It is quite simple :)
source
share