Update time: July 18, 2023
With Adobe Launch, there are two ways to write data to cookies:
Function
_satellite.cookie.set
The _satellite.cookie.set function is provided on Adobe Launch, which can store values to Cookie.
//Shiny new Launch way - Session cookie _satellite.cookie.set("favoriteThing", "kittens"); //Shiny new Launch way - 1 year expiration _satellite.cookie.set("favoriteThing", "kittens", { expires: 365 });
Util.cookieWrite
Call the s.Util.cookieWrite() method to set a cookie to a desired value.
s.Util.cookieWrite("example_cookie","Example cookie value")
Custom code
Values can be stored in cookies using JavaScript:
Then you can publish the test:
See, my mobile number is already written in the cookie.