Setting cookie value dynamically based on element value

Avatar

Avatar
Validate 1
Level 1
ScottSweeney-sg
Level 1

Like

1 like

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
ScottSweeney-sg
Level 1

Like

1 like

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
ScottSweeney-sg
Level 1

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)

Avatar

Avatar
Validate 1
Level 4
Løjmann
Level 4

Likes

35 likes

Total Posts

117 posts

Correct reply

42 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
Løjmann
Level 4

Likes

35 likes

Total Posts

117 posts

Correct reply

42 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Løjmann
Level 4

08-03-2017

Hi Scott,

Have a look at https://marketing.adobe.com/resources/help/en_US/sc/implement/util_cookiewrite.html

If you are running AppMeasurement.js you can use that build-in function to write your cookies...

/Løjmann

CM EDIT: Added hyperlink to text

Answers (2)

Answers (2)

Avatar

Avatar
Boost 1
Level 1
bill_tripple1
Level 1

Likes

2 likes

Total Posts

4 posts

Correct reply

2 solutions
Top badges earned
Boost 1
Affirm 1
View profile

Avatar
Boost 1
Level 1
bill_tripple1
Level 1

Likes

2 likes

Total Posts

4 posts

Correct reply

2 solutions
Top badges earned
Boost 1
Affirm 1
View profile
bill_tripple1
Level 1

08-03-2017

 _satellite.setCookie('source','ELEMENT VALUE',1) should work fine

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,338 posts

Correct reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,338 posts

Correct reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
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?