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

Passing in dynamic data into offer without reloading page

Avatar

Avatar
Boost 5
Level 3
Paul_M_Anderson
Level 3

Likes

30 likes

Total Posts

4 posts

Correct Reply

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

Avatar
Boost 5
Level 3
Paul_M_Anderson
Level 3

Likes

30 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile
Paul_M_Anderson
Level 3

08-01-2020

I found this documentation (https://docs.adobe.com/content/help/en/target/using/experiences/offers/passing-profile-attributes-to...) which allows us to use profile data in our offers. This works however, I cannot figure out how to pull in updated data values without reloading the page. Is there a way to update the content without reloading the page? Perhaps on some sort of event listener (ex: click event)? 

 

 

Thanks!

View Entire Topic

Avatar

Avatar
Give Back 3
Level 2
richardlee
Level 2

Likes

10 likes

Total Posts

15 posts

Correct Reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 5
View profile

Avatar
Give Back 3
Level 2
richardlee
Level 2

Likes

10 likes

Total Posts

15 posts

Correct Reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 5
View profile
richardlee
Level 2

14-01-2020

Hi @Paul_M_Anderson 

we sometimes trigger activities based click events etc using the getOffer() in the handler to retrieve the activity. I  assume you could do the same thing and pass your profile params and then within the loaded offer utilise those params

adobe.target.getOffer({   
  "mbox": "target-global-mbox", 
  "params": { 
     "a": 1, 
     "b": 2, 
     "profile.age": 27, 
     "profile.gender": "male" 
  }, 
  "success": function(offer) {           
        adobe.target.applyOffer( {  
           "mbox": "target-global-mbox", 
           "offer": offer  
        } ); 
  },   
  "error": function(status, error) {           
      console.log('Error', status, error); 
  } 
});