Event tracking with Mixpanel and NodeJs

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • Mixpanel

    Official iOS (Objective-C) Tracking Library for Mixpanel Analytics

    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?

  • Knex

    A query builder for PostgreSQL, MySQL, CockroachDB, SQL Server, SQLite3 and Oracle, designed to be flexible, portable, and fun to use.

    // 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 }); } } }

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts