predictive content

lextraza
Level 2

predictive content

We want to create predictive content.

 

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

 

We added this code to the web page where we want predictive content to appear.

 

<div class="RTP_RCMD2" data-rtp-template-id="template1"></div>

 

 In the content settings we’ve added content url.(web pages where we want predictive content to appear and predictive content category). 

www. is our domain

 
 

lextraza_2-1655835124478.png

Here is our domain settings

lextraza_3-1655835160810.png

Here is the predictive content itself. We enabled it for rich media.

lextraza_4-1655835188813.png

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