Skip to content

LLM:Analytics

Gabriel Restori Soares edited this page Aug 16, 2022 · 10 revisions

Analytics

We use a lightweight opt-out analytics layer composed of different APIs and SDKs.

These tools are targeted towards internal contributors only or with

  • Adjust integration 🠒 Installs data analytics

    Several dev environments are available to track installs of apps Debug, Staging and Prod

    In order to log events add this to your target build dot-env file

    DEBUG_ADJUST_LOGS=true
    

    For more details on how to work with the SDK check the adjust doc here

  • Segment integration 🠒 General use analytics

in order to track events we use segment API with specific react API

import { Track, TrackScreen } from "../analytics";
import Button from "./Button";

...
<Track
  onMount
  event={`Event - ${data}`}
  eventProperties={{ myData: data }}
/>
<TrackScreen category="ScreenCategory" name="FirstScreen" />
<Button onPress={callback} event="ButtonPress" eventProperties={{ myData: data }} />
...

Track helps track events that can be linked to a component lifecycle.

TrackScreen tracks mount events on a page with a formatted category (section of the app) and screen name.

Button helps track click/press events with event and eventProperties props.

In order to debug locally the events that are being sent to Segment add this to your local dot-env file:

ANALYTICS_CONSOLE=1
Clone this wiki locally