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

profile attribute creation and reading profile attribute in profile script

Avatar

Avatar
Give Back 5
Level 2
vengadeshs86143
Level 2

Likes

14 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 5
Ignite 3
View profile

Avatar
Give Back 5
Level 2
vengadeshs86143
Level 2

Likes

14 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 5
Ignite 3
View profile
vengadeshs86143
Level 2

19-08-2018

Hi

I am new to adobe target, trying to write a profile script for a use case.

The use case is like, if user searches by ticked a check box then promote an offer related to the ticked checkbox.

For this i am trying to set a profile attribute when some ticked the checkbox and create a profile script by reade this profile attribute.

Create an audience using this profile script and target an offer.

I didn't fine anywhere how to set a profile attribute in my html page and how to read the attribute value in profile script.

Any help will be much appreciated.

Replies

Avatar

Avatar
Give Back 5
Level 3
skandg43264764
Level 3

Likes

31 likes

Total Posts

38 posts

Correct Reply

7 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile

Avatar
Give Back 5
Level 3
skandg43264764
Level 3

Likes

31 likes

Total Posts

38 posts

Correct Reply

7 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile
skandg43264764
Level 3

21-08-2018

vengadeshs86143832​,

for this use case : 'if user searches by ticked a check box then promote an offer related to the ticked checkbox."

Step 1.  First identify the tick event and in the eventlistener function like click, fire a Dynamic mBox with value relevant to checkbox (which makes sense to you)

(Then ensure dynamic mBox is firing properly on page. This can be checked in Network tab in developer's tool )

Step 2. Then create a profile script and check for the set value of dynamic mBox here and return true when value is what you have set for the checkbox click event.

Step 3. Then Create an audience and use the above profile script where you are validating the dynamic mBox value which you are firing on click of checkbox with the necessary parameters.

Step 4. Use this audience in Target activity.

Hope this helps 🙂

Avatar

Avatar
Give Back 5
Level 2
vengadeshs86143
Level 2

Likes

14 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 5
Ignite 3
View profile

Avatar
Give Back 5
Level 2
vengadeshs86143
Level 2

Likes

14 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 5
Ignite 3
View profile
vengadeshs86143
Level 2

10-09-2018

@skandg thanks for your suggestion.

I tried to create a dynamic mbox as advised by you and the mbox is not triggering

var test="";

if ($('#my_id').is(':checked')) {

test= "B";

mboxDefine('my_id,'my_dynamic_mbox,

'test=B’);

mboxUpdate('my_dynamic_mbox, 'test=B’);

}

Avatar

Avatar
Boost 50
Employee
tanvia28417128
Employee

Likes

73 likes

Total Posts

61 posts

Correct Reply

8 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Employee
tanvia28417128
Employee

Likes

73 likes

Total Posts

61 posts

Correct Reply

8 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
tanvia28417128
Employee

11-09-2018

Hi

mbox is to be defined around a DIV element. You may refer below document to create a dynamic mbox

Creating a Dynamic Mbox

Also below document can be referred for functions being used with at.js

at.js Functions

Avatar

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

197 likes

Total Posts

219 posts

Correct Reply

87 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

197 likes

Total Posts

219 posts

Correct Reply

87 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
ryanr701
Employee

11-09-2018

Rather than using mboxDefine/mboxUpdate I'd recommend you use the adobe.target.trackEvent function (only works for at.js). Tanvi linked to a help doc with some details on it. Here is a simple sample though:

You can pass the parameter as a "profile.param1" if you want it to be sticky for the visitor. However, in your use case where you have a profile script looking for attribute you probably don't need to use the "profile." because the profile scripts are sticky too.

Avatar

Avatar
Give Back 5
Level 3
skandg43264764
Level 3

Likes

31 likes

Total Posts

38 posts

Correct Reply

7 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile

Avatar
Give Back 5
Level 3
skandg43264764
Level 3

Likes

31 likes

Total Posts

38 posts

Correct Reply

7 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile
skandg43264764
Level 3

11-09-2018

As I mentioned before, inside your click event function write code as per below sample:

btn_Click_function(){ // this is your button click function

//Place below code

adobe.target.trackEvent({

"mbox": "Checkbox", //define the mBox name here,

"params": {

"profile.checkBoxTicked":true //set the parameter as profile and assign value as 'true'

  }

});

}

Hope this helps !