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.

Thanks!

Hi,
Maybe if you create a tag that uses the user agent variable {{UserAgent}} as the solution described in this post https://forum.matomo.org/t/beginner-question-about-data-layer-in-matomo-tag-manager/39402/3:

<script>
callSomeFunction({{UserAgent}});
</script>

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