Different Google Analytics code based on Users Device

The interesting question is: how are the analytics codes inserted? If it is inserted by a “google analytics” plugin, you won’t have that much luck.

If it is inserted directly into the theme files, you can change the Code to send a “custom session dimension” to send the information, which type of device is used, to google analytics.

You can read more about custom dimensions here:

https://support.google.com/analytics/answer/2709829?hl=en