open-index/open-npm huggingface dataset:
npm package: @mailbiz/browser-plugin-debugger
Description: Debugger for Mailbiz Tracker
Latest version: 0.1.13

# Mailbiz Advertising Tracking

[![npm version][npm-image]][npm-url]
[![License][license-image]](LICENSE)

Browser Plugin to be used with `@mailbiz/browser-tracker`.

Adds debugging to your Mailbiz tracking.

## Maintainer quick start

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

### Setup repository

```bash
npm install -g @microsoft/rush 
git clone https://github.com/Mailbiz/Mailbiz.Tracker.Javascript.git
rush update
```

## Package Installation

With npm:

```bash
npm install @mailbiz/browser-plugin-debugger
```

## Usage

Initialize your tracker with the DebuggerPlugin:

```js
import { newTracker } from '@mailbiz/browser-tracker';
import { DebuggerPlugin } from '@mailbiz/browser-plugin-debugger';

newTracker('sp1', '{{collector}}', { plugins: [ DebuggerPlugin() ] }); // Also stores reference at module level
```

Then additional debugging information will be available in your browsers Developer Tools.

## Copyright and license

Licensed and distributed under the [BSD 3-Clause License](LICENSE) ([An OSI Approved License][osi]).

Copyright (c) 2022 Mailbiz.

All rights reserved.

[npm-url]: https://www.npmjs.com/package/@mailbiz/browser-plugin-ad-tracking
[npm-image]: https://img.shields.io/npm/v/@mailbiz/browser-plugin-ad-tracking
[docs]: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/javascript-tracker/
[osi]: https://opensource.org/licenses/BSD-3-Clause
[license-image]: https://img.shields.io/npm/l/@mailbiz/browser-plugin-ad-tracking
npm package: @mailbiz/browser-plugin-ecommerce
Description: Ecommerce tracking for Mailbiz Tracker
Latest version: 0.1.13

# Mailbiz Ecommerce Tracking

[![npm version][npm-image]][npm-url]
[![License][license-image]](LICENSE)

Browser Plugin to be used with `@mailbiz/browser-tracker`.

Adds ecommerce events to your Mailbiz tracking.

## Maintainer quick start

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

### Setup repository

```bash
npm install -g @microsoft/rush 
git clone https://github.com/Mailbiz/Mailbiz.Tracker.Javascript.git
rush update
```

## Package Installation

With npm:

```bash
npm install @mailbiz/browser-plugin-ecommerce
```

## Usage

Initialize your tracker with the EcommercePlugin:

```js
import { newTracker } from '@mailbiz/browser-tracker';
import { EcommercePlugin } from '@mailbiz/browser-plugin-ecommerce';

newTracker('sp1', '{{collector}}', { plugins: [ EcommercePlugin() ] }); // Also stores reference at module level
```

Then use the available functions from this package to track to all trackers which have been initialized with this plugin:

```js
import { addTrans, addItem, trackTrans, trackAddToCart } from '@mailbiz/browser-plugin-ecommerce';

trackAddToCart({
  sku: '000345',
  name: 'blue tie',
  category: 'clothing',
  unitPrice: 3.49,
  quantity: 2,
  currency: 'GBP',
});

// Grouped, events are sent on `trackTrans()` call
addTrans({
  orderId: 'order-123',
  total: 8000,
  affiliation: 'acme',
  tax: 100,
  shipping: 50,
  city: 'pheonix',
  state: 'arizona',
  country: 'USA',
  currency: 'JPY',
});
addItem({
  orderId: 'order-123',
  sku: '1001',
  name: 'Blue t-shirt',
  category: 'clothing',
  price: '2000',
  quantity: '2',
  currency: 'JPY',
});
trackTrans();
```

## Copyright and license

Licensed and distributed under the [BSD 3-Clause License](LICENSE) ([An OSI Approved License][osi]).

Copyright (c) 2022 Mailbiz.

All rights reserved.

[npm-url]: https://www.npmjs.com/package/@mailbiz/browser-plugin-ecommerce
[npm-image]: https://img.shields.io/npm/v/@mailbiz/browser-plugin-ecommerce
[docs]: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/javascript-tracker/
[osi]: https://opensource.org/licenses/BSD-3-Clause
[license-image]: https://img.shields.io/npm/l/@mailbiz/browser-plugin-ecommerce
npm package: @mailbiz/browser-plugin-error-tracking
Description: Error tracking
Latest version: 0.1.1-d.8
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Snowplow Error Tracking

[![npm version][npm-image]][npm-url]
[![License][license-image]](LICENSE)

Browser Plugin to be used with `@mailbiz/browser-tracker`.

Adds error tracking events to your Snowplow tracking.

## Maintainer quick start

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

### Setup repository

```bash
npm install -g @microsoft/rush 
git clone https://github.com/Mailbiz/Mailbiz.Tracker.Javascript.git
rush update
```

## Package Installation

With npm:

```bash
npm install @mailbiz/browser-plugin-error-tracking
```

## Usage

Initialize your tracker with the ErrorTrackingPlugin:

```js
import { newTracker } from '@mailbiz/browser-tracker';
import { ErrorTrackingPlugin } from '@mailbiz/browser-plugin-error-tracking';

newTracker('sp1', '{{collector}}', { plugins: [ ErrorTrackingPlugin() ] }); // Also stores reference at module level
```

Then use the available functions from this package to track to all trackers which have been initialized with this plugin:

```js
import { enableErrorTracking, trackError } from '@mailbiz/browser-plugin-error-tracking';

enableErrorTracking();

// OR

enableErrorTracking({
  filter: function (error) {
    return true;
  },
  contextsAdder: function (error) {
    return [
      {
        schema: 'iglu:org.schema/WebPage/jsonschema/1-0-0',
        data: {
          keywords: ['tester'],
        },
      },
    ];
  },
});

trackError({
  message: 'Cannot access notExistentProperty()',
  filename: 'trackError.js',
  lineno: 237,
  colno: 5,
  error: ex,
});

```

