Emma Destination


EMMA helps you track campaigns from your trusted networks, Google Ads campaigns, Facebook and Instagram campaigns, and Twitter campaigns. You can also track user activities in your app, so you can send personalizes push notifications and in-app campaigns like banners, start-views etc.

This destination is maintained by EMMA. For any issues with the destination, contact their team.

NOTE: The EMMA Destination is currently in beta, which means that they are still actively developing the destination. This doc was last updated on March 11, 2019. If you are interested in joining their beta program or have any feedback to help improve the EMMA Destination and its documentation, let their team know!

Getting Started

Before you start, make sure EMMA supports the source type and connection mode you’ve chosen to implement. You can learn more about connection modes here.

Web Mobile Server
📱 Device-mode
☁️ Cloud-mode
  1. From your Segment UI’s Destinations page, click “Add Destination”.
  2. Search for “EMMA” in the Destinations Catalog, and confirm the Source you’d like to connect to.
  3. Copy and paste the “API Key” into your Segment Settings UI. You can find your API key on your EMMA Dashboard. To find your API Key follow the steps on this guide.

Identify

If you’re not familiar with the Segment Specs, take a look to understand what the Identify method does. An example call would look like:

analytics.identify('userId123', {
  email: 'john.doe@example.com',
  favoriteFood: 'Healthy food',
  restaurant: 'BCN Mediterranean Food'
});

This method calls in EMMA to method update the user, processing all traits as user tags. Then in EMMA you can segment data, for example to send Push Notifications. In the EMMA SDK this is equivalent to trackUserExtraInfo.

Info can be consulted in all parts on EMMA Dashboard where segmentation is used and Explore section to view analitycs data.

Track

Track calls are sent to EMMA as a trackEvent. It’s necessary to activate the events in our Dashboard.

EMMA identifies the events with a token. This token can be modified using an alias to replace it (only in non-reserved tokens).

Reserved events:

Token Description
Register Used when user is registered in app
Login Used when user is logged in app
Order Completed Used when the user buys a product

Login or register example:

analitycs.track("Login", {
    userId: "97980cfea0067",
    email: "register@email.com"
});

Transaction example:

analitycs.track("Order Completed",{
    "purchase": {
        "orderId": "HTP-123",
        "price": "34",
        "currencyCode":"eur",
        "products": [
            {
                "productId": "PR-890",
                "productName": "Gray jacket",
                "quantity": 1,
                "price": 34
            }
        ]
    }
  }
);

Personas

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

For user-property destinations, an identify call is sent to the destination for each user being added and removed. The property name is the snake_cased version of the audience name, with a true/false value to indicade membership. For example, when a user first completes an order in the last 30 days, Personas sends an Identify call with the property order_completed_last_30days: true. When the user no longer satisfies this condition (for example, it’s been more than 30 days since their last order), Personas sets that value to false.

When you first create an audience, Personas sends an Identify call for every user in that audience. Later audience syncs only send updates for users whose membership has changed since the last sync.

Settings

Segment lets you change these destination settings from the Segment app without having to touch any code.

API Key

https://support.emma.io/hc/en-us/articles/360019026214-How-to-find-you-API-Key

This page was last modified: 09 Jun 2020

Get started with Segment

Segment is the easiest way to integrate your websites & mobile apps data to over 300 analytics and growth tools.
or
Create free account