Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

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 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

 

Isn't this a syntax error?

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

 

Thanks,

-Jon

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

 

Isn't this a syntax error?

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

 

Thanks,

-Jon