# Defining Global Variables

Global Variables are shared across all experiences in a workspace. These are helpful if you want to track your users journey across multiple GMetri experiences.

When the user moves from one experience to another in the same workspace, the values in global variables is preserved across experiences

## Defining Global Variables[​](https://www.gmetri.com/docs/platform/create/variables#defining-global-variables) <a href="#defining-global-variables" id="defining-global-variables"></a>

* Head over to `Settings` from the top right menu in your [Portal](https://docs.gmetri.com/metaverse/build/portal).
* Click `Add Variable` in the `Global Variables` section

![Defining Global Variables](https://s.vrgmetri.com/image/q_90/gb-web/portal-docs/assets/img/screenshots/variables/defineglobalvars.png)

### **Adding the Global Variables defined above to the experience**[**​**](https://www.gmetri.com/docs/platform/create/variables#adding-the-global-variables-defined-above-to-the-experience)

* In the Project Editor, go to [Settings > Variables](https://docs.gmetri.com/metaverse/build/editor/project-settings/variables-in-settings).
* Scroll down to see the `Global Variables` section. Use the dropdown to add the global variable you want to add.

Read more about Variables here:

{% content-ref url="../variables" %}
[variables](https://docs.gmetri.com/metaverse/build/variables)
{% endcontent-ref %}
