Customer.io Reference
Last updated
Last updated
Supports HIPAA mode
Connection Modes:
Client-side | Server-side | |
---|---|---|
Web | ||
Mobile | ||
Server |
When you call identify(), if the user already exists, Freshpaint will attach the provided user properties to the corresponding user as Customer.io customer attributes by calling Customer.io's single request endpoint for their track api at endpoint: /api/v1/customers.
If the user does not exist, Freshpaint will create the user in Customer.io.
If your account supports both email
and id
as identifiers in Customer.io (this is the default setting for accounts created after June 2021), you can identify users using either one.
You can look at all the attributes collected with the user profile in Data & Integrations > Data Index.
If you want to add a custom user property, you just have to add it into the $user_props object in your identify. For example,
You can unsubscribe users in Customer.io by simply adding the unsubscribed: true key value pair to the identify call. For example,
Freshpaint events will be sent to Customer.io as Customer.io Events by hitting their track API endpoint at: https://track.customer.io/api/v1/customers/{identifier}/events
Make sure the identify call has gone out with either the email or id property prior to sending events to this destination. Anonymous events are only stored in Customer.io for 30 days.
You can send anonymous events to Customer.io containing an anonymous_id. When you set the anonymous_id on a person, we associate those anonymous events with a person. This lets you log events before people log in, sign up, or are otherwise identified, and then attribute those events to people after you identify them.
You can view all recent events in Customer.io's Activity Logs.
When you create a new workspace, anonymous event merging is on by default. If you created your workspace before July 2021, you must enable Anonymous event merging to associate anonymous events with people you identify.
Go to Settings > Workspace Settings.
Scroll down to Merge Settings and click Settings.
Turn on the Anonymous event merge setting.
Freshpaint will automatically send all page view events to Customer.io. Page views show up in Customer.io as events with the URL of the page as the name of the event.
Both client side and server side connections modes are available for this destination. You can read more about connection modes here.
Set up transformations to modify your data before it's sent to your destination. Read more about transformations here.
Customer.io has limits on the data collected by their track API. If you are using Freshpaint's HTTP API to send a batch of events to Customer.io at once, make sure you throttle the import
to 100-200 requests per second. Below are the payload size limits for their track API.
Customer.io limits user traits as listed below, referred to as Customers in Customer.io:
Data Type | Limit | Description |
---|---|---|
ID | 150 bytes | Max length of a person's ID value |
Attribute Name | 150 bytes | Max length of each attribute name |
Attribute Value | 1000 bytes | Max length of attribute values |
Unique attributes | 300 | Max number of attributes allowed per person or Identify call |
See Customer.io's documentation for more information.
Data Type | Limit | Description |
---|---|---|
Event Name | 100 bytes | Max length of each event name |
Event Data | 100000 bytes | Max length of each event data |
See Customer.io's documentation for more information.