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

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -