Analytics collection was introduced in version 4.1.0 and is enabled by default. You can disable it at any time if it doesn’t fit your use case.
What is Analytics Collection?
While standard data collection gathers device information (hardware, software, network), analytics collection focuses on how users interact with your app:- Screen transitions and navigation patterns
- UI element interactions (taps, swipes, form fills)
- Timing metrics (time spent on screens)
- User behavior patterns
Analytics data is anonymous and doesn’t capture specific content like text you type, images you view, or sensitive information. It only captures interaction patterns.
Why Use Analytics?
Analytics collection helps detect fraud patterns that device data alone might miss:Bot Detection
Automated bots interact with apps differently than humans. Analytics can identify unnatural click patterns, superhuman speeds, and scripted behaviors.
Account Takeover Prevention
Legitimate users have consistent behavioral patterns. Sudden changes in navigation or interaction style may indicate account compromise.
Fraud Ring Identification
Fraudsters often use similar attack patterns. Analytics helps identify groups of users exhibiting identical behaviors.
Enhanced Risk Scoring
Combining device data with behavioral data provides more accurate risk assessments, reducing false positives and false negatives.
What Data is Collected?
Analytics collection captures UI interactions without recording specific content:Activity Lifecycle Events
- How long users spend on each screen
- Navigation patterns through your app
- Whether behaviors match typical user flows
UI Interaction Patterns
Starting with version 4.1.0, the SDK tracks:- View interactions: Buttons clicked, switches toggled, etc.
- Scroll behavior: Scrolling speed and patterns
- Form interactions: Fields focused (but not content typed)
- Gesture patterns: Tap, swipe, and pinch behaviors
Enabling and Disabling Analytics
Analytics collection is controlled with a single method:Enable Analytics (Default)
Disable Analytics
Java Example
Performance Considerations
Analytics collection is designed to have minimal impact on your app:Memory Usage
Memory Usage
Impact: NegligibleAnalytics collection uses minimal memory to track events. The SDK buffers events efficiently and flushes them periodically.
Version 4.2.4 fixed a memory leak that could occur with analytics disabled in apps with many Activities. Always use the latest SDK version.
CPU Usage
CPU Usage
Impact: Very LowEvent tracking happens on background threads and doesn’t block the main UI thread. Users won’t notice any performance degradation.
Battery Consumption
Battery Consumption
Impact: MinimalThe SDK is optimized to minimize battery drain. Analytics collection adds less than 1% to overall battery consumption in typical use.
Network Usage
Network Usage
Impact: LowAnalytics data is transmitted along with device data during
collectForSession(). The additional payload is typically less than 10KB.Single Page Applications (SPAs)
If your app uses a single Activity with fragments or a single-page architecture:When to Use Analytics
Decide whether to enable analytics based on your use case:Enable Analytics If:
High-risk transactions
Account creation
Targeted by fraud
Enhanced accuracy needed
Consider Disabling If:
Your user base is particularly privacy-conscious, though analytics doesn’t collect PII. Your app has a minimal UI with few interactions (behavioral data may not add value). You’re building a game or performance-sensitive app where every millisecond matters (though impact is minimal). Your industry has specific regulations that limit behavioral tracking (consult your legal team).Combining with Data Collection
Analytics works alongside standard data collection:You don’t need to call separate methods for analytics. When enabled, analytics data is automatically included in your
collectForSession() call.Version History
Analytics collection has evolved across SDK versions:| Version | Enhancement |
|---|---|
| 4.1.0 | Initial release of UI element collection capabilities |
| 4.1.2 | Added collection of additional data points |
| 4.1.3 | Fixed transmission delay in Single Page Applications |
| 4.2.2 | Fixed race condition in collection completion handlers |
| 4.2.3 | Fixed gradle implementation for proper library installation |
| 4.2.4 | Fixed memory leak when analytics disabled in apps with many Activities |
| 4.3.0 | Added completion handler feature for post-collection actions |
Privacy and Compliance
Analytics collection is designed with privacy in mind:No PII Collected
Analytics tracks interaction patterns, not personal data. No names, emails, phone numbers, or account details are captured.
No Content Recording
The SDK doesn’t capture what you type, what you see, or what’s displayed on screen. Only interaction types are recorded.
GDPR Compliant
Behavioral patterns qualify as non-PII technical data. However, if required by your privacy policy, you can disable analytics.
User Control
You control whether analytics is enabled. Users don’t need to grant additional permissions for analytics collection.
Disclosure Requirements
While analytics data is anonymous, you may want to disclose its use in your privacy policy:Sample privacy disclosure:“We use Kount’s fraud detection service to protect your account. Kount collects device information and interaction patterns (but not personal data or content) to identify fraudulent activity.”
Troubleshooting
Analytics not working in SPA
Analytics not working in SPA
Symptom: Data not transmitted in single-Activity apps.Solution: Upgrade to version 4.1.3 or later, which fixes transmission delays in SPAs.
Memory leak with analytics disabled
Memory leak with analytics disabled
Symptom: Memory usage grows over time in apps with many Activities.Solution: Upgrade to version 4.2.4 or later, which fixes the memory leak.
Collection completes too early
Collection completes too early
Symptom: Success callback fires before data transmission finishes.Solution: Upgrade to version 4.2.2 or later, which fixes a race condition in completion handlers.
Next Steps
Data Collection
Learn about device data collection fundamentals
Configuration Guide
Complete SDK configuration reference
Environments
Learn about Test vs Production environments
API Reference
Explore the complete SDK API
