Variables
Variables form the backbone of multivariate tests. Anything you would like to change between permutations should be a variable. This could be things like taglines or background images.
#
Variable typesThere are currently four types of variables;
- Text
- Color
- Image
- Font
#
TextText variables simply replace their macros with their values.
tip
Text variables can be used for things other than simple strings, such as external image URLs, CSS styling or JavaScript variables.
#
ColorColor variables work in much the same way as Text, replacing their macro with their values. The main difference is that Color variables are better suited to displaying color data in Labs.
#
ImageThe Image type will replace their macro with the URL to the image.
tip
You can use an Image variable even if you only want one image.
#
FontThe Font type will replace their macro with the URL to the font. Compatible font extensions are .ttf, .otf, .woff and .woff2.
The preferred format is .woff which is supported by all major browsers including Internet Explorer.
#
Support for standard font familiesThe font variable type does not yet handle standard font-family string such as "Times New Roman", Times, serif
or Arial, Helvetica, sans-serif
.
However, this is easily achievable by using a Text variable with the desired font-family strings.