Search through more than a hundred articles on every aspect of User.com

Dawid Tyburek
Written by Dawid Tyburek

How to use Global Variables

Learn how to create dynamic variables yourself!


For the ease of understanding, Global Variable works like a Snippet Tag that you create. They allow you to simultaneously change content of your communication to suit your Business needs.


Use Cases

  • Let's say you have Email Campaign prepared for various Business Owners. By using Global Variables you can send personalised messages changing only variables content, not the email templates.
  • Sometimes you just want to send certain amount of emails in your campaign. Simply use Global Variable as a counter in the automation to limit the number of emails sent.
  • If you want to change the receivers of your automated communication(such as emails or pop-ups), simply use Global Variable in the Filter module and change the contect of the Variable anytime to target new audiences, without the need to redo your automation!
  • But it gets even better, how about sending personalised messages and chenging their content dynamically, depending who is the receiver? You can send exactly same campaign to CEO, IT dep and Support and each of them would get different content based on their attributes. Code below will generate the greeting depending who is the receiver. But you don't have to stop there, even whole message can be dynamically generated!

  • You can render specific product in your message to increase the sales inside specific target groups.

How to use them

Global Variables can be used in:

  • Automations,
  • Email templates,
  • Pop-ups,
  • Bot messages,
  • Tickets,
  • HTML blocks.

To create your new Global Variable go to Tools -> Global Variables.

Click on Create new to add new Variable, you will see a window pop up.

Here you have several options:

  • Name - It will be used as a part of your Variable name. If you name it example, your Variable full name will be a global.example.
  • Type - Here you can specify the type of your Variable, should it contain text or numbers.
  • Value - This is where you will create and later modify yours Variable content. It can be plain text, html or even an If statement!

Use Help section on the bottom for quick reference. You can also stretch the content window with your mouse cursor to expand your workfield.

After creating and saving your Variable it will be instantly ready to use. Simply copy it and use in any form of communication, your automations or even Tickets. You can use the button by the name of the Variable to quickly copy it:

Remember you can always quickly edit your Variable content by clicking on the cog wheel on the right.

Related Articles

Categories: