Analytics integrations overview
Command AI integrates with many popular analytics providers — Amplitude, Heap, Mixpanel, and more.
What is the purpose of these integrations?
Command AI includes some pretty cool analytics dashboards. Can I just use those?
No! (Probably)
Full-scale product analytics is a non-feature in Command AI; it’s not something we plan to build (at least anytime soon). That’s because we think it’s a pretty chunky problem, and we want to focus on our core job of helping users in-product.
There are two obvious areas of overlap between Command AI and product analytics functionality. That’s where these other tools (and our integrations) come in.
- Analyze Command AI-generated data alongside other product data
- Build user audiences (these go by many names — audiences, segments, slices, etc) that can be used in Command AI for targeting
You’ll see us refer to Command AI —> Company integrations; that refers to (1), Command AI sending data to analytics tools. Company —> Command AI means (2) above.
What can I do if I use a product analytics tool you don’t integrate with?
Answer 1: Use a CDP
We integrate with popular CDPs like Segment and Rudderstack. Often, you can use those as a proxy between Command AI and your analytics tool.
Answer: Use our SDK and API
Fear not. Our integrations are a relatively thin layer on top of some pretty basic general-purpose SDK and API methods that you can use to create your own integration with any third-party analytics tools.
Sending data from Command AI
To do this, you can utilize an event subscriber. Simply create an event subscriber and within the body of that subscriber send the event payload to the analytics tool of your choice.
// The function that handles Command AI events
const myHandler = (eventName, eventData) => {
sendToMyTool({ name: eventName, ...eventData });
};
// Subscribe to Command AI events
const unsubPromise = window.CommandBar.addEventSubscriber(myHandler);
// Later, call the function returned by the promise
// to unsubscribe your handler from Command AI events.
unsubPromise.then((unsub) => unsub());
Sending data to Command AI
To send data to Command AI, you can use the strategies described in our User Properties doc.
- Provide audience and other user properties via the
boot
SDK method - Use the
https://api.command.ai/api/{your_org_id}/bulk-identify/
API URL — be sure not to forget the trailing slash!