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
  • Track User Attributes
  • User Login & Logout
  • Login User
  • Log Out

Was this helpful?

  1. Sdk Integrations
  2. Browser SDK

Track Users

In order to correlate sessions and errors with customer, or to see a list of customers with all session details, it is helpful to capture and display customer information on your Growlytics dashboard.

Track User Attributes

Use Growlytics.user.push to add/update session customer attributes. For example, when customer selects city for checking out furniture, you can update city attribute of the customer even though they haven't logged in.

index.js
Growlytics.user.push( {
  city: 'San Francisco'
});

User Login & Logout

Ensure log in and log out of users are implemented correctly during the visit to your website and users are authenticated.

Login User

Use Growlytics.user.identify method to associate user with Growlytics.

Growlytics.user.identify('THE_USER_ID_IN_YOUR_APP', {
  // Reserved customer properties (Used in campaigns)
  name: 'John Wick',
  email: 'john@gmail.com',
  mobile: '9876543210',

  // Custom properties
  subscriptionType: 'pro',
  region: 'Mumbai',
  totalPurchaseTillNow: 30000
});

name, email, and mobile are reserved keywords in the Growlytics platform. Growlytics will use these keywords to send emails, SMSes and more.

Log Out

Use this function to forcefully log out the current user.

Growlytics.user.logout();

Make sure you do logout() before you use Growlytics.identify(), or else previously identified user's data may get updated.

PreviousTrack EventsNextConfigure Web Push

Last updated 1 year ago

Was this helpful?

Customer id must be a string,(max 40 characters). Also, just like event tracking, Growlytics supports Number, BigInt, String, Boolean and Date data types for user attribute values. For further details refer to

event tracking considerations.