diff --git a/integrations/perfect-audience/HISTORY.md b/integrations/perfect-audience/HISTORY.md new file mode 100644 index 000000000..85e707a63 --- /dev/null +++ b/integrations/perfect-audience/HISTORY.md @@ -0,0 +1,48 @@ + +2.2.0 / 2016-09-07 +================== + + * support ecom spec v2 + +2.1.1 / 2016-08-16 +================== + + * Fix for release + +2.1.0 / 2016-08-16 +================== + + * Merge pull request #2 from segment-integrations/update/ecommerce-spec-v2 + * update ecommerce spec syntax to v2 + +2.0.0 / 2016-06-21 +================== + + * Remove Duo compatibility + * Add CI setup (coverage, linting, cross-browser compatibility, etc.) + * Update eslint configuration + +1.0.4 / 2016-05-07 +================== + + * Bump Analytics.js core, tester, integration to use Facade 2.x + +1.0.3 / 2015-06-30 +================== + + * Replace analytics.js dependency with analytics.js-core + +1.0.2 / 2015-06-24 +================== + + * Bump analytics.js-integration version + +1.0.1 / 2015-06-24 +================== + + * Bump analytics.js-integration version + +1.0.0 / 2015-06-09 +================== + + * Initial commit :sparkles: diff --git a/integrations/perfect-audience/README.md b/integrations/perfect-audience/README.md new file mode 100644 index 000000000..e2462162d --- /dev/null +++ b/integrations/perfect-audience/README.md @@ -0,0 +1,12 @@ +# analytics.js-integration-perfect-audience [![Build Status][ci-badge]][ci-link] + +Perfect Audience integration for [Analytics.js][]. + +## License + +Released under the [MIT license](LICENSE). + + +[Analytics.js]: https://segment.com/docs/libraries/analytics.js/ +[ci-link]: https://circleci.com/gh/segment-integrations/analytics.js-integration-perfect-audience +[ci-badge]: https://circleci.com/gh/segment-integrations/analytics.js-integration-perfect-audience.svg?style=svg diff --git a/integrations/perfect-audience/lib/index.js b/integrations/perfect-audience/lib/index.js new file mode 100644 index 000000000..204d12598 --- /dev/null +++ b/integrations/perfect-audience/lib/index.js @@ -0,0 +1,102 @@ +'use strict'; + +/** + * Module dependencies. + */ + +var integration = require('@segment/analytics.js-integration'); +var push = require('global-queue')('_pq'); + +/** + * Expose `PerfectAudience` integration. + */ + +var PerfectAudience = module.exports = integration('Perfect Audience') + .assumesPageview() + .global('_pq') + .option('siteId', '') + .tag('