With Adobe Launch, there are two ways to write data to cookies, one is through doPlugins in the Adobe Analytics Extension, and the other is custom code.
This method can refer to another article:UTM tracking in Adobe Analytics. This article is to write UTM parameters to cookies through doPlugins, and then assemble them into s.campaign parameters. The specific implementation process can be seen in that article.
We can just find an already deployed Rule, and then create a new Action：
Then copy the code into js:
The function of this code is to write my mobile number into a cookie, 😝，Then save：
Then you can publish the test：
See, my mobile number is already written in the cookie.