Triggering a Block Based on URL and storing it in a variable in Typebot
Can Typebot trigger a block based on the loaded page's URL and, when it starts, store that URL in a variable?
4 Replies
yes. for example like this https://docs.typebot.io/guides/utm-in-results ... or with prefilledVariables https://docs.typebot.io/editor/variables#prefilled-variables
Typebot Docs
Variables - Typebot Docs
Thanks acromacho. I haven't understood how to pass the entire URL into the variable. What I see is how to pass URL parameters, but not the full URL.
What about to store it in the variable from javascript and pasa it into the prefilled variable ? const fullUrl = window.location.href;
console.log(fullUrl);
Done! Thank you acromacho!