Cloudflare Docs
Zaraz
Edit this page
Give us feedback
Set theme to dark (⇧+D)

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.

​​ Create a new variable

  1. Log in to the Cloudflare dashboard, and select your account and domain.
  2. Go to Zaraz > Tools Configuration > Variables.
  3. Select Create variable, and give it a name.
  4. In Variable type select between String, Masked variable or Worker from the drop-down menu. Use Masked variable when you have a private value that you do not want to share, such as an API token.
  5. In Variable value enter the value of your variable.
  6. Select Save.

Your variable is now ready to be used with tools and triggers.

​​ Next steps

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.