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.
post
https://dc.growlytics.in/track/user
/track/user

API Example

Node JS
1
// Prepare Request input data
2
const requestBody = {
3
id: 'lksjfiwowior', // Customer's unique identifier.
4
attributes:{
5
// Reserved attributes, used for campaigns.
6
name: 'John Wick',
7
8
mobile: '9876543210',
9
10
// Add your own custom customer variables here, ie:
11
subscriptionType: 'pro',
12
region: 'Mumbai',
13
totalPurchaseTillNow: 30000
14
}
15
};
16
17
// Call API
18
const request = require('request-promise');
19
request({
20
method: 'POST',
21
uri: 'https://dc.growlytics.in/track/user',
22
headers: {
23
Accept: 'application/json',
24
'x-growlytics-key': '<GROWLYTICS-API-KEY>'
25
},
26
body: requestBody
27
});
Copied!

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.
Last modified 7mo ago