Cookies can store and retrieve information across pages on the same domain. Use the
Util.cookieRead() method to retrieve a value from a cookie.
You can read cookies by setting values in data elements.
The cookie value is stored in the data element. You can then reference the data element in rules to assign Analytics variables.
s.Util.cookieRead() method to read a desired cookie value. Its only argument is a string, which is required. This method returns a string containing the cookie value. If the cookies does not exist, an empty string is returned.
// Reads the value set in the cookie named 'example' and assigns the value to eVar1 s.eVar1 = s.Util.cookieRead("example");