Skip to main content
ON24 Knowledge Center

Marketo to ON24 Registration - Marketo Landing Page Redirect

Webinars

Engagement Hub

Target

Virtual Conference


Webinars

Step 1: Add External URL to Marketo Form for Webinar

On your form Thank You Page select Follow Up With: > External URL and add the URL below. This the ON24 Seamless Registration URL. This URL is the endpoint to collect to data from the redirect script. The redirect script will be unique per landing for each Webinar.

https://event.on24.com/interface/registration/autoreg/index.html?deletecookie=true

Screenshot_33.png

Step 2: Create Script for Marketo Landing Page for Webinar
<script src="//app-ab32.marketo.com/js/forms2/js/forms2.min.js"></script>
<script type="text/javascript">
MktoForms2.whenReady(function(form) {
   form.onSuccess(function(vals, tyURL) {
      var tyLoc = document.createElement("a");

      tyLoc.href = tyURL;
      tyLoc.search += 
        "&eventid=" + "XXXXX" +
        "&key=" + "YYYYY" + 
        "&email=" + encodeURIComponent(vals.Email) +
        "&firstname=" + encodeURIComponent(vals.FirstName) +
        "&lastname=" + encodeURIComponent(vals.LastName) +
        "&company=" + encodeURIComponent(vals.Company) +
        "&job_title=" + encodeURIComponent(vals.Title);
      document.location = tyLoc;

      return false;
   });
});
</script>

Replace ab32 with your Marketo data center instance which is visible in the URL when you are in Marketo. The eventid (XXXXX) and key (YYYYY) are unique per Webinar and can be pulled from the audience URL https://event.on24.com/wcc/r/eventid/key.

clipboard_eaa41c054523296309a9c4d972dee33dd.png

See http://apidoc.on24.com/seamless-registration for additional attributes (registration data) that can pass over to your Webinars via the redirect script.

Step 3: Add Script to Marketo Landing Page for Webinar

Add redirect script to Edit Page Meta Tags > Custom HEAD HTML.

clipboard_ef6182103dd07d7ec1dc78a9d3aa43f29.png

clipboard_ea1a976b5872c984026351bfa30edb582.png

 


Engagement Hub

Step 1: Add External URL to Marketo Form for Engagement Hub

On your form Thank You Page select Follow Up With: > External URL and add the URL below. This the ON24 Seamless Registration URL. This URL is the endpoint to collect to data from the redirect script. The redirect script will be unique per landing for each Engagement Hub.

https://gateway.on24.com/wcc/autoreg?targetUrl=&updateIfExist=Y

clipboard_ed409e87438a9219c98d48f1c83f2d51c.png

Step 2: Create Script for Marketo Landing Page for Engagement Hub
<script src="//app-ab32.marketo.com/js/forms2/js/forms2.min.js"></script>
<script type="text/javascript">
MktoForms2.whenReady(function(form) {
   form.onSuccess(function(vals, tyURL) {
      var tyLoc = document.createElement("a");

      tyLoc.href = tyURL;
      tyLoc.search += 
        "&eventId=" + "XXXXX" +
        "&key=" + "YYYYY" + 
        "&email=" + encodeURIComponent(vals.Email) +
        "&firstName=" + encodeURIComponent(vals.FirstName) +
        "&lastName=" + encodeURIComponent(vals.LastName) +
        "&company=" + encodeURIComponent(vals.Company) +
        "&jobTitle=" + encodeURIComponent(vals.Title);
      document.location = tyLoc;

      return false;
   });
});
</script>

Replace ab32 with your Marketo data center instance which is visible in the URL when you are in Marketo. The eventId (XXXXX) and key (YYYYY) are unique per Engagement Hub and can be pulled from the Seamless Registration URL on the Reg page.

Screenshot_11 copy.png

See http://apidoc.on24.com/content-gateway-seamless-registration or additional attributes (registration data) that can pass over to your Engagement Hub via the redirect script.

Step 3: Add Script to Marketo Landing Page for Engagement Hub

Add redirect script to Edit Page Meta Tags > Custom HEAD HTML.

clipboard_ef6182103dd07d7ec1dc78a9d3aa43f29.png

clipboard_ea1a976b5872c984026351bfa30edb582.png

 


