You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/destinations/catalog/freshsales/index.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ You can use `identify` to create a lead or a contact when a website visitor fill
19
19
### User ID
20
20
`userId` is a mandatory field which is used to identify the lead or contact in Freshsales. If your user identifier is not email, then email has to be a part of traits.
21
21
22
-
<pre>
22
+
```json
23
23
{
24
24
"userId": "97980cfea0067",
25
25
"traits": {
@@ -32,11 +32,11 @@ You can use `identify` to create a lead or a contact when a website visitor fill
32
32
}
33
33
}
34
34
}
35
-
</pre>
35
+
```
36
36
37
37
By default, every `identity` is created as a lead. If you'd like an identity to be a contact, you'd need to pass `fs_contact` as `true` as a part of traits.
38
38
39
-
<pre>
39
+
```json
40
40
{
41
41
"userId" : "97980cfea0067",
42
42
"traits" : {
@@ -50,7 +50,7 @@ By default, every `identity` is created as a lead. If you'd like an identity to
50
50
}
51
51
}
52
52
}
53
-
</pre>
53
+
```
54
54
55
55
### Traits
56
56
`traits` are pieces of information you know about a user that are included in an `identify` method.
@@ -72,7 +72,7 @@ As part of traits, you can send custom fields created in Freshsales by using the
72
72
### Objects:
73
73
Accounts and Deals associated to a contact or lead can also be updated in Freshsales. The objects company and deal in the identity correspond to the Accounts and Deals in Freshsales. You can pass the `traits` of the company or the deal along with the respective objects in the identity.
74
74
75
-
```
75
+
```json
76
76
{
77
77
"userId" : "97980cfea0067",
78
78
"traits" : {
@@ -98,7 +98,7 @@ You can track activities of your website visitors. If a user is subscribing to a
98
98
### Track request payload
99
99
100
100
101
-
```
101
+
```json
102
102
{
103
103
"userId" : "john.doe@example.com",
104
104
"event": "Email Bounced",
@@ -120,7 +120,7 @@ When you call a `page` event, we send a pageview to Freshsales. You can send ext
Both `email` and `displayName` are special traits that will be passed to FullStory to be used in their interface as explained in [FullStory's docs](https://help.fullstory.com/hc/en-us/articles/360020828113){:target="_blank"}. These traits are optional.
52
52
53
-
```
53
+
```js
54
54
analytics.identify("userId123", {
55
55
email:"john.doe@example.com",
56
56
displayName:"John Doe"
@@ -63,7 +63,7 @@ If you're not familiar with the Segment Specs, take a look to understand what th
0 commit comments