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

Pulling multiple events in mixpanel raw data api
How to retrieve AB-test data/tweaks from Mixpanel?
How to prevent Mixpanel funnel flow?
Mixpanel cookie not being set
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?

Categories

HOME
shinyapps
facebook-messenger
yahoo-weather-api
yii
workflow
bots
selenium-builder
operating-system
hdfs
vsts-build
mosquitto
azure-data-lake
dji-sdk
haxe
polymer-2.x
cocotb
gtk
stack-overflow
siesta
parsley.js
phpstorm-2017.1
cname
buffer
spring-amqp
dhcp
xbox360
twisted
parceler
home
bluemix-mobile-services
activeadmin
dashdb
bsd
gollum-wiki
fluent-migrator
substring
pyopencl
react-dnd
dragula
android-service
running-object-table
history.js
onchange
django-import-export
microprocessors
materialize
java-stream
autoencoder
netstat
djcelery
mv
game-center
fiware-wirecloud
windows-media-player
deployd
sonatype
extjs4.1
htmlspecialchars
mongodb-aggregation
mechanicalturk
dymola
email-injection
allegro
yui3
metabase
java-2d
ndk-build
mathjs
nunit-console
yii2-model
powerpoint-2013
polymerfire
pack
ui4j
dnx50
auto-generate
relational-model
flow-js
whitespace-language
azure-xplat-cli
android-audiomanager
ssmtp
baseadapter
mod-auth-openidc
cpu-time
flipboard
assetic
saga
apache-shindig
frontbase
yii-booster
unrealscript
sql-view
ax
.net-remoting
blobstorage
arel
ui-design
onconfigurationchanged
getproperty
zotonic
firebird1.5
algol68
servercontrol
startupscript
asp.net-mvc-views
jdownloader
fgetc
spring-modules
data-retrieval
ning
rakudo
twitter-feed
server-load
webclient.uploaddata

Resources

Encrypt Message