3.6.0 • Published 7 months ago

@surfside/browser-core v3.6.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

Surfside Browser Tracker Core

Setup repository

npm install -g @microsoft/rush 
git clone https://github.com/snowplow/snowplow-javascript-tracker.git
rush update

Building Browser Tracker Core

cd libraries/browser-core
rushx build

Running tests

rushx test

Package Installation

With npm:

npm install @surfside/browser-core

Usage

import { addTracker, createSharedState, getTracker } from '@surfside/browser-core';

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

Example

const domainUserId = tracker.getDomainUserId();

Copyright and license

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

Copyright (c) 2022 Surfside Solutions Inc, Snowplow Analytics Ltd, 2010 Anthon Pang.

All rights reserved.

3.4.0

7 months ago

3.6.0

7 months ago

2.0.0

9 months ago

1.0.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago