Trigger an Experience On a Dynamic URL

Some apps use dynamic URLs in their path structure, i.e different users would have different URLs even for the same tab.

For example, https://app.example.io/home/1234 where '1234' is a changing variable from one user to the other.

Userpilot gives you a bunch of really easy solutions in order to make sure experiences are triggered on dynamic URLs.

Go the 'Trigger on page' option right before you publish the experience and you'll find various options to select.

For example, you can select to trigger it on all pages that start with https://app.example.io/home/ ; this way it will automatically ignore the dynamic part of the URL.

You can also use "contains" or the "Matches Regex" option.

For the regex option, substitute all the changing variables in the URL to (*) as shown in the example below.

This will ensure that the Experience will only trigger on that specific URL.

For example, you'd change https://app.example.io/home/1234/apps to  https://app.example.io/home/(*)/apps

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.