# Global Variables

Source: https://support.storeconnect.com/articles/global-variables · Last modified 21 August 2026

Liquid theme controller variables are globally accessible variables defined in a theme controller. They can be referenced across all parts of the theme, including pages, templates, and content blocks. These variables support static or dynamic assignment, and they support value reassignment.

Example:

```text

controllers/theme
```


```liquid

{% liquid
   variables store_name: "Acme Store"
%}
```


Reference your variable:


```liquid

{{ store_name }}
```


Output:

Acme Store

### **Important Notes**

Global variables are part of a controller's actions and can only be declared within a controller file. One of their primary uses is to assign or reassign dynamic values.

You can reference theme controller variables anywhere in your theme, including within content objects like pages and content blocks. It's important to note that these variables are different from session variables: theme controller variables operate at the theme and server-side level, meaning their values are consistent across all users. In contrast, session variables are tied to an individual user's session and are only valid during that session.

### **Definitions**

**Controllers:** In liquid themes, a controller is a theme component that helps to define and control global data or theme-related behavior at a server-side level.

Server-side: Refers to data management that happens on the server before the theme is rendered and delivered to the user's browser.

---

## Follow StoreConnect

- [Email Newsletter](https://getstoreconnect.com/c/lp-newsletter)
- [LinkedIn Newsletter](https://www.linkedin.com/build-relation/newsletter-follow?entityUrn=7444956928444862464)
- [YouTube](https://www.youtube.com/channel/UCngKdP2x8l1wcbAKW3tvU8g)
- [LinkedIn](https://www.linkedin.com/company/storeconnect)
- [X / Twitter](https://x.com/storeconnecthq)

## Popular Links

- [Partners](https://getstoreconnect.com/partners)
- [News](https://getstoreconnect.com/articles/news)
- [Events](https://getstoreconnect.com/articles/events)
- [Feature Comparison](https://getstoreconnect.com/how-we-compare)
- [Download a free trial](https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FMkeKUAT)
- [Book a Demo](https://getstoreconnect.com/contact)

## Documentation

- [Help documentation](https://support.storeconnect.com/help-documentation)
- [AI agents](https://support.storeconnect.com/ai)
- [Videos & tutorials](https://support.storeconnect.com/videos-tutorials)
- [Developer reference](https://support.storeconnect.com/developer-reference)
- [Release notes](https://support.storeconnect.com/release-notes)
- [Troubleshooting](https://support.storeconnect.com/troubleshooting)
- [Trust Center](https://trust.getstoreconnect.com/)
- [Status Page](https://status.storeconnect.com/)

## Contact

- info@getstoreconnect.com
- US +1 415 745 3230
- AUS +61 2 8365 2308

100 S Ashley Dr, Suite 600-2461
Tampa FL 33602-600 USA

Level 22, Sydney Place
180 George Street
Sydney, NSW, 2000, AUS

---

StoreConnect Support — https://support.storeconnect.com/articles/global-variables