Please note: this feature is still in beta. If you are using it, please let us know whether it works for you as expected.
How to enable device variables?
This feature is disabled by default which means that you will need to enable it:
- Go to Settings / Google Tag Manager on your WordPress admin area
- Click on the Basic data tab
- Click on the Browser/OS/Device subtab
- Put a check mark into the boxes shown on that page
Enabling this will allow you to access the following Data Layer Variables on all pages.
Note: you do not need this feature to be enabled to collect browser/os/device data with Google Analytics. You may want to use this feature to pass such data towards other 3rd party systems or to limit certain tags in your Google Tag Manager container to only certain browsers/operating systems/devices
deviceType
Here you can see what type of device the user is currently using to browse your website. Example values are: desktop, mobile, tablet
deviceManufacturer
It is usually empty for desktop devices as browsers do not pass the name of the device (laptop or desktop PC) the user is currently using. On mobile or tablet devices however this will include the name of the company who manufactured the device. Example values are LG, Apple, Samsung, etc.
deviceModel
It is usually empty for desktop devices as browsers do not pass the name of the device (laptop or desktop PC) the user is currently using. On mobile or tablet devices however this will include the name of the device. Example values are Nexus 5, Galaxy S7, iPhone 6s, etc.