내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Passing in dynamic data into offer without reloading page

Avatar

Level 3

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!

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 2

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); 
  } 
});

 

원본 게시물의 솔루션 보기

1 답변 개

Avatar

정확한 답변 작성자:
Level 2

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); 
  } 
});