Avatar

Level 10

Hi -

To get this information, you would assign location.hostname to your prop. For example, your code would look like this --> s.prop1=location.hostname;

Here is a helpful article that tells you how to get the various pieces from the URL: JavaScript Window Location

And here is a visual of using location.hostname to get the domain name from a page on Adobe's webiste:

1406725_pastedImage_2.png

Have a great day -

Sarah