can you give me more info on the import api?
Hi Bradley A., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> 👋
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
Sure, the Import API is a feature provided by Mixpanel that allows you to send batches of events from your servers to Mixpanel. Here are some key points about the Import API:- Each request to the Import API can ingest a batch of events into Mixpanel. The API accepts up to 2000 events and 2MB uncompressed per request. Events are part of the request body and the API supports Content-Type: application/json
or application/x-ndjson
. It also supports Content-Encoding: gzip
to reduce network egress. source- The Import API requires an Owner or Admin Service Account for authentication. It also supports Project Token as an authentication method. source- The Import API is built to ingest billions of events per day across Mixpanel's customers. However, it does rate limit at a very high scale to ensure quality of service and real-time ingestion. source- If you're merging Mixpanel projects, you can use the Import API to import data from the old project to the new one. source- If you're migrating from another analytics platform like Adobe Analytics or Amplitude, you can use the Import API to import your historical data to Mixpanel. source, sourceFor more details, you can refer to the Import API documentation.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
kapa.ai does Segment send events in this manner?
Let me check the knowledge base for you again. One moment! 📚
Yes, Segment does send events to Mixpanel. Here's how it works:Segment libraries, known as "Sources", generate messages about what is happening in your site or app, and send them to the Segment servers. Segment then translates the content of those messages into different formats for use by other tools, which are called 'Destinations', and sends the translated messages to those tools. Mixpanel is one of the supported Segment destinations. Segment's Actions framework allows you to configure how Segment sends the data it receives from your source to Mixpanel. For example, when an event type of "track" is triggered in Segment, it can trigger the "Import Event" action in Mixpanel. Here are some preset actions that Segment provides for Mixpanel:- Order Completed Calls: When an event type of "track" and event = "Order Completed" is triggered in Segment, it triggers the "Import Event" action of "Order Completed" in Mixpanel. - Track Calls: When an event type of "track" and event != "Order Completed" is triggered in Segment, it triggers the "Import Event" action in Mixpanel. - Screen Calls: When an event type of "screen" is triggered in Segment, it triggers the "Import Event" action of "Viewed {name}" in Mixpanel. - Identify Calls: When an event type of "identify" is triggered in Segment, it triggers the "Identify User" and "Set Profile Properties" actions in Mixpanel. - Page Calls: When an event type of "page" is triggered in Segment, it triggers the "Import Event" action of "Viewed {name}" in Mixpanel. - Group Calls: When an event type of "group" is triggered in Segment, it triggers the "Identify Group" action in Mixpanel.For more details, you can refer to the Segment Integration documentation. source
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
kapa.ai Does Segment send events to Mixpanel using the import api?
Let me check the knowledge base for you again. One moment! 📚
Yes, Segment does send events to Mixpanel and it uses the Import API for certain types of events. Here's how it works:Segment's Actions framework allows you to configure how Segment sends the data it receives from your source to Mixpanel. For example, when an event type of "track" is triggered in Segment, it can trigger the "Import Event" action in Mixpanel. Here are some preset actions that Segment provides for Mixpanel:- Order Completed Calls: When an event type of "track" and event = "Order Completed" is triggered in Segment, it triggers the "Import Event" action of "Order Completed" in Mixpanel. - Track Calls: When an event type of "track" and event != "Order Completed" is triggered in Segment, it triggers the "Import Event" action in Mixpanel. - Screen Calls: When an event type of "screen" is triggered in Segment, it triggers the "Import Event" action of "Viewed {name}" in Mixpanel. - Page Calls: When an event type of "page" is triggered in Segment, it triggers the "Import Event" action of "Viewed {name}" in Mixpanel.These "Import Event" actions are likely to be using Mixpanel's Import API to send the events to Mixpanel.For more details, you can refer to the Segment Integration documentation. source
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.