Skip to content

Release 1.2.0 — Fast & Easy Integration

Released: March 21, 2023


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


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(}};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="";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a)},sumatra.loadJS(),
    sumatra.load("SUMATRA_API_KEY", "")

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


import sumatra
sumatra.api_key = "SUMATRA_API_KEY"
sumatra.event_url = ""
# 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="") 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


curl --request POST \
  --url '' \
  --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


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


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

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 or message us in our Slack Community!