Skip to content

Firebase Analytics

Configuration

Android

Modify build.gradle

dependencies {
    implementation 'com.senspark.ee:firebase-analytics:2.8.0'
}

iOS

Modify Podfile

pod 'ee-x/firebase-analytics', '2.8.0'

Basic usage

Initialization

#include <ee/Cpp.hpp>

auto plugin = ee::PluginManager::createPlugin<ee::IFirebaseAnalytics>();
co_await plugin->initialize();

Sets user property

plugin->setUserProperty("key", "value")

Tracks current screen

plugin->trackScreen("current_screen");

Logs an event

plugin->logEvent("event_name", {
    {"key1", 1},
    {"key2", 2.0},
    {"key3", "value3"}
});