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

Popular posts from this blog

elasticsearch - what is the equivalent data type for geo_point in hibernate search? -

firebase - How to wait value in Ionic 2 -

Jenkins: find build number for git commit -