Socket
Socket
Sign inDemoInstall

heap-to-mp

Package Overview
Dependencies
85
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    heap-to-mp

basic CLI for moving heap data to mixpanel


Version published
Weekly downloads
4
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

heap-to-mp

this module will take in (uncompressed) heap raw json files, transform them, and send them to mixpanel.

it is implemented as a CLI and requires Node.js.

it expects that you are using Mixpanel's simplified identity management

usage:

npx heap-to-mp --dir ./data --type event --token your-token --secret your-secret --project 123

help / options

npx heap-to-mp --help

e2e

# first import user profiles
npx heap-to-mp --dir ./heap-user-export/ --type user --token your-token --secret your-secret --project 123
# then EXPORT the profiles you just imported 
# and build a device_id mapping, which is saved to disk
npx heap-to-mp --get_map --secret your-secret
# finally import events, using the device mappings
npx heap-to-mp --device_id_map ./user-device-mappings.json --dir ./heap-event-export/ --type event --token your-token --secret your-secret --project 123

for the full reasoning of why this workflow is necessary, see comments in get-device-user-map.js

Keywords

FAQs

Last updated on 18 Sep 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc