Sprig Cloud Mode Integration

Send events to Sprig using RudderStack cloud mode.

RudderStack lets you send your event data to Sprig via cloud mode.

Find the open source code for this destination in the GitHub repository.

Identify

You can use the identify call to create a user in Sprig.

A sample identify call is shown:

rudderanalytics.identify('1hKOmRA4GRlm', {
  firstName: 'Alex',
  lastName: 'Keener',
  email: "alex@example.com"
});

Traits mapping

RudderStack maps the following user attributes in the identify events to the corresponding Sprig fields:

RudderStack propertySprig property
userId
Required
userId
emailemailAddress
context.traitsattributes

Deleting a user

You can delete a user in Sprig using the Suppression with Delete regulation of RudderStack’s User Suppression API.

info
To delete a user, you must specify their userId and the Sprig API key in the event.

A sample regulation request body for deleting a user in Intercom is shown below:

{
  "regulationType": "suppress_with_delete",
  "destinationIds": [
    "2FIKkByqn37FhzczP23eZmURciA"
  ],
  "users": [{
    "userId": "1hKOmRA4GRlm",
    "apiKey": "<your_sprig_apiKey>"
  }]
}

See the Destinations guide for more information on obtaining the destinationId.

Track

The track call lets you record any user events along with the associated properties and send the information to Sprig.

A sample track call is shown:

rudderanalytics.track('Signup', {
  firstName: "Alex",
  lastName: "Keener",
  email: "alex@example.com"
});

Property mapping

RudderStack maps the following event properties in the track events to the corresponding Sprig fields:

RudderStack propertySprig property
userId
Required
userId
event
Required
events[0].event
timestamp
Required
events[0].timestamp
emailemailAddress


Questions? Contact us by email or on Slack