Variables in Google Tag Manager are information that allow you to perform a specific thing.
If with the trigger I can activate the tag in all the pages of the website, it is thanks to the Variable that they can go into detail and say to activate the tag on a specific page.
The variables are therefore a fundamental element to be able to go into detail and help us to better track our website.
Tag Manager offers two sets of variables: Built-in and User Defined.
Tip: always remember to check the built-in variables first and then move onto the possible creation of a new user defined variable.
You may also be interested by the following articles:
Track Data Studio Dashboards with one Property in Google Analytics and 4 Calculated Fields
Schedule Emails in Google Data Studio
Tracking Google Data Studio Dashboards with Google Analytics
Find Query Parameters on Google Analytics
Query Parameters and Google Analytics