In the RudderStack dashboard, the Setup tab in the source page has an SDK installation snippet containing both the write key and the data plane URL. You can use it to integrate the Kotlin SDK into your project.
Step 1: Install Kotlin SDK
The steps covered in the below sections will help you integrate the RudderStack Kotlin SDK into your Android project:
Replace the WRITE_KEY and DATA_PLANE_URL parameters with the Kotlin source write key and the data plane URL obtained in Prerequisites.
Step 3: Identify users
You can use the identify event to identify a user and associate them with their actions. It also enables you to record any traits about them like their name, email, etc.
In the above snippet, the track method logs an event called Order Completed along with two event properties revenue and currency that provide additional context to the event.
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.