offer inbound identified user | Community
Skip to main content
February 19, 2020
Solved

offer inbound identified user

  • February 19, 2020
  • 1 reply
  • 1714 views

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.

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 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jonathon_wodnicki

Hi,

 

Isn't this a syntax error?

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

 

Thanks,

-Jon

1 reply

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
February 24, 2020

Hi,

 

Isn't this a syntax error?

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

 

Thanks,

-Jon