Skip to content

Commit e0b55a1

Browse files
Merge pull request #5455 from segmentio/pr/5451
Loops (Actions) Destination
2 parents 087b15c + 58513b4 commit e0b55a1

File tree

1 file changed

+71
-0
lines changed
  • src/connections/destinations/catalog/actions-loops

1 file changed

+71
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
title: Loops (Actions) Destination
3+
hide-boilerplate: true
4+
hide-dossier: true
5+
beta: true
6+
private: true
7+
id: 63360a5fe290ca3fdfad4a68
8+
---
9+
10+
{% include content/plan-grid.md name="actions" %}
11+
12+
[Loops](https://loops.so?utm_source=segmentio&utm_medium=docs&utm_campaign=partners){:target:="_blank"} is a modern email platform for SaaS, a better way to send marketing and transactional email.
13+
14+
You can use this Segment destination to create and update your Loops contacts and trigger email sending with events.
15+
16+
Loops maintains this destination. For any issues with the destination, [contact their Support team](mailto:[email protected]).
17+
18+
## Getting started
19+
20+
1. From the Segment web app, click **Catalog**, then click **Destinations**.
21+
2. Search for “Loops (Actions)” in the Destinations Catalog, and select the destination.
22+
3. Click **Configure Loops**.
23+
4. Select an existing Source to connect to Loops and click **Next**.
24+
5. On the Setup page, enter a name for your destination and click **Create destination**.
25+
6. Open Loops and generate an API key from [Settings > API](https://app.loops.so/settings?page=api){:target="_blank"}. Click "Generate key" then click the "Copy to clipboard" icon.
26+
7. Open the Segment app, go to the Settings page inside your Loops destination, and paste your API key. Then, click "Save Changes".
27+
28+
## Create or update contacts
29+
30+
You can create and update Loops contacts by using Segment's [Identify method](/docs/connections/spec/identify/), like this:
31+
32+
```javascript
33+
analytics.identify("test-user-a5h7xb", {
34+
35+
firstName: "Adam",
36+
favoriteColor: "blue",
37+
favoriteNumber: 42
38+
});
39+
```
40+
41+
If the email address or user ID do not exist in your contacts, a new contact will be created. If the email address or user ID already exists, the existing contact will be updated with the data sent in the Identify call.
42+
43+
Go to the Mappings tab inside your Loops destination and click **New Mapping**. Select **Create or update a contact**.
44+
45+
It is important that you set up the data mapping properly in step 3 of the "Create or update a contact" form. This is where you can select which data is sent on to Loops and into which fields. Loops provides an example default mapping in the form, but you should make sure that you set up the mapping to capture the correct data in the correct fields (you may have some [custom fields in Loops](https://loops.so/docs/add-users/properties){:target="_blank"} that the default mapping doesn't cover, for example).
46+
47+
You can pass any custom fields that you're using in Loops inside "Custom Contact Attributes".
48+
49+
Once you have completed the mapping you can send a test event. After you submit a test event, you can verify everything is set up correctly by looking for the contact on the [Audience](https://app.loops.so/audience){:target="_blank"} page in your Loops account.
50+
51+
Loops has a full tutorial for creating and updating contacts [in the Loops docs](https://loops.so/docs/add-users/segment#create-or-update-contact){:target="_blank"}.
52+
53+
## Sending events
54+
55+
In Loops you can send emails [triggered by events](https://loops.so/docs/loop-builder/triggering-emails){:target="_blank"}. You can trigger these events from Segment by using the [Track method](/docs/connections/spec/track/), like this:
56+
57+
```javascript
58+
analytics.track("User Registered");
59+
```
60+
61+
When you make a Track call, Segment will pass this event data on to Loops, which can then send emails based on [email-sending triggers](https://loops.so/docs/loop-builder/loop-triggers){:target="_blank"} you've set up in your account.
62+
63+
To set up event sending with Segment, go to the Mappings tab inside your Loops destination and click **New Mapping**. Select **Send Event**.
64+
65+
In the next page, enter the name of the event you're tracking into the "Event Name" field (for example, "User Registered" from the example above). If you have not already created the contact in Loops, you need to include an email address in your mapping, as Loops requires a contact for each event.
66+
67+
Now you are able to send a test event. You can verify that the event was triggered properly in your Loops account from the [Events](https://app.loops.so/settings?page=events){:target="_blank"} page.
68+
69+
Read the tutorial for sending events [in the Loops docs](https://loops.so/docs/add-users/segment#send-event){:target="_blank"}.
70+
71+
{% include components/actions-fields.html %}

0 commit comments

Comments
 (0)