How to integrate Drupal & Marketo
by Katelyn Fogarty
At some point in a B2B company’s digital marketing strategy, they will need to consider a Marketing Automation Platform, of which there are several top players — such as Marketo, Oracle Eloqua, Pardot, Act-On, and Hubspot — While I’m sure that there are many more available options (I found this great vendor comparison tool with some nice comparison guides), in this post I’m going to talk about the integration here at Acquia between Drupal and Marketo that we’ve developed over the last four years.
Setting up the connection
Connecting Drupal to Marketo is as simple as following these steps:
- Add the Marketo MA module to your website.
- Enable the module, and activate Marketo using your account ID key.
- Add a form to your website and data will start passing from your website into Marketo
This process allows you to add forms to your website that seamlessly collect and pass tracking data through to Marketo. The Marketo MA module itself allows for lots of additional things to be able to happen, such as:
- API integration
- Webform integration
- Rules integration
- Lead capture during user create
- Drush support
Creating your custom implementation
If you only need a few forms on your website, the basic setup is probably all you’ll need. We use a lot of different forms on our website and with a need for granular reporting, we’ve taken the basic setup to the next level. We have many ebooks, whitepapers, and webinars that get added to our website on a weekly basis, and we want individual reporting on each one. Because of this, it isn't manageable or scalable to create a new form in Marketo for every item. If we needed to make a substantial change to our form, I would have to make that change to over 100 Marketo forms — that’s a good way to introduce potential errors, and is a huge waste of time for my team!
Instead, we created a folder for master forms, where we built one form for each type of asset that we publish. This leaves us with about five main forms across our website. Then we created fields on our pages that pass data into hidden fields on those forms, so that we can get the required precision from our form reporting. For example:
This is what renders on the page for the visitor:
Because of our customization, if there is a need to adjust our forms in the future, I only have five main forms I need to edit. This also gives more power to our content team and edit teams that they can create a page with a form capture without needing to go into Marketo.
REST API Integration
We have a few places across our web properties where we have to use the API integration instead of using a Marketo embedded form (for example, when we need to create a user account at the same time as we pass the lead into Marketo). In these cases, we use the API connection to pass data directly into Marketo with all of the same hidden fields data that we track on all forms, so that we get the same level of granular data. This works really well for us, but we only do this on a small number of forms.
Six of one, half-dozen of another
This is basically how we’re doing it at Acquia, but it doesn’t begin to cover the many different ways that are possible. There are many other ways to integrate your marketing automation stack and CMS with Marketo, but we’re happy with how we’re are doing it here and we’ve found it to be very successful. As proof, we won a Marketo Revvie award in 2014 for “Most Dramatic Business Impact.”
After you get your marketing automation platform up and running, read my blog on best practices for a demand gen focused website.