Software Alternatives & Reviews

Event tracking with Mixpanel and NodeJs

Mixpanel Knex.js
  1. Mixpanel is the most advanced analytics platform in the world for mobile & web.
    Pricing:
    • Open Source
    Mixpanel NodeJs library's functions are built as callback and our code base is an ExpressJs app encapsulated in an AWS Lambda using the serverless framework "I'll share why in another post" and in our code base we are using async/await, And the question at that time was how to integrate the callback behaviour inside an async/await function?

    #Analytics #Web Analytics #User Analytics 22 social mentions

  2. SQL query builder for Postgres, MySQL, MariaDB, SQLite3, and Oracle
    Pricing:
    • Open Source
    // Customer Model // path: /src/models/customer-model.js // database interface instance // we are using knex.js -> https://knexjs.org Const db = require('../configs/database-configs.js'); Const mixpanel = require('../services/mixpanel-service.js'); Class Customer extends User { constructor(fullName, email, address, brand) { super(fullName, email, address); } async create() { const { fullName, email, address, brand } = this; try { await db('customers').insert({ fullName, email, address, brand }); await mixpanel.track('customer creation succeed', { fullName, email, address, brand }); } catch (error) { await mixpanel.track('customer creation failed', { fullName, email, address, brand }); } } }.

    #Database Management #MySQL Tools #Databases 57 social mentions

Discuss: Event tracking with Mixpanel and NodeJs

Log in or Post with