Get Visitor Data From Tag Manager

Hi Guys,

Is there a way to get visitor data from/using tag manager?
We would like to execute a function or call a trigger based on a variable value like country code or device.


Maybe if you create a tag that uses the user agent variable {{UserAgent}} as the solution described in this post


Other solution maybe: How to refer a Pre-configured variable in Custom JavaScript