Get URL of host page

I'm looking to get the url of the host page for an embedded bot, using JS added to the typebot embed code and set along with the other parameters. Just looking for feedback, is this the most sensible way to send the url to the bot server? I'm trying to build contextual responses based on the url the user is on.
2 Replies
Baptiste
Baptiste4mo ago
A set variable block with the following custom value: document.location.href don't forget to enable the "Execute on client" option
Russ Webb
Russ Webb4mo ago
Thanks. Simple enough.