LogoLogo
HomeDashboardProduct Docs
  • Introduction
  • Core Concepts
    • Events
    • Sessions
    • User/Customer Profile
  • PLATFORM INTEGRATIONS
    • Shopify Integration
  • Sdk Integrations
    • Browser SDK
      • Integrate SDK
      • Track Events
      • Track Users
      • Configure Web Push
      • Reading Session Identifer
      • Syncing Cart Items
    • Android SDK (Coming Soon)
      • Install Android Sdk
      • Identify Customers
      • Push Notification Integration
    • iOS SDK
      • Install iOS Sdk
      • Tracking User
      • Tracking Events
      • Push Notification Settings
        • Configure APNS In Growlytics
        • Configure Mobile App For Push
        • Handling Push Click
    • Other
      • Upload Customers using CSV
  • Channel Integrations
    • Email
      • Amazon SES
      • SendGrid
      • Custom SMTP
    • Mobile Push Notifications
      • Configure FCM Channel
    • Web Push Notifications
    • Ad Networks
      • Facebook Audiences
      • Google Ad Audiences
  • REST APIs
    • Overview
    • Tracking Users (Shopify Only)
    • Tracking Users (Non-shopify)
    • Tracking Events (Shopify Only)
    • Tracking Events (Non-shopify)
    • Syncing Products
    • Mobile App Apis
  • Webhooks
    • Coupon Webhook
    • Connector Webhooks
Powered by GitBook
On this page

Was this helpful?

  1. Sdk Integrations
  2. Android SDK (Coming Soon)

Identify Customers

This page will help you understand how you can manage customer profiles on Growlytics using Android sdk.

A User is automatically created in Growlytics platrorm when user opens the app first time.

Initially, there are very few properties captured for User Profile like city, country, device info etc. Depending on your product purpose, You can add more information to user profile with Analytics.identify() method.

There are two ways you can do this

  1. If your customer has logged in with your system's user id, then you can pass customer's id which is in your system. This will help you keeping unified profile across web, mobile and other platforms. An example is given below.

    // Prepare Attributes
    Map<String, Object> userAttributes = new HashMap<>();
    attributes.put("has_subscribed", true);
    attributes.put("total_cart_visits", 12);
    
    // Put them in growlytics user profile
    Analytics.getInstance(this).identify(userAttributes);
  2. Another way, if user has not logged in yet but you still want to keep information as anonymous user, you can do that as well. An example is given below.

    // Prepare Attributes
    Map<String, Object> userAttributes = new HashMap<>();
    attributes.put("has_subscribed", true);
    attributes.put("total_cart_visits", 12);
    
    // Put them in growlytics user profile
    Analytics.getInstance(this).identify(userAttributes);
PreviousInstall Android SdkNextPush Notification Integration

Last updated 5 years ago

Was this helpful?