diff --git a/integrations/marketo-v2/HISTORY.md b/integrations/marketo-v2/HISTORY.md index 5974476f9..b00d4a0ec 100644 --- a/integrations/marketo-v2/HISTORY.md +++ b/integrations/marketo-v2/HISTORY.md @@ -1,3 +1,11 @@ +4.0.0 / 2021-09-09 +================= + + * Deprecate associateLead method + * Remove email hash method + * Add support for Marketo forms + * Add support for marketoFormId and marketoHostUrl settings + 3.0.7 / 2018-02-23 ================== diff --git a/integrations/marketo-v2/lib/index.js b/integrations/marketo-v2/lib/index.js index 41b196f85..c62201d2b 100644 --- a/integrations/marketo-v2/lib/index.js +++ b/integrations/marketo-v2/lib/index.js @@ -4,13 +4,12 @@ * Module dependencies. */ -var fmt = require('@segment/fmt'); var integration = require('@segment/analytics.js-integration'); var is = require('is'); -var jsonp = require('jsonp'); var url = require('component-url'); var when = require('do-when'); var each = require('@ndhoule/each'); + // mapping of Standard Marketo API names: restAPIName: soapAPIName var apiNameMapping = { annualRevenue: 'AnnualRevenue', @@ -82,11 +81,29 @@ var apiNameMapping = { var Marketo = (module.exports = integration('Marketo V2') .assumesPageview() .global('Munchkin') + .global('MktForms2') .option('host', 'https://api.segment.io') .option('accountId', '') .option('projectId', '') + .option('marketoHostUrl', '') + .option('marketoFormId', '') .option('traits', []) - .tag('