1. 程式人生 > >Freshsales Destination Documentation

Freshsales Destination Documentation

Segment makes it easy to send your data to Freshsales (and lots of other destinations). Once you've tracked your data through our open source libraries we'll translate and route your data to Freshsales in the format they understand. Learn more about how to use Freshsales with Segment.

This destination is maintained by Freshsales. For any issues with the destination contact us at

[email protected]

Getting Started

You can create and update Freshsales Leads and Contacts through Segment. We support identify, page, and track methods.

Once your Segment source starts receiving data, you can send them to Freshsales by enabling this destination. You can enable it from Freshsales Admin Settings for Third Party Integrations. Select the Segment source from which data has to be forwarded to Freshsales.

You can also enable Freshsales destination from Segment destinations dashboard. You will have to provide the subdomain of your Freshales Account and an admin API key.

Identify

You can use identify to create a lead or a contact when a website visitor fills a webform. When you identify a user, we’ll pass that user’s information to Freshsales.

User ID

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.

{
  "userId": "97980cfea0067",
  "traits": {
    "firstName": "John",
    "lastName": "Doe",
    "email": "[email protected]",
    "cfAlternateNumber": "98765432",
    "company": {
      "name": "Example.com"
    }
  }
}

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.

{
  "userId" : "97980cfea0067",
  "traits" : {
    "firstName": "John",
    "lastName": "Doe",
    "email": "[email protected]",
    "fsContact": "true",
    "cfAlternateNumber": "98765432",
    "company": {
      "name": "Example.com"
    }
  }
}

Traits

traits are pieces of information you know about a user that are included in an ‘identify’ method.

Default Traits

Segment has reserved some traits that have semantic meanings for users. You should only use reserved traits for their intended meaning. Check the Segment Spec to get a list of reserved traits.

Default Traits

All attributes that are a part of traits should correspond to the internal names of those fields in Freshsales. Attributes that are not mapped with their corresponding fields are ignored.

However, we make exception to two attributes ‘title’ and ‘phone’ that are part of default traits. They are automatically mapped to Freshsales attributes ‘job_title’ and ‘work_number’ respectively.

Custom Traits:

As part of traits, you can send custom fields created in Freshsales by using their internal names in camel case. You can find internal names in corresponding field settings page. Also, custom fields will not be automatically created. You have to create them in Freshsales before proceeding to send data from Segment. To learn more about creating custom fields in Freshsales check this link.

Custom Traits

Objects:

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.

{
  "userId" : "97980cfea0067",
  "traits" : {
    "firstName": "John",
    "lastName": "Doe",
    "email": "[email protected]",
    "fsContact": "true",
    "company": {
      "name": "Example.com"
    },
    "deal" :{
      "name" : "Sample Deal",
      "amount": 1234
    }
  }
}

Track

You can track activities of your website visitors. If a user is subscribing to a newsletter and you want to track it, use track method to accomplish that. When you track an event, we will send that event to Freshsales.

Track request payload

{
  "userId" : "[email protected]",
  "event": "Email Bounced",
  "properties" : {
    "emailId": "110688",
    "emailSubject": "Welcome to Example.com",
    "campaignId": "123",
    "campaignName": "New Customer Discount"
  }
}

Segment has standardized a series of reserved event names that have special semantic meaning. We map these events to tools that support them whenever possible. See the Semantic Events docs for more detail. Also, custom events are supported.

Page

If a user is visiting your web pages and you want to track it, then use page method to do that. When you call a page event, we send a pageview to Freshsales. You can send extra pieces of information as part of properties. See the reserved properties for more detail.

Sample Page request payload

{
  "userId" : "[email protected]",
  "name": "Page view",
  "properties" : {
    "title": "Welcome to pricing page | Example.com",
    "url" : "http://example.com/pricing"
  }
}

Troubleshooting

Custom Fields Aren’t Updating

Make sure that the traits you’re passing through match the custom field’s internal name and data type.

Personas

You can send computed traits and audiences generated through Segment Personas to this destination as a user property. To learn more about Personas, reach out for a demo.

