Re: Alternate method to load forms on 3rd party pages?

Anonymous
Not applicable

Alternate method to load forms on 3rd party pages?

Hey there,

Our developers were wondering if there is any alternative to the javascript implementation for loading Marketo forms on 3rd party pages. What they'd love is something server-side.

Is anything like this available (or planned)?

Thanks!

Tags (2)
6 REPLIES 6
Grégoire_Miche2
Level 10

Re: Alternate method to load forms on 3rd party pages?

Hi Kelvin,

No there is none per se.

But you could use your own form development system and use Marketo server side API to pass the lead info to Marketo. See Marketo REST APIs: Lead, List, Activity, Campaign Objects » Marketo Developers

-Greg

SanfordWhiteman
Level 10 - Community Moderator

Re: Alternate method to load forms on 3rd party pages?

What do they mean by "server-side"?  The resulting form object always uses JavaScript, so you are not moving the form from client to server.  You can write shortcode-type abstractions to plug the forms2.js library and the MktoForms2::loadForm call into the final HTML, but you're still rendering the form on the client (which is what you should be trying to do).

What exactly are they trying to achieve?

Anonymous
Not applicable

Re: Alternate method to load forms on 3rd party pages?

You just post forms directly to http://<your-marketo-domain>/index.php/leadCapture/save2

Just ensure you have all of the necessary hidden fields:

_mkto_trk

formVid

formid

lpId

subId

munchkinId

lpurl

cr

kw

q

_mktoReferrer

Along with any other fields you want and it'll just work.

SanfordWhiteman
Level 10 - Community Moderator

Re: Alternate method to load forms on 3rd party pages?

Along with any other fields you want and it'll just work.

Unless you actually have a large, successful campaign, in which case it'll fail because of rate limiting.

This is why client-side forms are what everybody should be aiming for.  Server-side form posts are now deprecated in favor of background client posts using the Forms 2.0 API.

Anonymous
Not applicable

Re: Alternate method to load forms on 3rd party pages?

Both the Forms 2.0 and Landing pages built within Marketo POST their form data to /index.php/leadCapture/save2

SanfordWhiteman
Level 10 - Community Moderator

Re: Alternate method to load forms on 3rd party pages?

Yes, but if you are talking about server-side form posts they are rate-limited (in fact, client-side form posts have the exact same limitation, as it is per-IP, but needless to say it's less likely that users sharing the same NAT IP will encounter the limit than that all your leads together will fail).