Android SDK
Install Using Android Studio
Open the Project Structure dialog (
File > Project Structure...
).Choose
Dependencies
from the left pane, then the main module (e.g.app
).Click the
+
button in theDeclared Dependencies
pane, and choose1 Library Dependency
from the popup menu to open theAdd Library Dependency
dialog.In the
Add Library Dependency
dialog, typexyz.spindl
under Step 1 and press theSearch
button.Choose the
xyz.spindl
|sdk
result from the results table, and the highest version available.Make sure
implementation
is selected under Step 2, and pressOK
.
Initialize SDK
Setup a Spindl instance, e.g. in MainActivity
:
Track Events
Track events with the track
method:
name
is requiredproperties
are optional
Identify Users
Once customers enter their customer ID (such as email) and/or wallet information (e.g., after logging in), connect that to the analytics by calling the identify
method:
Last updated