Tracking Users

With user tracking APIs, you can create a new user or update existing users. For each customer being created/updated you will need to provide a unique identifier of this customer. The identifier can be a customer's email id or mobile number or Shopify customer id if you have one.

API Example

Node JS
// Prepare Request input data
const requestBody = {
id: 'lksjfiwowior', // Customer's unique identifier.
// Reserved attributes, used for campaigns.
name: 'John Wick',
mobile: '9876543210',
// Add your own custom customer variables here, ie:
subscriptionType: 'pro',
region: 'Mumbai',
totalPurchaseTillNow: 30000
// Call API
const request = require('request-promise');
method: 'POST',
uri: '',
headers: {
Accept: 'application/json',
'x-growlytics-key': '<GROWLYTICS-API-KEY>'
body: requestBody

Terms & Considerations

  1. 1.
    Custom Attribute names must be less than 50 characters.
  2. 2.
    Custom Attribute names are case-sensitive.
  3. 3.
    Allowed data types for event attributes:String, Number, Boolean, Date
  4. 4.
    A maximum of 50 Event Attributes allowed per custom event.
  5. 5.
    In a Customer Profile, you can set a maximum number of 50 custom attributes.
  6. 6.
    Data types of each attributes are defined when they are tracked for the first time. For the second time, if the data type is not matching with the original data type, attributes will be ignored.