Loops Beta
3 minute read
Loops is an email platform for SaaS companies for sending marketing and transactional emails from the same platform.
This integration is built by the Loops team. Contact the Loops support team for any assistance.
Find the open source transformer code for this destination in the GitHub repository.
Connection compatibility
| Destination Information | |||
|---|---|---|---|
| |||
Get started
Once you have confirmed that the platform supports sending events to Loops, follow these steps:
- From your RudderStack dashboard, add the source. Then, from the list of destinations, select Loops.
- Assign a name to your destination and click Continue.
Connection settings
| Setting | Description |
|---|---|
| API Key | Specify your Loops API key. |
Identify
You can use the identify event to create or update contacts in Loops.
A sample identify call is as shown:
rudderanalytics.identify("1hKOmRA4GRlmr123", {
email: "alex@example.com", // Required for new contacts
name: "Alex Keener",
country: "United States",
})Make sure to pass the unique user identifier as the first parameter in your identify call.
Note that:
emailis a required field for adding new contacts in Loops.- The existing contacts are updated in Loops based on the provided
userIdproperty. If an existing contact in Loops doesn’t have auserId, Loops attempts to match based on the providedemail. - The
identifytraits are automatically added to the contact record as properties.
Manage mailing list subscriptions
To manage a contact’s mailing list subscriptions, add a mailingLists property to match the expected API format:
rudderanalytics.identify("1hKOmRA4GRlmr123", {
email: "alex@example.com",
name: "Alex Keener",
country: "United States",
mailingLists: {
clxf1nxlb000t0ml79ajwcsj0: true,
clxf2q43u00010mlh12q9ggx1: false
},
})In the above example, the contact with the identifier 1hKOmRA4GRlmr123 is added to the mailing list with the ID clxf1nxlb000t0ml79ajwcsj0 and unsubscribed from the mailing list with the ID clxf2q43u00010mlh12q9ggx1.
Track
You can use the track event to send user actions to Loops, which in turn are used to trigger loops.
The event name should match the name of the event in Loops. Data sent in the properties object will be sent as event properties to Loops, for use in your emails.
Create events and define their expected properties in Settings > Events in your Loops dashboard.
A sample track call sent to Loops is shown below:
rudderanalytics.track("Signup", {
firstName: "Alex",
email: "alex@example.com",
plan: "Pro"
})Note that:
- You should identify the contact before sending a
trackevent so that the event can be associated with a specific contact in Loops. - RudderStack persists any values in
context.traitsfrom your previousidentifycall in thetrackevent properties and updates the contact record in Loops accordingly.
FAQ
Where can I find the Loops API key?
- Go to your Loops API Settings page.
- Generate or use an existing API key.
- Copy the key and paste it in the API Key field in the RudderStack dashboard.