Skip to contentSkip to navigationSkip to topbar
On this page
Looking for more inspiration?Visit the
(information)
You're in the right place! Segment documentation is now part of Twilio Docs. The content you are used to is still here—just in a new home with a refreshed look.

Analytics React Native FullStory Plugin


FullStory(link takes you to an external page) lets product and support teams easily understand everything about the customer experience. The Segment integration for FullStory helps accurately identify your customers within the FullStory dashboard.

(information)

Info

The FullStory Analytics React Native destination plugin(link takes you to an external page) was built and is maintained by the FullStory team. For implementation questions and guidance, reach out to them.

Please make sure that your application is correctly set up with FullStory. See FullStory's React Native documentation(link takes you to an external page) to get started.


Installation

installation page anchor

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

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

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


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

1
// App.js
2
3
import { createClient } from '@segment/analytics-react-native';
4
import { FullStoryPlugin } from '@fullstory/segment-react-native-plugin-fullstory';
5
6
const segmentClient = createClient({
7
writeKey: 'SEGMENT_WRITE_KEY',
8
});
9
10
const plugin = new FullStoryPlugin({
11
// configurations
12
enableFSSessionUrlInEvents: true,
13
});
14
15
segmentClient.add({ plugin });

Configurations

configurations page anchor

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.

FullStory has included a simple React Native app that implements the plugin. See example README(link takes you to an external page) for additional instructions.