Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

npm version

gatsby-source-marketo

A plugin to source content (Forms, etc) from Marketo and make them queryable with GraphQL. This plugin only supports the Form/Field endpoints right now.

Install

yarn install gatsby-source-marketo

How to use

Update your gatsby-config to include the following:

{
  resolve: 'gatsby-source-marketo',
  options: {
    munchkinId: '--',
    clientId: '---',
    clientSecret: '---'
  }
}

Query

{
  allMarketoForm {
    edges {
      node {
        name
        marketoId
        url
        children {
          ...on MarketoFormField {
            id: marketoId
            validationMessage
            label
            required
            placeholder: hintText
            ...
          }
        }
      }
    }
  }
}
© 2023 Gatsby, Inc.