How to initialize Javascript RTP on a webpage?

Anonymous
Not applicable

How to initialize Javascript RTP on a webpage?

I am trying to initialize RTP on a webpage. I read the documentation (http://developers.marketo.com/documentation/websites/rtp-js-api/) and inserted the tag:

    <!-- RTP tag --> 
    (function(c,h,a,f,e,i){c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
    c[a].p=e;c[a].a=i;var g=h.createElement("script");g.async=true;g.type="text/javascript";
    g.src=f;var b=h.getElementsByTagName("script")[0];b.parentNode.insertBefore(g,b)})
    (window,document,"rtp","[rtp-js-cdn-url]","[pod-url]","###-###-###");
    <!-- End of RTP tag -->

However, I do not know what values to assign [rtp-js-cdn-url] and [pod-url].

A working example or explanation of how to successfully set up the RTP tag would be greatly appreciated!
Tags (1)
1 REPLY 1
Anonymous
Not applicable

Re: How to initialize Javascript RTP on a webpage?

You can either generate tag through the RTP admin with these values prefilled, or ask support to generate it for you.

Here's how to generate via the RTP admin panel:

1. Login to your RTP account and go to Account Settings.
(If you have already received your JavaScript tag from Support - continue to step 3)

rtp1

2. Under 'Domain Configuration' locate the relevant domain and click the 'Generate Tag' button.

rtp2