Skip to content

Release 1.2.0 — Fast & Easy Integration

Released: March 21, 2023

TL;DR

Get started with Sumatra faster and easier with streamlined integration and onboarding. Sign up for a free plan, and start sending events immediately with one of our new real-time data integrations. Then copy-paste one of our pre-built Recipes to add powerful automated decisioning to your product.

  1. Easy setup with new integrations and snippets
  2. Free tier and usage-based pricing
  3. Start fast with a recipe
  4. Free white-glove onboarding

Easy setup with new integrations and snippets

Segment integration

segment

If you already use Segment, sending event data to Sumatra is as easy as adding a destination. Configure a new "Webhook (Actions)" destination with your Sumatra API Key and URL and start receiving events immediately.

Read more: Segment Setup documentation

JavaScript snippet

<script type="text/javascript">
    !function(){var sumatra=window.sumatra=window.sumatra||[];sumatra.methods=["load","track","enrich","ready","registerAnalyticsSource"],sumatra.factory=function(t){return function(){sumatra.push([t].concat(Array.prototype.slice.call(arguments)))}};for(var t=0;t<sumatra.methods.length;t++){var r=sumatra.methods[t];sumatra[r]=sumatra.factory(r)}sumatra.loadJS=function(e,t){var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://cdn.sumatra.ai/v1/sumatra-sdk.min.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a)},sumatra.loadJS(),
    sumatra.load("SUMATRA_API_KEY", "https://api.sumatra.ai")
    }();
</script>

Instrument your site or application with an easy-to-use JS snippet. Add the Sumatra snippet to your site or tag manager and start tracking the events and attributes you care about.

Read more: JavaScript Setup documentation

Python

import sumatra
sumatra.api_key = "SUMATRA_API_KEY"
sumatra.event_url = "https://api.sumatra.ai/event"
# track
sumatra.track("event_type", **data)
# enrich
response = sumatra.enrich("event_type", **data)
import sumatra
async with sumatra.SDKClient(api_key="SUMATRA_API_KEY", event_url="https://api.sumatra.ai/event") as client:
    # track
    await client.track_async("event_type", **data)
    # enrich
    response = await client.enrich_async("event_type", **data)

The new Python SDK is compatible with both sync and async frameworks to make it easy to send event data from any Python-based backend. Pip install the SDK and follow the examples to get started.

Read more: Python Setup documentation

REST API

curl --request POST \
  --url 'https://api.sumatra.ai/event?features' \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: SUMATRA_API_KEY' \
  --data '{
    "_type": "my_event_type",
    "id": "7"
}'

Application developers can access the Sumatra Event API directly for advanced use cases and custom integrations. It uses a REST interface and your private Sumatra API Key.

Read more: API documentation

Free tier and usage-based pricing

plans

Get started with our new free tier! It's not a free trial—there's no end date. Use it as long as you want up to 100K monthly events.

When you outgrow it, you won't be forced to upgrade to a huge, expensive plan. Our pricing scales with you as your company grows.

Read more: Plans and Pricing

Start fast with a recipe

recipe

Introducing Recipes to get you started faster! We started with 3 new recipes to help you solve your most pressing fraud problems.

Looking for a different use case? Email us a recipe idea at hello@sumatra.ai.

Free expert setup

ALL plans now include free setup, in addition to unlimited support by Slack or email. A Sumatra expert will set up your workspace, show you how to use it, and even guide you through adding a data integration or instrumenting your product.

Schedule your free 30-minute expert setup today!

Questions or feedback?

Questions or feedback about this release? Email us at hello@sumatra.ai or message us in our Slack Community!