Check the User Agent of the user that triggers a Google Tag Manager event -
i have datalayer event push in js , wondering if possible learn user-agent of users triggering event.
you need create variable return user agent
1) go variables -> new
2) name: user agent
3) type: custom javascript
4) code:
function () {return navigator.useragent;}
then can use variable in tags {{user agent}}
wiki
Comments
Post a Comment