Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9165097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:50:07+00:00 2026-06-17T14:50:07+00:00

My client is looking to set up a complex mixpanel tracking system on their

  • 0

My client is looking to set up a complex mixpanel tracking system on their Rails 3.2 app that contains extensive backbone.js functionality.

I want to abstract the mixpanel functionality into some sort of module (as opposed to having the calls sprinkled throughout the existing codebase).

One of the requirements is that the mixpanel calls don’t get fired until a successful action, so I don’t think I can attach the mixpanel calls to DOM elements.

My additional thought was to create some kind of mediator object in javascript that subscribes to the various backbone events that are needing to be tracked. However, only about half of the events that I need to track are in backbone, which makes me feel like I don’t think I can use mixpanel in js at all.

Maybe a lib class that listens to the rails models?

Any thoughts or advice?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:50:09+00:00Added an answer on June 17, 2026 at 2:50 pm

    We ran into this same problem about six months ago, and decided to build an open source javascript library that would abstract Mixpanel’s functionality across all the analytics services we use, including KISSmetrics, Google Analytics, Chartbeat, etc.

    You can check it out at http://segmentio.github.com/analytics.js

    The result is a simple API where you can call analytics.track() or analytics.identify() in one line of code, and send data to all the different providers.

    The library also has helper functions like analytics.trackLink() and analytics.trackForm() to make it easier to track outbound clicks and form submissions, which usually cause the page to reload before the events can get sent. Those functions introduce slight delays to let the events get out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for a client software that will run on a Unix system
I'm looking for an SQL client app that can display subdatasheets like the following:
I am looking for an svn client and host that I can easily set
I'm looking to write a set of system integration tests for an RMI client
I am looking for a python SOAP 1.2 client but it seems that it
i am looking to set the MQ Header field 'PutApplName' in my java client
I'm looking to narrow a query set for a form field that has a
I'm looking for a java socks Proxy client class that supports authetication, any suggestions?
I'm looking to write a small client-server-based text game that handles multiple client connections
I am looking to set up a central point of control for settings that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.