analytics

Version: stable

FUNCTION
init()
log_string()
log_int()
log_number()
log_table()
set_screen()
set_user_id()
set_user_property()
reset()
get_id()

Functions

init()

init(callback)

Initialise analytics

PARAMETERS

callback Function to invoke when initialised (self, ok, err)

log_string()

log_string(name,PARAMeter_name,PARAMeter_value)

Log an event with one string parameter. (Official docs https://firebase.google.com/docs/reference/cpp/namespace/firebase/logevent)

PARAMETERS

name Event name
PARAMeter_name Parameter name
PARAMeter_value Parameter value

log_int()

log_int(name,PARAMeter_name,PARAMeter_value)

Log an event with one integer parameter. (Official docs https://firebase.google.com/docs/reference/cpp/namespace/firebase/logevent_4)

PARAMETERS

name Event name
PARAMeter_name Parameter name
PARAMeter_value Parameter value

log_number()

log_number(name,PARAMeter_name,PARAMeter_value)

Log an event with one float parameter. (Official docs https://firebase.google.com/docs/reference/cpp/namespace/firebase/logevent_2)

PARAMETERS

name Event name
PARAMeter_name Parameter name
PARAMeter_value Parameter value

log_table()

log_table(name,PARAMeters_table)

Log an event with table parameters. (Official docs https://firebase.google.com/docs/reference/cpp/namespace/firebase/logevent_6)

PARAMETERS

name Event name
PARAMeters_table Table with parameters (key-value pairs)

set_screen()

set_screen(screen_name,screen_name)

Sets the current screen name and screen class, which specifies the current visual context in your app. (Official docs https://firebase.google.com/docs/reference/cpp/namespace/firebase/setcurrentscreen)

PARAMETERS

screen_name Screen name
screen_name Screen class

set_user_id()

set_user_id(user_id)

Sets the user ID property. (Official docs https://firebase.google.com/docs/reference/cpp/namespace/firebase/setuserid)

PARAMETERS

user_id User ID property

set_user_property()

set_user_property(name,property)

Set a user property to the given value. (Official docs https://firebase.google.com/docs/reference/cpp/namespace/firebase/setuserproperty)

PARAMETERS

name User property name
property User property value

reset()

reset()

Clears all data for this app from the device and resets the app instance id. (Official docs https://firebase.google.com/docs/reference/cpp/namespace/firebase/resetata)

PARAMETERS


get_id()

get_id()

Get the instance ID from the service. (Official docs https://firebase.google.com/docs/reference/cpp/namespace/firebase/getnstanceid)

PARAMETERS