Skip to main content

Get Started

The Android Pulse Analytics SDK is a private library that offers numerous features, including:

  • Collection, storage, and transmission of predefined app-, user-, and network metrics-related information for subsequent analysis and report generation on the backend side
  • A\B experiments management
  • Remote Settings management

The Pulse Analytics SDK is written in Kotlin.

Setting up PAanalytics

Artifacts

PAanalytics is split into a few different artifacts to allow for more granular control over your dependencies. The following table shows the available artifacts and their purpose:

Artifact IDDependencies
picsart-analyticsMain artifact, contains API for event/request logging, remote settings API.
debug-componentsDebug components including screens that provide additional information about the SDK state
auto-eventsIncludes auto event API to track views automatically.

Installation

Add the following lines into your gradle files:

// define repository
repositories {
maven { url = uri("https://nexus.picsart.tools/service/local/repositories/releases/content/") }
}

// include dependency
dependencies {
implementation("com.picsart.studio:<artifact>:<version>")
}

Setup

  1. Initialize PAanalytics SDK with your application context, configuration.

    class SampleApplication : Application() {
    override fun onCreate() {
    super.onCreate()
    PAanalytics.initialize(
    this,
    Configuration.Builder()
    .setListener(createAnalyticsListener())
    .setIsNetworkMonitoringEnabled(true)
    .setIsAttributeLoggingEnabled(true)
    .build())
    }
    }
  2. Configure and enable auto event feature.

     AutoEvents.enable(AutoEventsConfiguration.Builder().trackUserInteractions().build(), this)