mixpanel


how to get total number of mixpanel events via API


Can I get total number of events (=data points) for a time period?
The 'events' method (http://mixpanel.com/api/2.0/events/)
seems almost what I need, it's just that it requires a list of event names, and I need the total count of my events, I do not have the names.
I could not find this one in the API.
You can first hit the events by name API to return the list of your events at http://mixpanel.com/api/2.0/events/names/. Then, you can pump the return as a list into your request to http://mixpanel.com/api/2.0/events/ to get the count for each of your events.
Depending on your usage case, it may make more sense to use a URL hack on the main segmentation report instead of hitting the API. If you add union:1 as a new parameter to the URL (they are comma separated at the end) the report will display the union of all your events over a time period -- if you are viewing totals, this will be the total event count.
You can use the JQL console within Mixpanel, under the "Applications" menu in the left-nav. Just run the following, and it'll count the total number of events. See the JQL API reference here: https://mixpanel.com/help/reference/jql/api-reference#api/concepts
function main() {
return Events({
from_date: '2010-02-02',
to_date: '2017-02-03'
}).reduce(mixpanel.reducer.count());
}
// 989322

Related Links

Mixpanel Android - consecutive timeEvent requests scenario
Mixpanel: event color in activity feed
how to see value of distinct_id in Mixpanel
Is there a wildcard character for the Mixpanel API “export” method “event” parameter?
how to do mixpanel.people.increment in Segment
how to get total number of mixpanel events via API
creating a profile with mixpanel to track users not working
How to deal with users who signed up before Mixpanel alias was set up?
Mixpanel — delete user with all past data
Google Mobile Analytics Event Tracking: Multiple properties to describe an event in google analytics
Mixpanel how to check if user exist?
Can I use data attributes as a selectors for Mixpanel mixpanel.track_links?
Where do I set user profile in my code for registered users and the users who are going to register in future using Mixpanel?
What does Mixpanel's $signup event do?
Mixpanel: distinct_id being set but events not recording against profile
How to export Mixpanel events, segmented by time?

Categories

HOME
android-espresso
transactions
informatica
moodle-api
jint
google-search-console
firebase-database
graphdb
game-maker
documentum
bundler
squirrel-sql
l20n
fosuserbundle
string-formatting
boomi
cloudsim
psql
parceler
libgit2
sharedpreferences
kaggle
altium-designer
exchange-server-2010
unordered-multimap
webviewclient
crud
network-analysis
annotation-processing
splunk-query
snap-framework
mongodb-3.4
epplus
xerces-c
des
ms-dos
ng-repeat
stat
aws-kinesis-firehose
android-5.0-lollipop
openstack-glance
webvtt
http-basic-authentication
dex
kendo-treeview
gapi
haraka
svnserve
zynq
traversable
android-4.2-jelly-bean
declarative
perforce-integrate
mnesia
vimperator
myfaces
deeplink
linuxbrew
bjam
explain
console.log
scala-swing
sablecc
camus
maven-shade-plugin
directorysearcher
flurry-analytics
rebar
igor
storing-data
visual-c++-2012
aho-corasick
distributed-r
senchatouch-2.4
redpitaya
bittorrent-sync
air-native-extension
jms-serializer
mp4parser
disjoint-union
simplecov
daap
prefuse
platform-independent
yuidoc
servlet-container
dip
active-record-query
urchin
rawcontacts
.net-client-profile
autobench

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App