Event Sending Functions

This method sends a view event, which is used for page tracking. In the example below, the current page url is tracked as a visitor page view.

By passing the optional “page” parameter in this method, the current page can be overridden.

ParameterOptional/RequiredTypeDescription
‘send’RequiredStringMethod action.
‘view’RequiredStringMethod name.
pageOptionalStringRelative path or full page URL.
// Example for Default Page
rtp('send', 'view');

// Example for Overriding Default Page
var page = 'my-page?param=1';
rtp('send', 'view', page);

Exclude Tag for Specific Bots (User Agents)

To exclude specific browsers from sending data to the Web Personalization platform (in the case of identified bots), add the following IF statement to the tag script.

In the code example below, “Googlebot|msnbot” is used as bot examples to exclude from Web Personalization activities.

<!-- RTP tag -->
<script type='text/javascript'>
if(navigator.userAgent.match(/.(Googlebot|msnbot)./gi) == null){
    (function(c,h,a,f,i){c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
    c[a].a=i;var g=h.createElement("script");g.async=true;g.type="text/javascript";
    g.src=f+'?rh='+c.location.hostname+'&aid='+i;var b=h.getElementsByTagName("script")[0];b.parentNode.insertBefore(g,b);
})(window,document,"rtp","//[cdn-pod-X-url]/rtp-api/v1/rtp.js","[accountId]");

    rtp('send','view');
    rtp('get', 'campaign', true);
}
</script>
<!-- End of RTP tag -->

JavaScript Calls Explained

Description of JavaScript that is added to a website when using Web Personalization and Predictive Content.

Core/Dependent JavaScript

NameDescriptionControl
rtp.js-Controlled by Marketo
jquery.min.jsv1.8.3Can be disabled by contacting Marketo Customer Support
jquery-custom-ui-min.jsv1.9.2Can be disabled by contacting Marketo Customer Support
query-ui-1.8.17-dialog.jsv1.9.2*Can be disabled by contacting Marketo Customer Support

*Used only if jQuery UI is missing dialog

On Demand JavaScript

NameDescriptionControl
ga-integration-2.0.1.jsUsed if Google Analytics/Facebook/SiteCatalyst integration is enabledControlled by Marketo
insightera-bar-2.1.jsUsed if predictive content recommendation bar is enabledControlled by Marketo
froogaloop2.min.jsUsed if content tracking is enabled and Vimeo player exists on page-
iframe-api-v1.jsUsed if content tracking is enabled and YouTube player exists on page-
Next pageInstall Adobe Launch Extension

Marketo Engage


Marketo Migration to the Adobe Admin Console - (Pre-Migration)

Experience Cloud Tech Sessions

Tuesday, Mar 4, 6:00 PM UTC

Join Adobe's Customer Experience and Identity Team to prepare for a smooth Marketo migration to the Adobe Admin Console. Learn key steps, best practices, and how to avoid roadblocks for a seamless transition.

Register

Marketo Migration to the Adobe Admin Console - (Post-Migration)

Experience Cloud Tech Sessions

Tuesday, Mar 11, 4:00 PM UTC

Migrated Marketo to the Adobe Admin Console? Join our webinar to master key features, best practices, and troubleshooting tips. Learn how to manage users,, settings, and more. register now!

Register

Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more