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
BedrockMission!

Learn More

View all

Sign in to view all badges

Using Profile script values in Offer

Avatar

Avatar
Validate 1
Level 1
RasmusFriis
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
RasmusFriis
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
RasmusFriis
Level 1

11-04-2016

Hello Community

Please help me, I have a question to Adobe Target.

I want to use profile script values in my offers, so what I can get and set the values when a user perform a certain action, such as pressing a button on a popup, which I plan to show in my offer.

I already know that I can get the mBox values to be used in my javascript code, but I can't really find any functions, that will set & get my user profile script values.

This is how I get the values to be shown in a certain html offer.

<p>Profile Test value: <span id="test_value" class="newtext1">${user.profile_test1}</span></p>

then I can use it in my javascript offer like this:

var value = $('#test_value').text();

but I can't reach the 'test_value' in the profile script. Could someone please shown me an example or send me some links to how to use it the right way ?

Greetings from Rasmus Friis, Denmark

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 3
Level 2
akashj80621328
Level 2

Likes

3 likes

Total Posts

10 posts

Correct Reply

7 solutions
Top badges earned
Boost 3
Boost 1
Applaud 5
Affirm 5
Affirm 3
View profile

Avatar
Boost 3
Level 2
akashj80621328
Level 2

Likes

3 likes

Total Posts

10 posts

Correct Reply

7 solutions
Top badges earned
Boost 3
Boost 1
Applaud 5
Affirm 5
Affirm 3
View profile
akashj80621328
Level 2

18-04-2016

Thanks for reaching out to Adobe community.

You could fire an mboxUpdate call immediately when user performs the action. Send user's action as profile parameter in the call.
For ex. mboxUpdate('target-global-mbox', 'profile.clicked=yes'); 

Then create a profile script with code return profile.get('clicked'); 

Use the profile script in offer as ${user.<profile_script_name>}

Note : With this approach 

    1. For new user, the value is initially empty. As soon as user takes action, profile script contains the value of action taken.

    2. For returning user, last selected value Is pre populated in script.

Answers (0)