## Copyright and license

Licensed and distributed under the [BSD 3-Clause License](LICENSE) ([An OSI Approved License][osi]).

Copyright (c) 2022 Mailbiz.

All rights reserved.

[npm-url]: https://www.npmjs.com/package/@mailbiz/browser-plugin-error-tracking
[npm-image]: https://img.shields.io/npm/v/@mailbiz/browser-plugin-error-tracking
[docs]: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/javascript-tracker/
[osi]: https://opensource.org/licenses/BSD-3-Clause
[license-image]: https://img.shields.io/npm/l/@mailbiz/browser-plugin-error-tracking
npm package: @mailbiz/browser-tracker
Description: Browser tracker for Mailbiz
Latest version: 0.1.13

# Mailbiz Browser Tracker

[![npm version][npm-image]][npm-url]
[![License][license-image]](LICENSE)

Add Mailbiz Tracking to your Web Application with `@mailbiz/browser-tracker`.  

## Maintainer quick start

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

### Setup repository

```bash
npm install -g @microsoft/rush 
git clone https://github.com/Mailbiz/Mailbiz.Tracker.Javascript.git
rush update
```

## Package Installation

With npm:

```bash
npm install @mailbiz/browser-tracker
```

## Usage

Initialize your tracker with your desired configuration and optional plugins:

```js
import { newTracker } from '@mailbiz/browser-tracker';
import { SiteTrackingPlugin } from '@mailbiz/browser-plugin-site-tracking';
import { PerformanceTimingPlugin } from '@mailbiz/browser-plugin-performance-timing';
import { ClientHintsPlugin } from '@mailbiz/browser-plugin-client-hints';
import { FormTrackingPlugin, enableFormTracking } from '@mailbiz/browser-plugin-form-tracking';

newTracker('sp1', '{{collector}}', { plugins: [ PerformanceTimingPlugin(), SiteTrackingPlugin(), ClientHintsPlugin(), FormTrackingPlugin() ] }); // Also stores reference at module level
newTracker('sp2', '{{collector}}', { plugins: [ PerformanceTimingPlugin(), SiteTrackingPlugin() ] }); // You can have multiple trackers with different configs!

enableFormTracking() // Switch on form tracking

```

Then use the `trackX` functions from this package and your plugins to track to all trackers which have been initialized, or select just some trackers:

```js
import { trackPageView } from '@mailbiz/browser-tracker';
import { trackSocialInteraction } from '@mailbiz/browser-plugin-site-tracking';

trackPageView({}, ['sp1']); // Just to `sp1`

// OR to all trackers with some extra context!
trackPageView({
  title: 'My Title',
  context: [
    {
      schema: 'iglu:org.schema/WebPage/jsonschema/1-0-0',
      data: {
        keywords: ['tester'],
      },
    },
  ],
});

// Use your plugin track methods too
trackSocialInteraction({
  action: 'retweet',
  network: 'twitter',
  target: '1234',
});


```

## Copyright and license

Licensed and distributed under the [BSD 3-Clause License](LICENSE) ([An OSI Approved License][osi]).

Copyright (c) 2022 Mailbiz.

All rights reserved.

[npm-url]: https://www.npmjs.com/package/@mailbiz/browser-tracker
[npm-image]: https://img.shields.io/npm/v/@mailbiz/browser-tracker
[docs]: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/javascript-tracker/
[osi]: https://opensource.org/licenses/BSD-3-Clause
[license-image]: https://img.shields.io/npm/l/@mailbiz/browser-tracker
npm package: @mailbiz/browser-tracker-core
Description: Core functionality for Mailbiz Browser trackers
Latest version: 0.1.13

# Mailbiz Browser Tracker Core

[![npm version][npm-image]][npm-url]
[![License][license-image]](LICENSE)

Browser Core module to be used by Mailbiz Browser based trackers.

It should rarely be used alone, you probably want `@mailbiz/browser-tracker`.

## Maintainer quick start

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

### Setup repository

```bash
npm install -g @microsoft/rush 
git clone https://github.com/Mailbiz/Mailbiz.Tracker.Javascript.git
rush update
```

### Building Browser Tracker Core

```bash
cd libraries/browser-tracker-core
rushx build
```

### Running tests

```bash
rushx test
```

## Package Installation

With npm:

```bash
npm install @mailbiz/browser-tracker-core
```

## Usage

```js
import { addTracker, createSharedState, getTracker } from '@mailbiz/browser-tracker-core';

const sharedState = createSharedState();
const tracker = addTracker('snowplow_sp1', 'sp1', 'js-3.0.0', '{{collector}}', sharedState, {}); // Also stores reference at module level
const sameTracker = getTracker('snowplow_sp1');
```

### Example

```js
const domainUserId = tracker.getDomainUserId();
```

## Other features

This package contains a number of helper functions for tracking events in the browser as well as the core functionality of the Mailbiz JavaScript Tracker.

## Copyright and license

Licensed and distributed under the [BSD 3-Clause License](LICENSE) ([An OSI Approved License][osi]).

Copyright (c) 2022 Mailbiz.

All rights reserved.

[npm-url]: https://www.npmjs.com/package/@mailbiz/tracker-core
[npm-image]: https://img.shields.io/npm/v/@mailbiz/tracker-core
[docs]: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/javascript-tracker/
[osi]: https://opensource.org/licenses/BSD-3-Clause
[license-image]: https://img.shields.io/npm/l/@mailbiz/browser-tracker-core