AccoilAccoil Developer Docs
Integrations

RudderStack

Forward RudderStack events to Accoil as a cloud mode destination.

Accoil supports RudderStack Cloud Mode as a destination. This integration forwards product usage data, user traits, and account-level attributes from your application to Accoil using Segment-compatible event formats.

Setup

1. Add Accoil as a Destination

In the RudderStack dashboard:

  1. Navigate to Destinations > Add Destination.
  2. Search for Accoil Analytics.
  3. Assign a name and enter your Accoil API key (found under Settings > Account Settings > General in Accoil).
  4. Save and enable the destination.

Supported Message Types

Event TypeSupportedNotes
identifyYes
trackYes
pageYesSent to Accoil as a track event
screenYesSent to Accoil as a track event
groupYes
aliasNo
recordNo

Event Mapping Details

identify Events

Used to identify users and send associated traits.

rudderanalytics.identify("user_12345", {
  email: "alex@example.com",
  name: "Alex Keener",
  createdAt: "2023-05-12T08:00:00Z",
  role: "admin",
  accountStatus: "trial"
});
FieldRequiredNotes
userIdYesUnique user identifier
traitsNoSent as-is to Accoil
timestampYesAutomatically handled by RudderStack (ISO 8601 or Unix format)
TraitPurpose
emailPrimary user identity (used in the Accoil UI)
nameDisplay name in Accoil
createdAtEnables tenure tracking
roleUseful for filtering and segmentation
accountStatusLifecycle segmentation (trial, paid, etc.)

track Events

Captures product activity by event name. Event properties are not persisted -- only the event name and timestamp are used for engagement metrics.

rudderanalytics.track("Feature Used");
FieldRequiredNotes
eventYesEvent name
userIdYesMust match an identified user
timestampYesAutomatically handled by RudderStack

group Events

Used to associate users with accounts and send account-level traits.

rudderanalytics.group("account_67890", {
  name: "Acme Corp",
  industry: "Fintech",
  employees: 120,
  plan: "enterprise",
  status: "paid",
  mrr: 100000,
  createdAt: "2022-01-15T09:00:00Z"
});
FieldRequiredNotes
groupIdYesUnique account identifier
userIdYesLinks the user to the account
traitsNoSent as-is to Accoil
timestampYesAutomatically handled by RudderStack
TraitPurpose
nameAccount name used in the Accoil UI
statusAccount state (free, trial, paid)
planSubscription tier (starter, pro, enterprise)
mrrMonthly recurring revenue (pass in cents)
createdAtEnables account tenure tracking

page Events

Sent as track events to Accoil. Useful for pageview analytics.

rudderanalytics.page("Cart", "Cart Viewed");
FieldRequiredNotes
nameYesPage name
userIdYesFrom a previous identify call
timestampYesAutomatically added by RudderStack

screen Events (Mobile)

Also sent as track events. Use to monitor screen views in mobile applications.

[[RSClient sharedInstance] screen:@"Main"
                properties:@{@"category" : @"Home"}];
FieldRequiredNotes
nameYesScreen name
userIdYesFrom a previous identify call
timestampYesAutomatically added by RudderStack

Data Handling Notes

  • Accoil does not persist custom properties from track events. Only the event name and timestamp are used.
  • Traits from identify and group events are stored and used for segmentation, dashboards, and engagement scoring.
  • Ensure consistent use of userId and groupId across your events.
  • Timestamps are automatically included and required for all events.

Troubleshooting

IssueWhat to Check
Events not showingConfirm the API key is correct
Missing accountsEnsure group calls are being sent
No user traitsVerify identify events are structured correctly
Data looks incompleteValidate timestamps and required fields

On this page