Leveraging dynamic data within DTM is done by using Data Elements. For more information on Data Elements, reference the documentation here -
https://marketing.adobe.com/resources/help/en_US/sc/implement/t_data-element.html