WURFL.io provides a handy JS API for advanced mobile device detection. See www.wurfl.io for details.
The HTML Code to integrate the script would be
I want to use this as part of an extension. What would be the best way to add it?
Hi Andreas, I would probably start with using the Tealium Generic Tag container and/or download the source code and host it inside the template depending on whether it is required to be hosted at their servers. If you go to the tag eco-system and search for "tealium" you will find it.
// Copy/paste wurfl.js source code
// After WURFL object is created, copy WURFL to data layer
utag_data.is_mobile = WURFL.is_mobile;
utag_data.form_factor = WURFL.form_factor;
utag_data.complete_device_name = WURFL.complete_device_name;