Set Device Info
Right after MagicPixel.init method is invoked and is ready, execute the below method with below parameters. This sets all the necessary values for new facebook tag requirements for mobile apps and can be expanded for other future tags.
Copy
MagicPixel.setDeviceInfo({
timezone_abbreviation: 'CST', // *REQUIRED* short 3 letter timezone representation
package_name: 'com.company.app.name', // *REQUIRED* package name of your application
short_version: '1.0', // short version number
long_version: '1.0 long', // long version number
os_version: '13.0.2', // *REQUIRED* iOS or Android OS version
device_model_name: 'iPhone5,1', // *REQUIRED*
locale: 'En_US', // *REQUIRED*
carrier: 'Airtel', // *REQUIRED*
screen_width: 320, // *REQUIRED* example - don't hard code
screen_height: 568, // *REQUIRED* example - don't hard code
screen_density: 2, // *REQUIRED* example - don't hard code
cpu_cores: 2, // example - don't hard code
ext_storage: 13, // example - don't hard code - Storage in GB
free_storage: 8, // example - don't hard code - Free space in GB
device_timezone: 'USA/New York', // *REQUIRED*
});Direct link to heading MagicPixel setup information
These fields are all available under device_info object in MagicPixel. When creating data element, set it up as a MagicPixel Data Layer Item with value such as device_info.package_name for example.
