Setting cookie value dynamically based on element value

ScottSweeney-sg

08-03-2017

Being able to dynamically set a cookie value based on an element's value seems like a no-brainer as you can inject it into s.products but I see no documentation and my attempts have failed.

Example of what seems overly simplistic, but at least to me, should work;     _satellite.setCookie('source','ELEMENT VALUE',1);

Accepted Solutions (1)

Accepted Solutions (1)

Answers (2)

Answers (2)

jantzen_belliston-Adobe

Community Manager

09-03-2017

Hi Scott,

When you use 

_satellite.setCookie('source','ELEMENT VALUE',1);

What is happening? Have you used 

_satellite.getVar('DATA ELEMENT NAME');

to verify that the data element you are trying to use to set the cookie has a value?