Skip to main content
View plugin on GitHub
See starters using this

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
            ...
          }
        }
      }
    }
  }
}