/functions-library

A library of example functions to use with the Segment Developer Center

Primary LanguageJavaScriptMIT LicenseMIT

Segment Functions Library

This repository contains a set of community-generated functions, to serve as examples to base your own functions upon. If you're building out a new integration, or a custom piece of code that you want Segment to run, use this repo as the set of examples.

Sources

Destinations

  • Airtable - Capture user feedback and send through to your Airtable
  • Follow Along - Generates Fullstory links and sends to Slack
  • Requestbin - Sends events to RequestBin for introspection
  • Slack - Adds a Gravatar icon to events with an email and sends messages to Slack
  • Zendesk - Create new Zendesk tickets triggered by events that you send
  • Datadog - Sends a metric to datadog with high level message/event type as tags
  • Optimizely - Sends conversion metrix to optimizely.

Development

Run tests with:

yarn && yarn test