DEV Community

Cover image for Send Form Data From Marketo to Multiple Destinations Using RudderStack
Team RudderStack for RudderStack

Posted on • Originally published at

Send Form Data From Marketo to Multiple Destinations Using RudderStack

Turning Anonymous Into Known

Are you using Marketo forms and struggling to tie user form submissions with other actions they've taken on your site and in your product? Then keep reading. In this post, we'll show how you can leverage RudderStack to track Marketo form submissions without disrupting Marketo or your marketing team.

By using RudderStack to understand how users are finding and interacting with your site and then combining that with the data collected by your Marketo forms, you'll get deeper insights about your potential customers and provide higher quality leads to your sales team.

To set this up, first, you'll need to get RudderStack running on your website. You can do this in a matter of minutes. Go here, follow the instructions, and you'll be collecting data in no time.

Once that's done, and you have Marketo instrumented, use this code snippet to instrument capturing all the form values from every Marketo form on your website and sending them through RudderStack:

MktoForms2.whenReady(function (form) {
    form.onSuccess(function() {         
        if (typeof(rudderanalytics) !== 'undefined') {
            var formVals = form.getValues();
            rudderanalytics.track("marketo_form_submit", formVals);
Enter fullscreen mode Exit fullscreen mode

With the data captured by RudderStack, you'll now have all the data in your data warehouse, so you can combine the data you've captured from page and track requests with the marketo_form_submit, giving you more information about your customers, and turning them from anonymous into known customers you can engage with.

Top comments (0)