Table of Contents | ||
---|---|---|
|
Note |
---|
This article relates to both journy.io's SDKs and Twilio Segment SDKs. |
Table of Contents | ||
---|---|---|
|
...
journy.io’s Ruby library lets you record data from your platform, from your Ruby code.
...
The identify
call has the following fields:
Field | Type | Description |
| String | ID for this user in your database. Optional if |
| String | The ID associated with the user when you don’t know who they are. Optional if |
| Hash | A |
| Hash | A |
| Hash | Specifies which destinations this should be sent to. |
| Time | Represents the time when the action took place. This is most useful if you’re importing historical data. If the |
| String | Unique identifier for each message that lets you find an individual message across the API. |
Identifying users happen incremental: You can identify users with a subset of traits
; and later make another identify call with another subset of traits
. The result of both identify calls will be the union of all traits
.
...
The group
call has the following fields:
FIELDS | TYPE | DESCRIPTION |
| String | ID for this user in your database. Optional if |
| String | The ID associated with the user when you don’t know who they are. Optional if |
| String | The ID of the group. |
| Hash | A hash of traits you know about the group. For a company, they might be things like |
| Hash | A |
| Hash | Specifies which destinations this should be sent to. |
| Time | Represents the time when the action took place. This is most useful if you’re importing historical data. If the |
| String | Unique identifier for each message that lets you find an individual message across the API. |
Note | ||
---|---|---|
To identify a group, without adding a user, you can use
|
...
The track
call has the following fields:
Field | Type | Description |
| String | ID for this user in your database. Optional if |
| String | The ID associated with the user when you don’t know who they are. Optional if |
| String | The name of the event you’re tracking. We recommend human-readable names like Song Played or Status Updated. |
| Hash | A |
| Hash | A |
| Hash | Specifies which destinations this should be sent to. |
| Time | Represents the time when the action took place. This is most useful if you’re importing historical data. If the |
| String | Unique identifier for each message that lets you find an individual message across the API. |
Find details on best practices in event naming as well as the track
method payload in the journy.io Spec.
...
The page
call has the following fields:
Field | Type | Description |
| String | ID for this user in your database. Optional if |
| String | The ID associated with the user when you don’t know who they are. Optional if |
| String | The name of the page, for example Signup or Home. |
| String | The category of the page. Useful for things like ecommerce where many pages might live under a larger category. Note: if you only pass one string to |
| Hash | A |
| Hash | A |
| Hash | Specifies which destinations this should be sent to. |
| Time | Represents the time when the action took place. This is most useful if you’re importing historical data. If the |
| String | Unique identifier for each message that lets you find an individual message across the API. |
Find details on the page
payload in the journy.io Spec.
...
FIELD | TYPE | DESCRIPTION |
| Proc | A handler which is called whenever errors are returned from the API. Useful for debugging and first time destinations. |
| FixNum | The max number of messages to put in the queue before refusing to queue more (defaults to |
| FixNum | The max number of events/identifies to send in a single batch (defaults to |
| TrueClass|FalseClass | If true, the requests don’t hit the server and are stubbed to be successful (defaults to |
...
Tip: Need help integrating journy.io to your web-site and/or App?
Reach out to our support team
...
or book time to make it together
...