# How to plot custom variables?

**URL:** <https://community.piwik.pro/t/how-to-plot-custom-variables/2060>\
**Category:** Data collection and tags\
**Created:** [April 24, 2023, 7:40am UTC](https://community.piwik.pro/t/how-to-plot-custom-variables/2060 "2023-04-24T07:40:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Kostov](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/ivan_kostov/32/1668_2.png) [@Ivan\_Kostov](https://community.piwik.pro/u/Ivan_Kostov)\
**Post date:** [April 24, 2023, 7:40am UTC](https://community.piwik.pro/t/how-to-plot-custom-variables/2060/1 "2023-04-24T07:40:34Z")

</div>

Hello!

I have a question regarding the setup of custom variables in Piwik.

The situation is the following, I have setup three custom variables, which should extract the name of a producer / producer user and their email.

 ![Screenshot 2023-04-24 093252](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/2/26101c1da1d2ef5040107fa721156b71a3bb71f7.png)

I have tested them in the Debugger and the variables are catching every time the information.

However, when I do a custom report for example and I want to plot the variables I either get no data or a undefined value.

I have chosen the correct custom variables as you can see on the screenshot (dont know if its possible to rename them)

 ![Screenshot 2023-04-24 093740](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/5/56b75f2bad8e4f70b4a0bda7cf369660ddab8bdb.png)

Can you please give me an advice how to tackle this? If the variables would not work for plotting the producer per session should I do custom dimensions (via putting piwik tracker in the js of the website) ?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![pwachala](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/pwachala/32/315_2.png) [@pwachala](https://community.piwik.pro/u/pwachala)\
**Post date:** [April 24, 2023, 8:55am UTC](https://community.piwik.pro/t/how-to-plot-custom-variables/2060/2 "2023-04-24T08:55:06Z")

</div>

Hey Ivan,  
you should go with the custom dimensions 😄  
As you already have variables created and working fine, you just need to use them.  
We have an article that explains the process of setting up a custom dimension here: [Create a custom dimension | Piwik PRO help center](https://help.piwik.pro/support/reports/custom-dimension/)

After that, you’ll be able to use them in a report like that:  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/6/662dd614504e23b549576acb9b4013a6c8e6cd8e.png)

---

<div class="post-metadata">

**Author:** ![Ivan\_Kostov](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/ivan_kostov/32/1668_2.png) [@Ivan\_Kostov](https://community.piwik.pro/u/Ivan_Kostov)\
**Post date:** [April 24, 2023, 9:12am UTC](https://community.piwik.pro/t/how-to-plot-custom-variables/2060/3 "2023-04-24T09:12:06Z")

</div>

Hey pwachala,

thanks for the explanation!

I will do the setup as follows then, I think the issue cleared up.

Regards