For user-property destinations, an identify call will be sent to the destination for each user being added and removed. The property name will be the snake_cased version of the audience name you provide with a true/false value. For example, when a user first completes an order in the last 30 days, we will send an identify call with the property order_completed_last_30days: true, and when this user no longer satisfies we will set that value to false.

When the audience is first created an identify call is sent for every user in the audience. Subsequent syncs will only send updates for those users which were added or removed since the last sync.

Settings

Segment lets you change these destination settings via your Segment dashboard without having to touch any code.

API token

You can find your Freshsales API token on the Integrations page under Profile Settings -> API Settings.

Freshsales subdomain

Provide the subdomain of your Freshsales account. So if your domain is segment.freshsales.io, then your subdomain is ‘segment’.

If you have any questions, or see anywhere we can improve our documentation, please let us know!

相關推薦

Freshsales Destination Documentation

Segment makes it easy to send your data to Freshsales (and lots of other destinations). Once you've tracked your data through our open source libraries we'

Mixpanel Destination Documentation

Segment makes it easy to send your data to Mixpanel (and lots of other destinations). Once you've tracked your data through our open source libraries we'll

CleverTap Destination Documentation

Segment makes it easy to send your data to CleverTap (and lots of other destinations). Once you've tracked your data through our open source libraries we'l

FoxMetrics Destination Documentation

FoxMetrics is a personalization platform that allows users to collect & analyze customer actions through computers, mobile, and web applications. The a

AutopilotHQ Destination Documentation

AutopilotHQ helps thousands of organizations around the world automate their marketing with visual and simple customer journey marketing software.This dest

Planhat Destination Documentation

Segment makes it easy to send your data to Planhat (and lots of other destinations). Once you've tracked your data through our open source libraries we'll

Wishpond Destination Documentation

This destination is currently in beta. If you are interested in joining, let us know!Segment makes it easy to send your data to Wishpond (and lots of other

Alexa Destination Documentation

Alexa helps improve your website’s SEO and conduct competitive analysis. They help your business get better marketing results. The Alexa Destination is ope

Clearbit Enrichment Destination Documentation

Clearbit Enrichment helps customers enrich and append real-time data to an email or domain, driving growth or powering your product with social data, locat

Postgres Destination Documentation

Segment makes it easy to send your data to (and lots of other destinations). Once you've tracked your data through our open source libraries we'll transla

Cxense Destination Documentation

This destination is currently in beta. If you are interested in joining, let us know!Segment makes it easy to send your data to Cxense (and lots of other d

Swrve Destination Documentation

This destination is currently in beta. If you are interested in joining, let us know!Segment makes it easy to send your data to Swrve (and lots of other de

Amazon S3 Destination Documentation

Segment makes it easy to send your data to Amazon S3 (and lots of other destinations). Once you've tracked your data through our open source libraries we'l

Curebit Destination Documentation

Segment makes it easy to send your data to Curebit (and lots of other destinations). Once you've tracked your data through our open source libraries we'll

Yandex Metrica Destination Documentation

Segment makes it easy to send your data to Yandex Metrica (and lots of other destinations). Once you've tracked your data through our open source libraries

IBM Db2 Warehouse Destination Documentation

Use IBM Db2 with Segment to get all of your event and Cloud Source data in a warehouse built by IBM. This guide will walk through what you need to know to

Facebook App Events Destination Documentation

Facebook App Events collects required information from one of Segment’s mobile SDKs (iOS or Android) and sends it from Segment’s servers to Facebook App Ev

What is a destination? Documentation

Destinations are business tools or apps that you can connect via Segment with the flick of a switch. Some of our most popular destinations are Google Analy

Iterable Destination Documentation

Segment makes it easy to send your data to Iterable (and lots of other destinations). Once you've tracked your data through our open source libraries we'll

HitTail Destination Documentation

Segment makes it easy to send your data to HitTail (and lots of other destinations). Once you've tracked your data through our open source libraries we'll