Développer ma barre des réalisations de la Communauté.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.

RÉSOLU

offer inbound identified user

Avatar

Level 1

I have followed documentation to show inbound offer for identified user on website.

Created webapp (http://instancename/webApp/APP5) in the same instance and added below code

 

<div id="ContBO1"> First Best Offer </div>

<div id="ContBO2"> Second Best Offer </div>

<div id="ContPtn"> Partner Offer </div>

<script type="text/javascript">

interactionDivs={};

interactionDivs{"ContBO1"}=(space:"SPC10",categories:"OC7_liveRcp,OC5_liveVisitor"};

interactionDivs{"ContBO2"}=(space:"SPC10_2",categories:"OC7_liveRcp,OC5_liveVisitor"};

interactionDivs{"ContPtn"}=(space:"SPC9",categories:"OC9_liveRcp,OC6_liveVisitor"};

interactionTarget="xyz@gmail.com";

</script>

<script id="interactionProposalScript" src="http://instancename/nl/interactionProposal.js?env=liveRcp" type="text/javascript"></script> 

  • Added email attribute in advanced parameters while creating offer space.
  • After loading APP5, expectation is, if email id is available  identified offers  would be displaced, if not anonymous offers would be displayed ,but offers are not getting loaded.

visitor.PNG

PFA screenshot, After loading webpage (http://instancename/webApp/APP5), I see success response from 1st url .

 2nd url giving 500 error

  1. http://instancename/nl/interactionProposal.js?env=liveRcp
  2. http://instancename/interaction/?env=liveRcp&ctx=&z=0.6364123772435346  (2nd url initiated by 1st url) –with error response  as “JST-310000 Error while compiling script 'get_interaction_proposal' line 37: strSpace is undefined.”

 

Can someone please help me to understand why offers are not getting displayed and how can I have it working

 

@Craig_Thonis 

1 solution acceptée

Avatar

Réponse correcte par
Community Advisor

Hi,

 

Isn't this a syntax error?

interactionDivs{"ContPtn"}=(space:"SPC9",categories:"OC9_liveRcp,OC6_liveVisitor"};

 

Thanks,

-Jon

Voir la solution dans l'envoi d'origine

1 Reply

Avatar

Réponse correcte par
Community Advisor

Hi,

 

Isn't this a syntax error?

interactionDivs{"ContPtn"}=(space:"SPC9",categories:"OC9_liveRcp,OC6_liveVisitor"};

 

Thanks,

-Jon