Skip to content

Commit 0f87a6a

Browse files
authored
Update marketo V2 identify docs
1 parent 69dc8be commit 0f87a6a

File tree

1 file changed

+20
-5
lines changed
  • src/connections/destinations/catalog/marketo-v2

1 file changed

+20
-5
lines changed

src/connections/destinations/catalog/marketo-v2/index.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,20 @@ Next, create a Service and get Client Secret and Client ID from that Service.
5959
----------
6060
## Identify
6161

62-
When you call [`Identify`](/docs/connections/spec/identify/), Segment uses [Marketo's REST API](http://developers.marketo.com/rest-api/lead-database/leads/#create_and_update) to upsert leads. We'll map the following spec'd Segment traits to Marketo's standard fields:
62+
### Cloud-mode
63+
When you call [`Identify`](/docs/connections/spec/identify/) in Cloud-mode, Segment uses [Marketo's REST API](http://developers.marketo.com/rest-api/lead-database/leads/#create_and_update) to create and update leads server-side.
64+
65+
### Device-mode
66+
When you call [`Identify`](/docs/connections/spec/identify/) in Device-mode, Segment uses [Marketo's Background Form Submission](https://developers.marketo.com/blog/make-a-marketo-form-submission-in-the-background/) to create and update leads client-side.
67+
68+
There are additional steps you must take to send `.identify()` calls in Device-mode.
69+
70+
1. Create an empty form in Marketo. This form will always be hidden and can remain empty as long as the traits you need downstream are mapped in the **Marketo Custom Fields** setting.
71+
2. Input the associated **Marketo Form ID** and **Marketo Form URL** in your Marketo V2 destination settings. This information can be found in Form Actions > Embed Code in the Marketo Design Studio:
72+
![](images/form-info.png)
73+
74+
### Traits
75+
Regardless of connection mode, we'll map the following spec'd Segment traits to Marketo's standard fields:
6376

6477
| **Segment Traits** | **Marketo Standard Fields** |
6578
| --------------------- | --------------------------- |
@@ -96,15 +109,17 @@ analytics.identify('1234', {
96109
});
97110
```
98111

99-
If you'd like any other traits from your `.identify()` call to update a field in Marketo, you must map them in your Destination settings. **Note:** Custom `address` traits must go in the top level `traits` object, not in the `address` object.
112+
If you'd like any other traits from your `.identify()` call to update a field in Marketo, you must create custom fields in Marketo and map them in the **Marketo Custom Fields** destination setting.
100113

101114
![](images/c1X7nf6wDIX+.png)
102115

103116
- **Segment Trait**. The name of the trait sent in your `.identify()` call.
104-
- **Marketo Field Name**. The Marketo REST API name for the field. To get the REST API name for your fields in Marketo, click Field Management, then Export Field Names. A spread sheet will download and the first column is the REST API name for your Marketo fields. **Make sure to copy and paste the REST API name exactly. This is case sensitive.**
117+
- **Marketo Field Name**. The Marketo REST API name for the field. To get the REST API name for your fields in Marketo, click Field Management, then Export Field Names. A spreadsheet will download and the first column is the REST API name for your Marketo fields. **Make sure to copy and paste the REST API name exactly. This is case sensitive.**
105118
- **Marketo Field Type**. When you are in Field Management, click on the field name in the bar on the right and you'll see the field type.
106119
![](images/cubJQKkGLfF+.png)
107120

121+
**Note:** Custom `address` traits must go in the top level `traits` object, not in the `address` object.
122+
108123
## Track
109124

110125
When you call [`Track`](/docs/connections/spec/track/), Segment maps the event to a pre-defined [Marketo Custom Activity](http://docs.marketo.com/display/public/DOCS/Understanding+Custom+Activities). There are two important things to note when sending `.track()` calls to Marketo:
@@ -233,8 +248,8 @@ There are a few necessary steps that have to be taken to migrate from Segment's
233248
1. Your Marketo credentials in your Segment Destination settings need to be updated. Our Marketo Destination used Marketo's SOAP API and Marketo V2 uses Marketo's REST API which requires different credentials. Check out the [Getting Started](/docs/connections/destinations/catalog/marketo-v2/#getting-started) guide for what credentials you'll need.
234249
2. Two custom fields must be created in Marketo: userId and anonymousId. Check out [Getting Started](/docs/connections/destinations/catalog/marketo-v2/#2-you-must-create-a-user-id-and-an-anonymous-id-field-in-marketo) for exact details on how to create these custom fields in Marketo.
235250
3. `Track` calls must be mapped in your Destination settings. Our Marketo Destination sent `track` calls as a Munchkin Visit WebPage event in Marketo. In Marketo V2, we'll send your track calls to your Marketo Custom Activities. Detailed instructions [here](/docs/connections/destinations/catalog/marketo-v2/#track).
236-
4. If there are any custom Lead fields that you'd like sent to Marketo in your `Identify` calls, you must add them in your Destination settings. Detailed instructions [here](/docs/connections/destinations/catalog/marketo-v2/#identify).
237-
5. Update anything in Marketo that rely on the way V1 sends `.track()` events to be triggered by your custom activities. For example, our V1 Marketo destination sent track events as a "Visit Web Page" event with `/event/<your_event_name>`. So if you a workflow that is triggered by a "Visit Web Page" event where the web page contains `/event/<your_event_name>`, you'll have to swap out the "Visit Web Page" event trigger you have with your Custom Attribute Trigger. In the right side bar, click the "Custom" folder under "Triggers" and select the trigger that you set for your custom activity:
251+
4. If there are any custom Lead fields that you'd like sent to Marketo in your `Identify` calls, you must create custom fields in Marketo and add them in your Destination settings. In addition, if you are connecting Marketo V2 in Device-mode, an empty form must be created in Marketo to create and update leads. Detailed instructions [here](/docs/connections/destinations/catalog/marketo-v2/#identify).
252+
6. Update anything in Marketo that rely on the way V1 sends `.track()` events to be triggered by your custom activities. For example, our V1 Marketo destination sent track events as a "Visit Web Page" event with `/event/<your_event_name>`. So if you a workflow that is triggered by a "Visit Web Page" event where the web page contains `/event/<your_event_name>`, you'll have to swap out the "Visit Web Page" event trigger you have with your Custom Attribute Trigger. In the right side bar, click the "Custom" folder under "Triggers" and select the trigger that you set for your custom activity:
238253
![](images/cPD4kP65buG+.png)
239254

240255

0 commit comments

Comments
 (0)