Target

Step 1: Add External URL to Marketo Form for Target

On your form Thank You Page select Follow Up With: > External URL and add the URL below. This the ON24 Seamless Registration URL. This URL is the endpoint to collect to data from the redirect script. The redirect script will be unique per landing for each Engagement Hub.

https://gateway.on24.com/wcc/autoreg?targetUrl=&updateIfExist=Y

clipboard_ed409e87438a9219c98d48f1c83f2d51c.png

Step 2: Create Script for Marketo Landing Page for Target
<script src="//app-ab32.marketo.com/js/forms2/js/forms2.min.js"></script>
<script type="text/javascript">
MktoForms2.whenReady(function(form) {
   form.onSuccess(function(vals, tyURL) {
      var tyLoc = document.createElement("a");

      tyLoc.href = tyURL;
      tyLoc.search += 
        "&eventId=" + "XXXXX" +
        "&key=" + "YYYYY" + 
        "&experienceId=" + "ZZZZZ" +
        "&targetUrl=" + "AAAAA" + 
        "&email=" + encodeURIComponent(vals.Email) +
        "&firstName=" + encodeURIComponent(vals.FirstName) +
        "&lastName=" + encodeURIComponent(vals.LastName) +
        "&company=" + encodeURIComponent(vals.Company) +
        "&jobTitle=" + encodeURIComponent(vals.Title);
      document.location = tyLoc;

      return false;
   });
});
</script>

Replace ab32 with your Marketo data center instance which is visible in the URL when you are in Marketo. Replace eventId (XXXXX), key (YYYYY), experienceId (ZZZZZ). Replace the targetUrl (AAAAA) with the Target page URL. After the successful registration and cookie of the person, registrants will redirect to the URL.

See http://apidoc.on24.com/content-gateway-seamless-registration or additional attributes (registration data) that can pass over to your Target via the redirect script.

Step 3: Add Script to Marketo Landing Page for Target

Add redirect script to Edit Page Meta Tags > Custom HEAD HTML.

clipboard_ef6182103dd07d7ec1dc78a9d3aa43f29.png

clipboard_ea1a976b5872c984026351bfa30edb582.png

 


 

Virtual Conference

Step 1: Add External URL to Marketo Form for Virtual Conference

On your form Thank You Page select Follow Up With: > External URL and add the URL below. This the ON24 Seamless Registration URL. This URL is the endpoint to collect to data from the redirect script. Use a dedicated registration form for the Virtual Conference.

Replace the <showCode> below with your Virtual Conference show code.

https://vshow.on24.com/vshow/<showCode>/register

clipboard_ed8097bae60c7ccbda69aa7fe5f65ac97.png

Step 2: Create Script for Marketo Landing Page for Virtual Conference
<script src="//app-ab32.marketo.com/js/forms2/js/forms2.min.js"></script>
<script type="text/javascript">
MktoForms2.whenReady(function(form) {
   form.onSuccess(function(vals, tyURL) {
      var tyLoc = document.createElement("a");

      tyLoc.href = tyURL;
      tyLoc.search += 
        "&apiKey=" + "XXXXX" +
        "&updateIfExists=" + "Y" + 
        "&email=" + encodeURIComponent(vals.Email) +
        "&firstName=" + encodeURIComponent(vals.FirstName) +
        "&lastName=" + encodeURIComponent(vals.LastName) +
        "&company=" + encodeURIComponent(vals.Company) +
        "&jobTitle=" + encodeURIComponent(vals.Title);
      document.location = tyLoc;

      return false;
   });
});
</script>

Replace ab32 with your Marketo data center instance which is visible in the URL when you are in Marketo. Replace apiKey (XXXXX) with the Virtual Conference preview password. After the successful registration and cookie of the person, registrants will redirect to the URL.

See  http://apidoc.on24.com/ve-seamless or additional attributes (registration data) that can pass over to your Virtual Conference via the redirect script.

Step 3: Add Script to Marketo Landing Page for Virtual Conference

Add redirect script to Edit Page Meta Tags > Custom HEAD HTML.

clipboard_ef6182103dd07d7ec1dc78a9d3aa43f29.png

clipboard_ea1a976b5872c984026351bfa30edb582.png

 


  • Was this article helpful?