mixpanel


how to do mixpanel.people.increment in Segment


I'm using Segment and have Mixpanel enabled. I used to track our user's life time revenue like this:
mixpanel.people.increment('Lifetime Revenue', 21.99);
The question is how do I do this in Segment?
Looked everywhere, it seems like they do have increment setting under advanced setting. However, I still don't know how to fire those events/trackers.
Thanks!
I too was wondering on how to do this, based on Mixpanel's article (https://mixpanel.com/blog/2014/07/21/revenue-best-practices). I did a lot of back and forth with Segment's tech support, and after a couple of days of repeatedly telling them to read the article, they finally got me to an engineer who actually read it, and was able to answer my question about this as well. Here's his answer:
It looks like a few things need to happen for this lifetime revenue value to be tracked.
First, track_charge needs to be called. Fortunately we're already firing a track_charge call when revenue is passed as a trait in track calls. You can see where that happens in the code here.
Secondly, a the people.increment() needs to be called. We also fire this on the page as you can see here, but it doesn't look like we currently have a way to pass through the revenue in that people.increment call.
Looks like your best bet here would be to fire off the increment and set calls directly. As you may know, we're loading the Mixpanel library on the page so all you have to do is execute the calls within an analytics.ready() method. Doing so ensures that the native calls only fire when the Mixpanel library has properly loaded on the page.
For reference, here are the calls you'd want to place within the ready() method.
mixpanel.people.increment("Lifetime Value", 27);
mixpanel.people.set("Last Item Purchase", new Date.toISOString());
To increment events, log into your account at Segment.com, select the Mixpanel integration, then select "Advanced Options". Within "Advanced Options", there's a text field labeled "Events to Increment in People" where you can specify events you'd like to be incremented.

Related Links

Identify Mixpanel user actions that occured before login
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

Categories

HOME
tcsh
websocket
celery
malware
impala
ui-automation
telegraf
tup
locationmanager
alljoyn
corona
sonicwall
user-defined-types
gmp
tfsbuild
adminlte
spring-shell
pymongo
cell
software-packaging
nurbs
rust-cargo
custom-keyboard
adminer
xerces-c
ng-repeat
android-n
google-now
oauth2
grunt-contrib-watch
uipickerview
resampling
viewcontroller
spooler
notesview
nuclio
rightnow-crm
ssi
spring.net
embedded-v8
aurelia-fetch-client
gtk#
word-2007
1010
scheduledexecutorservice
multi-touch
oci
wolfram-language
distributed-cache
persistent-object-store
juniper-network-connect
html.actionlink
angular-amd
web-api
prism-4
thoughtworks-go
nachos
reference-counting
bittorrent-sync
iosched
meteorite
infinite
apache-shindig
codahale-metrics
coalesce
acceptance-testing
nsmutablestring
getproperty
type-safety
sigar
zend-server-ce
django-apps
firefly-mv
page-curl
tablet-pc
webresponse
mongrel
activestate
odac
pinax
facebook-fbml
mysqli-multi-query
efs

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