How to: variables for dynamic step paths

Sometimes you need to redirect the user to a dynamic path, which consists of let's say project ID that is unique to each of the user.

In these situations, you can pass additional variables (tokens) that can be used within the step path (Misc section) and the player will automatically replace them with the value in the variable.

Usage:

Above your embed code, you will have to tell the player what variables to use and what are the values, such as:

window.inlineManualOptions = { variables: {'project': '12345'}};

This will tell the player that there is a variable called a project with the current value of 12345.

This can be then used in the step path as: "user/[project]" - the player will take the variable and replace it with it's value to: "user/12345" - this is where the user will be redirected.

Was this article helpful?