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

offer inbound identified user

Avatar

Avatar
Validate 1
Level 1
anuhya1
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
anuhya1
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
anuhya1
Level 1

18-02-2020

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

 

@craigthonis 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

957 likes

Total Posts

1,079 posts

Correct Reply

506 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

957 likes

Total Posts

1,079 posts

Correct Reply

506 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

24-02-2020

Hi,

 

Isn't this a syntax error?

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

 

Thanks,

-Jon

Answers (0)