web personalization predictive content | Community
Skip to main content
New Participant
June 20, 2022
Question

web personalization predictive content

  • June 20, 2022
  • 1 reply
  • 1742 views

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?

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

1 reply

Darshil_Shah1
Community Manager
June 20, 2022

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.