@surfside/surfside-events
TypeScript icon, indicating that this package has built-in type declarations

3.6.0 • Public • Published

Surfside Digital Analytics

Setup repository

clone repo
npm install -g @microsoft/rush 
rush update

Package Installation

With npm:

npm install @surfside/surfside-events

Usage

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

import { addProduct, addPromo, setAction } from '@surfside/surfside-events';

addProduct({
  id: 'P12345',
  name: 'Blue T-Shirt',
  list: 'Search Results',
  brand: 'The T-Shirt Company',
  category: 'Apparel/T-Shirts',
  variant: 'Black',
  quantity: 1,
});

addPromo({
  id: 'PROMO_1234',
  name: 'Summer Sale',
  creative: 'summer_banner2',
  position: 'banner_slot1',
});

setAction({ action: 'purchase' });

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.6.0247latest

Version History

VersionDownloads (Last 7 Days)Published
3.6.0247
2.1.051
2.0.010
1.0.04
0.0.13

Package Sidebar

Install

npm i @surfside/surfside-events

Homepage

surfside.io

Weekly Downloads

315

Version

3.6.0

License

ISC

Unpacked Size

942 kB

Total Files

12

Last publish

Collaborators

  • michael.blanche
  • collinoswaltsurfside
  • james-surf
  • alecbelow