From 5073a0e47f23e90ac4a74baf89a64d59aa2915e9 Mon Sep 17 00:00:00 2001 From: SegmentDestinationsBot Date: Thu, 12 Jul 2018 16:14:04 -0700 Subject: [PATCH] Add integration salesforce-dmp This commit copies the content of the integration repo into the "integrations" folder. Original repo: https://github.com/segment-integrations/analytics.js-integration-salesforce-dmp Readme: https://github.com/segment-integrations/analytics.js-integration-salesforce-dmp/blob/master/README.md --- integrations/salesforce-dmp/HISTORY.md | 41 + integrations/salesforce-dmp/README.md | 12 + integrations/salesforce-dmp/lib/index.js | 187 + integrations/salesforce-dmp/package-lock.json | 9259 +++++++++++++++++ integrations/salesforce-dmp/package.json | 56 + .../salesforce-dmp/test/index.test.js | 193 + integrations/salesforce-dmp/yarn.lock | 5630 ++++++++++ 7 files changed, 15378 insertions(+) create mode 100644 integrations/salesforce-dmp/HISTORY.md create mode 100644 integrations/salesforce-dmp/README.md create mode 100644 integrations/salesforce-dmp/lib/index.js create mode 100644 integrations/salesforce-dmp/package-lock.json create mode 100644 integrations/salesforce-dmp/package.json create mode 100644 integrations/salesforce-dmp/test/index.test.js create mode 100644 integrations/salesforce-dmp/yarn.lock diff --git a/integrations/salesforce-dmp/HISTORY.md b/integrations/salesforce-dmp/HISTORY.md new file mode 100644 index 000000000..def19ac08 --- /dev/null +++ b/integrations/salesforce-dmp/HISTORY.md @@ -0,0 +1,41 @@ + +2.0.2 / 2018-07-09 +================== + + * Pushes `event_name: 'identify'` to the dataLayer for Segment identify + events when "Send Event Names" UI setting is enabled. + +2.0.1 / 2018-06-25 +================== + + * Fix bug preventing us from deleting dataLayer b/w sessions. + +2.0.0 / 2018-06-13 +================== + + * Add v2 logic and tests and remove temp fix. + +1.3.4 / 2018-01-18 +================== + + * Instantiate window.kruxDataLayer manually if non-existent + +1.3.0 / 2017-11-21 +================== + + * Add functionality for Track calls to re-fire pixel.gif + +1.2.0 / 2017-08-28 +================== + + * Modify usermatch logic. + +1.0.1 / 2017-07-18 +================== + + * Patch bump for deploy + +1.0.0 / 2017-07-16 +================== + + * Initial commit :sparkles: diff --git a/integrations/salesforce-dmp/README.md b/integrations/salesforce-dmp/README.md new file mode 100644 index 000000000..3dd9fd6d7 --- /dev/null +++ b/integrations/salesforce-dmp/README.md @@ -0,0 +1,12 @@ +# analytics.js-integration-salesforce-dmp [![Build Status][ci-badge]][ci-link] + +Salesforce DMP integration for [Analytics.js][]. + +## License + +Released under the [MIT license](LICENSE). + + +[Analytics.js]: https://segment.com/docs/libraries/analytics.js/ +[ci-link]: https://ci.segment.com/gh/segment-integrations/analytics.js-integration-salesforce-dmp +[ci-badge]: https://ci.segment.com/gh/segment-integrations/analytics.js-integration-salesforce-dmp.svg?style=svg diff --git a/integrations/salesforce-dmp/lib/index.js b/integrations/salesforce-dmp/lib/index.js new file mode 100644 index 000000000..dcdaa9390 --- /dev/null +++ b/integrations/salesforce-dmp/lib/index.js @@ -0,0 +1,187 @@ +'use strict' + +/** + * Module dependencies. + */ + +var integration = require('@segment/analytics.js-integration') + +/** + * Expose `Salesforce DMP` integration. + */ + +var SalesforceDMP = module.exports = integration('Salesforce DMP') + .option('confId', '') + .option('trackFireEvents', []) + .option('eventAttributeMap', {}) + .option('namespace', '') + .tag('init', '