4.6.3 • Published 1 month ago

@snowplow/react-native-tracker v4.6.3

Weekly downloads
901
License
BSD-3-Clause
Repository
github
Last release
1 month ago

Snowplow React Native Tracker

npm version License

Add Snowplow Tracking to your React Native Application with @snowplow/react-native-tracker.

Package Installation

With npm:

npm install @snowplow/react-native-tracker

Usage

Initialize your tracker with your desired configuration:

import { newTracker } from '@snowplow/react-native-tracker';
const t = newTracker({
  namespace: 'myTracker',
  appId: 'myApp',
  endpoint: 'http://0.0.0.0:9090'
});

Then use the track function from this package, along with the buildX functions to send events to your configured emitters:

const context = [
  {
    schema: 'iglu:com.acme/user/jsonschema/1-0-0',
    data: {
      type: 'tester',
    },
  },
];

t.trackScreenViewEvent({ name: 'myScreenName' });

t.trackPageView(
  { pageUrl: 'http://www.example.com', pageTitle: 'example page' },
  context
);

const eventJson = {
  schema: 'iglu:com.acme/viewed_product/jsonschema/1-0-0',
  data: {
    price: 20,
  },
};

t.trackSelfDescribingEvent(eventJson, context);

Maintainer quick start

Part of the Snowplow JavaScript Tracker monorepo.
Build with Node.js (18 - 20) and Rush.

Setup repository

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

Find out more

Technical DocsSetup Guide
i1i2
Technical DocsSetup Guide

Copyright and license

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

Copyright (c) 2022 Snowplow Analytics Ltd.

All rights reserved.

4.4.0

4 months ago

4.6.1

2 months ago

4.6.0

2 months ago

4.2.0

6 months ago

4.1.1-dev.1

7 months ago

4.1.1-dev.0

7 months ago

4.1.1-dev.2

6 months ago

4.6.3

1 month ago

4.6.2

2 months ago

4.0.2-dev.1

8 months ago

4.0.2-dev.0

8 months ago

4.5.0

3 months ago

4.3.1

6 months ago

4.3.0

6 months ago

2.1.2

8 months ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.0

2 years ago

1.4.0

2 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

4 years ago

1.0.0-beta.0

4 years ago

1.0.0-beta.1

4 years ago

0.2.0-beta.0

4 years ago

0.2.0

4 years ago

0.1.7

4 years ago

0.1.7-beta.0

4 years ago

0.1.6

4 years ago

0.1.4

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.1.0-alpha.17

5 years ago

0.1.0-alpha.16

5 years ago

0.1.0-alpha.15

5 years ago

0.1.0-alpha.14

6 years ago

0.1.0-alpha.13

6 years ago

0.1.0-alpha.12

6 years ago

0.1.0-alpha.11

6 years ago

0.1.0-alpha.10

6 years ago

0.1.0-alpha.9

6 years ago

0.1.0-alpha.8

6 years ago

0.1.0-alpha.7

6 years ago

0.1.0-alpha.6

6 years ago

0.1.0-alpha.5

6 years ago

0.1.0-alpha.4

6 years ago

0.1.0-alpha.3

6 years ago

0.1.0-alpha.2

6 years ago

0.1.0-alpha.1

6 years ago

0.1.0-alpha.0

6 years ago