> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.popupmaker.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to use Custom Variables in popups?

Display content specific popups to your users and gain more engagement with nominal targeting popups.

Popups that contain a Custom Variable can help you to show targetted messages to your visitors.


||| **Note: This option requires some basic HTML knowledge to configure the popup triggering.**

After you have built your popup, you can proceed to setting up the Custom variable option for your popup.
In the HTML editor of your popup, select the Custom variable option and fill in the fields for your popup targeting content.



![How to use custom variables in popup](https://storage.crisp.chat/users/helpdesk/website/827841c5a93da800/use-custom-variables-in-popup_rk9xc.png)

* Choose the Selector type for the custom variable: By ID, By Class or Custom.
* Add a Selector for your popup content (e.g. uname).
* Enter the Attribute for your popup content (e.g. value)
* Enter a Default value for your popup content, in case the selector is missing.

The popup with these values may have a look like this, for example, targetting the users by their names:


![Targeting By Names Popup](https://storage.crisp.chat/users/helpdesk/website/827841c5a93da800/targeting-by-names-popup_fpuodc.png)