Setup (view based)

Modified on Thu, 22 Aug at 1:09 PM

  1. Add the CUX package repository URL to your root settings.gradle.kts at the end of repositories:
    repositories {
        ...
        maven(url = "https://packagecloud.io/cux/public-gradle/maven2")
    }
  2. Add the following to your module build.gradle.kts file:
    dependencies {
        implementation("io.cux:analytics-sdk:0.0.28")
        …
    }
        
  3. Add Internet permission in your AndroidManifest.xml file
    <uses-permission android:name="android.permission.INTERNET" />
  4. Use your token in onCreate method of Application
    class ShopApplication: Application() {
        override fun onCreate() {
            super.onCreate()
            CuxAnalytics.init(this, "{your_token}")
        }
    }
        
  5. You are ready to monitor your Application!

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article