Re: web personalization predictive content

lextraza
Level 2

web personalization predictive content

We want to add predictive content to our web personalization.

We have created in zone web campaign. We added this code to it:

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="RTP_RCMD2" data-rtp-template-id="template1"></div>
</body>
</html>

We also have predictive content which we want to appear in this web campaign. We enabled it for rich media.

 

We added this code:

(function(c,h,a,f,i,e){c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
          c[a].a=i;c[a].e=e;var g=h.createElement("script");g.async=true;g.type="text/javascript";
          g.src=f+'?aid='+i;var b=h.getElementsByTagName("script")[0];b.parentNode.insertBefore(g,b);
          })(window,document,"rtp","//lonrtp1-cdn.marketo.com/rtp-api/v1/rtp.js","INSTANCECODE");
         rtp('send','view');
         rtp('get', 'campaign',true);
         rtp('get','rcmd', 'richmedia');

to our testing page. INSTANCECODE-here we’ve written code of our instance

But still nothing works. What do we have to change in order to make it work?

1 REPLY 1
Darshil_Shah1
Level 10 - Community Advisor

Re: web personalization predictive content

Have you created and enabled the predective content for Rich Media? And, have you added the webpage's domain where you're trying to test this functionality in the Account settings in the web personalization module?

 

If yes, it's worth checking if you're able to populate the predective content on the normal LP w/o web-personalization first.

 

Best,
Darshil