Create a variable
Variables are reusable blocks of information. They allow you to have one source of data you can reuse across tools and triggers in the dashboard. You can then update this data in a single place.
For example, instead of typing a specific user ID in multiple fields, you can create a variable with that information instead. If there is a change and you have to update the user ID, you just need to update the variable and the change will be reflected across the dashboard.
Worker Variables are a special type of variable that generates value dynamically.
- Log in to the Cloudflare dashboard ↗, and select your account and domain.
- Go to Zaraz > Tools Configuration > Variables.
- Select Create variable, and give it a name.
- In Variable type select between
String
,Masked variable
orWorker
from the drop-down menu. UseMasked variable
when you have a private value that you do not want to share, such as an API token. - In Variable value enter the value of your variable.
- Select Save.
Your variable is now ready to be used with tools and triggers.
Refer to Add a third-party tool and Create a trigger for more information on how to add a variable to tools and triggers.
If you need to edit or delete variables, refer to Edit variables.