@groupby/elements-gb-tracker-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

GroupBy Elements GB Tracker Plugin

This package contains the GroupBy Tracker Plugin class. Its purpose is to provide automatic beaconing integration with Groupby.

Prerequisites

This plugin depends on the following Elements plugins:

  • dom_events

These plugins must be registered either before or in the same batch as this plugin.

Usage

To use the plugin, simply instantiate it and register it with Core:

const gbTrackerPlugin = new GbTrackerPlugin({
  customerId: 'my-customer-id',
  area: 'some-area',
  collection: 'some-collection',
});
core.register(gbTrackerPlugin);

It accepts a mandatory customerId. It also accepts optional area and collection arguments to handle tracking actions against specific areas and collections.

Additionally, the plugin will automatically listen for and act on beacon events. It is designed to work with the other plugins in the Logic Layer.

The plugin registers an instance of the gb-tracker client with Core.

Events

This plugin listens for a number of events. These events are defined in the @groupby/elements-events package.

Received

  • BEACON_SEARCH: When received, a GroupBy Auto Search beacon is triggered.

Readme

Keywords

none

Package Sidebar

Install

npm i @groupby/elements-gb-tracker-plugin

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

24.2 kB

Total Files

25

Last publish

Collaborators

  • mykola_bova
  • adruzhkin-gbi
  • anton.shakhlovich
  • artem_konstantinov
  • andzinchenko
  • yberkut-gbi
  • romangbi
  • francoisvongue
  • gleb.bondarenko.gb
  • pavel-shakhlovich
  • jonapgar-groupby
  • kseniya.kondrashevich
  • owengbi
  • yanishgbi
  • jasonwelsh
  • groupby-ops
  • groupby-ci
  • groupbyops
  • daniel-moniz-gbi
  • johanntutorgbi
  • dmytro-kyiashko
  • roman.lis