Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@snowplow/browser-plugin-ecommerce

Package Overview
Dependencies
Maintainers
3
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snowplow/browser-plugin-ecommerce - npm Package Compare versions

Comparing version 3.5.0 to 3.6.0

2

dist/index.module.js
/*!
* Ecommerce tracking for Snowplow v3.5.0 (http://bit.ly/sp-js)
* Ecommerce tracking for Snowplow v3.6.0 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -4,0 +4,0 @@ * Licensed under BSD-3-Clause

/*!
* Ecommerce tracking for Snowplow v3.5.0 (http://bit.ly/sp-js)
* Ecommerce tracking for Snowplow v3.6.0 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -39,3 +39,3 @@ * Licensed under BSD-3-Clause

/*!
* Core functionality for Snowplow JavaScript trackers v3.5.0 (http://bit.ly/sp-js)
* Core functionality for Snowplow JavaScript trackers v3.6.0 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -379,3 +379,3 @@ * Licensed under BSD-3-Clause

/*!
* Core functionality for Snowplow Browser trackers v3.5.0 (http://bit.ly/sp-js)
* Core functionality for Snowplow Browser trackers v3.6.0 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -382,0 +382,0 @@ * Licensed under BSD-3-Clause

/*!
* Ecommerce tracking for Snowplow v3.5.0 (http://bit.ly/sp-js)
* Ecommerce tracking for Snowplow v3.6.0 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -4,0 +4,0 @@ * Licensed under BSD-3-Clause

{
"name": "@snowplow/browser-plugin-ecommerce",
"version": "3.5.0",
"version": "3.6.0",
"description": "Ecommerce tracking for Snowplow",

@@ -21,4 +21,4 @@ "homepage": "http://bit.ly/sp-js",

"dependencies": {
"@snowplow/browser-tracker-core": "3.5.0",
"@snowplow/tracker-core": "3.5.0",
"@snowplow/browser-tracker-core": "3.6.0",
"@snowplow/tracker-core": "3.6.0",
"tslib": "^2.3.1"

@@ -50,3 +50,3 @@ },

"peerDependencies": {
"@snowplow/browser-tracker": "~3.5.0"
"@snowplow/browser-tracker": "~3.6.0"
},

@@ -57,3 +57,3 @@ "scripts": {

},
"readme": "# Snowplow Ecommerce Tracking\n\n[![npm version][npm-image]][npm-url]\n[![License][license-image]](LICENSE)\n\nBrowser Plugin to be used with `@snowplow/browser-tracker`.\n\nAdds ecommerce events to your Snowplow tracking.\n\n## Maintainer quick start\n\nPart of the Snowplow JavaScript Tracker monorepo. \nBuild with [Node.js](https://nodejs.org/en/) (12 LTS or 14 LTS) and [Rush](https://rushjs.io/).\n\n### Setup repository\n\n```bash\nnpm install -g @microsoft/rush \ngit clone https://github.com/snowplow/snowplow-javascript-tracker.git\nrush update\n```\n\n## Package Installation\n\nWith npm:\n\n```bash\nnpm install @snowplow/browser-plugin-ecommerce\n```\n\n## Usage\n\nInitialize your tracker with the EcommercePlugin:\n\n```js\nimport { newTracker } from '@snowplow/browser-tracker';\nimport { EcommercePlugin } from '@snowplow/browser-plugin-ecommerce';\n\nnewTracker('sp1', '{{collector}}', { plugins: [ EcommercePlugin() ] }); // Also stores reference at module level\n```\n\nThen use the available functions from this package to track to all trackers which have been initialized with this plugin:\n\n```js\nimport { addTrans, addItem, trackTrans, trackAddToCart } from '@snowplow/browser-plugin-ecommerce';\n\ntrackAddToCart({\n sku: '000345',\n name: 'blue tie',\n category: 'clothing',\n unitPrice: 3.49,\n quantity: 2,\n currency: 'GBP',\n});\n\n// Grouped, events are sent on `trackTrans()` call\naddTrans({\n orderId: 'order-123',\n total: 8000,\n affiliation: 'acme',\n tax: 100,\n shipping: 50,\n city: 'pheonix',\n state: 'arizona',\n country: 'USA',\n currency: 'JPY',\n});\naddItem({\n orderId: 'order-123',\n sku: '1001',\n name: 'Blue t-shirt',\n category: 'clothing',\n price: '2000',\n quantity: '2',\n currency: 'JPY',\n});\ntrackTrans();\n```\n\n## Copyright and license\n\nLicensed and distributed under the [BSD 3-Clause License](LICENSE) ([An OSI Approved License][osi]).\n\nCopyright (c) 2022 Snowplow Analytics Ltd, 2010 Anthon Pang.\n\nAll rights reserved.\n\n[npm-url]: https://www.npmjs.com/package/@snowplow/browser-plugin-ecommerce\n[npm-image]: https://img.shields.io/npm/v/@snowplow/browser-plugin-ecommerce\n[docs]: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/javascript-tracker/\n[osi]: https://opensource.org/licenses/BSD-3-Clause\n[license-image]: https://img.shields.io/npm/l/@snowplow/browser-plugin-ecommerce\n"
"readme": "# Snowplow Ecommerce Tracking\n\n[![npm version][npm-image]][npm-url]\n[![License][license-image]](LICENSE)\n\nBrowser Plugin to be used with `@snowplow/browser-tracker`.\n\nAdds ecommerce events to your Snowplow tracking.\n\n## Maintainer quick start\n\nPart of the Snowplow JavaScript Tracker monorepo. \nBuild with [Node.js](https://nodejs.org/en/) (14 or 16) and [Rush](https://rushjs.io/).\n\n### Setup repository\n\n```bash\nnpm install -g @microsoft/rush \ngit clone https://github.com/snowplow/snowplow-javascript-tracker.git\nrush update\n```\n\n## Package Installation\n\nWith npm:\n\n```bash\nnpm install @snowplow/browser-plugin-ecommerce\n```\n\n## Usage\n\nInitialize your tracker with the EcommercePlugin:\n\n```js\nimport { newTracker } from '@snowplow/browser-tracker';\nimport { EcommercePlugin } from '@snowplow/browser-plugin-ecommerce';\n\nnewTracker('sp1', '{{collector}}', { plugins: [ EcommercePlugin() ] }); // Also stores reference at module level\n```\n\nThen use the available functions from this package to track to all trackers which have been initialized with this plugin:\n\n```js\nimport { addTrans, addItem, trackTrans, trackAddToCart } from '@snowplow/browser-plugin-ecommerce';\n\ntrackAddToCart({\n sku: '000345',\n name: 'blue tie',\n category: 'clothing',\n unitPrice: 3.49,\n quantity: 2,\n currency: 'GBP',\n});\n\n// Grouped, events are sent on `trackTrans()` call\naddTrans({\n orderId: 'order-123',\n total: 8000,\n affiliation: 'acme',\n tax: 100,\n shipping: 50,\n city: 'pheonix',\n state: 'arizona',\n country: 'USA',\n currency: 'JPY',\n});\naddItem({\n orderId: 'order-123',\n sku: '1001',\n name: 'Blue t-shirt',\n category: 'clothing',\n price: '2000',\n quantity: '2',\n currency: 'JPY',\n});\ntrackTrans();\n```\n\n## Copyright and license\n\nLicensed and distributed under the [BSD 3-Clause License](LICENSE) ([An OSI Approved License][osi]).\n\nCopyright (c) 2022 Snowplow Analytics Ltd, 2010 Anthon Pang.\n\nAll rights reserved.\n\n[npm-url]: https://www.npmjs.com/package/@snowplow/browser-plugin-ecommerce\n[npm-image]: https://img.shields.io/npm/v/@snowplow/browser-plugin-ecommerce\n[docs]: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/javascript-tracker/\n[osi]: https://opensource.org/licenses/BSD-3-Clause\n[license-image]: https://img.shields.io/npm/l/@snowplow/browser-plugin-ecommerce\n"
}

@@ -13,3 +13,3 @@ # Snowplow Ecommerce Tracking

Part of the Snowplow JavaScript Tracker monorepo.
Build with [Node.js](https://nodejs.org/en/) (12 LTS or 14 LTS) and [Rush](https://rushjs.io/).
Build with [Node.js](https://nodejs.org/en/) (14 or 16) and [Rush](https://rushjs.io/).

@@ -16,0 +16,0 @@ ### Setup repository

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc