Journey Scripting > Actions > Add Cookie

Creates and saves a cookie for the duration of the journey. Useful if you want to set a specific cookie to identify a journey is running, for example if you want to force your website into a particular version of A/B testing to ensure the journey follows a consistent journey.

Parameters

Name Required Description Example
Name Yes The name of the cookie ignorePopup
Value Yes Content of the cookie true

Example

{
    "Type":"AddCookie",
    "Name":"display-version",
    "Value":"show-test-a"
}