Socket
Book a DemoInstallSign in
Socket

@fullstory/segment-react-native-plugin-fullstory

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fullstory/segment-react-native-plugin-fullstory

Integrate FullStory with your Segment analytics in your React-Native app.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
2.6K
-29.5%
Maintainers
2
Weekly downloads
 
Created
Source

@fullstory/segment-react-native-plugin-fullstory

CircleCI

EnrichmentPlugin for FullStory. This is a segment analytics plugin that wraps @fullstory/react-native.

Prerequisite

Setting up FullStory

Please make sure that your application is correctly set up with FullStory. See FullStory's React Native documentation to get started.

Setting up Segment

This plugin works in conjunction with @segment/analytics-react-native. Follow Segment's installation instructions.

Installation

Install the @fullstory/segment-react-native-plugin-fullstory and @fullstory/react-native dependencies.

yarn add @fullstory/segment-react-native-plugin-fullstory @fullstory/react-native
# or
npm install --save @fullstory/segment-react-native-plugin-fullstory @fullstory/react-native

Run pod install after the installation to autolink the FullStory SDK.

Usage

In your code where you initialize the analytics client call the .add({ plugin }) method with an FullStoryPlugin instance.

// App.js

import { createClient } from '@segment/analytics-react-native';
import { FullStoryPlugin } from '@fullstory/segment-react-native-plugin-fullstory';

const segmentClient = createClient({
  writeKey: 'SEGMENT_WRITE_KEY',
});

const plugin = new FullStoryPlugin({
  // configurations
  enableFSSessionUrlInEvents: true,
});

segmentClient.add({ plugin });

Configurations

The plugin accepts a configuration object with the following properties:

PropertyDescription
enableFSSessionUrlInEventsInsert FS session URL to Segment event properties. Defaults to true.
allowlistAllTrackEventsSend all track events as FS custom events. Defaults to false.
enableIdentifyEventsEnable Segment identify events to be sent as FS identify events. Defaults to true.
allowlistTrackEventsAn array of event names to allow to send to FullStory. To allowlist all events, use allowlistAllTrackEvents.
enableSendScreenAsEventsSend screen events as FS custom events. Defaults to false.
enableGroupTraitsAsUserVarsEnable group event traits to be passed into FS user vars. Defaults to false.

Example

We included a simple react native app that implements the plugin under ./example. See example README for additional instructions.

License

MIT

Keywords

fullstory

FAQs

Package last updated on 12 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.