1.0.2 • Published 4 years ago

tmn-batch-alias-mixpanel v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Batch Alias Mixpanel

Install

Using npm, if you doesn't have NodeJS in your machine, please install latest version.

npm i tmn-batch-alias-mixpanel -g

Setup Project

  1. create folder for configuration
  2. go to that folder
  3. create .env file with this content
MIXPANEL_TOKEN=xxxxxxxxx
MIXPANEL_SERVICE_ACCOUNT=
MIXPANEL_SECRET=

Mixpanel Service Account & Secret can create in Service Account menu in project setting

  1. copy your csv file to subfolder called data
  2. run batch from cli
tmn-batch-alias-mixpanel

CSV Specification

csv file should contains 2 column. distinctID and tmnID. Header in csv file is required.

Example

distinctID,tmnID
54b0b39b0313fa69f6c8e29bc5d046d65e690f17,tmn.10012345678
441a9f65e970b362130ec968df05b6c5fbd0b396,tmn.10012345679