The Set Variable action defines a named variable that you can use to store or mark information temporarily in a scenario. For example, you could create a scenario that watches for people to buy products between 12 and 3 AM and then sets a variable called Late Night Shopper to “true.” You could then include a Record Audit Trail element that tracks the number of people whose Late Night Shopper variable is set to “true” and use the data you collect to create a report.
Note that scenario variables apply only to the segment in which you set them; you cannot set a variable in one scenario and then use that same variable in another scenario to trigger an event.
Variables can be any of the following types:
string
– any characters you enter, for example “test” or “item purchased”long
– any integer you choosedouble
-- any number with a floating point value that you chooseflag
– true or falsedate
– any month, date, and year that you specify