Variable Substitution

Variable substitution provides a simple and powerful way of creating custom redirects based on the source page and device detection results. You can preserve query parameters and include detection results in your redirects. 

These substitutions are available.

$vendor$ The device vendor
$model$ The device model
$os$ The device operating system
$osversion$ The device operating system version
$browser$ The device browser
$browserversion$ The device browser version
$formfactor$ Bar, Clamshell, Slide, Dual Slide, Swivel, Tablet
$class$ Mobile, Tablet, Console, Camera, Glass
$width$ Screen width in normal orientation (pixels)
$height$ Screen height in normal orientation (pixels)
$country$ The country the device is being used in
$isp$ The ISP or Carrier the device is accessing the internet through
$scheme$ http or https (how the script was called)
$host$ The website that downloaded this detection script (eg
$path$ The path to the page that called this detection script. (eg /some/path/page.html)
$query$ Any query variables from the page that called this script (eg q=red+shoes&category=shoes)
$fragment$ Anything after the # from the page that called this script

Use them in your redirects like this.

Still need help? Contact Us Contact Us