Store Data to cookie on Adobe Launch | BCS Store Data to cookie on Adobe Launch | BCSBCS

Store Data to cookie on Adobe Launch

Adobe Launch BCS 5 years ago (2019-12-03) 1335 Views 0 Comments

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:

Store Data to cookie on Adobe Launch

Then you can publish the test:

Store Data to cookie on Adobe Launch

See, my mobile number is already written in the cookie.


If you don't understand, You can leave a comment below.
Like (2)
Post my comment
Cancel comment
Expression Bold Strikethrough Center Italic

Hi, you need to fill in your nickname and email!

  • Nickname (required)
  • Email (required)
  • Website