Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to separate multiple cookie values?

Avatar

Level 2

Hi, I would like to understand how to set a data element based on a portion of a cookie.

Example:

cookie=cid=123 | uid=jsmith | account=123456 | auth=UN

How can I set the values of each of these items (cid, uid, account, auth) into their own separate data elements?

Thanks for any advice!

1 Accepted Solution

Avatar

Correct answer by
Level 8

Hi,

I'm not really sure if you can store different portions of a cookie into separate data elements since the whole value would be fed into a data element. (however, let me see if I can find some more info on this)

One way you could go about is by storing the cookie value and then passing the relevant attributes separately into a variable thru some rules.

Let me know if that works

Rahul

2 Replies

Avatar

Correct answer by
Level 8

Hi,

I'm not really sure if you can store different portions of a cookie into separate data elements since the whole value would be fed into a data element. (however, let me see if I can find some more info on this)

One way you could go about is by storing the cookie value and then passing the relevant attributes separately into a variable thru some rules.

Let me know if that works

Rahul

Avatar

Level 8

Hi,

Were you able to find a method to implement this?

Regards

Rahul