Google Tag Manager (GTM) allows you to create any number of user-defined variables, based on the current state of a field in the GTM 'data layer'.
In this example we'll access the product list name, as set on product listing pages in a Shopify store. This follows the standard structure for Enhanced Ecommerce events.