GithubHelp home page GithubHelp logo

Comments (6)

tesarwijaya avatar tesarwijaya commented on June 12, 2024

hello @dustinlarimer i might help with this issue, but still confusing with the approach. in this issue you reference using vue plugin but then i see in react example using flux, because i think vue equivalent of flux is vuex. if you want an implementation using vuex, i can help you.

from keen-tracking.js.

dustinlarimer avatar dustinlarimer commented on June 12, 2024

@tesarwijaya thanks for the offer – Vuex looks super cool.. perhaps it might look something like this?

const Keen = require('keen-tracking');
const client = new Keen({
  /* Configure */
});
client.extendEvents(() => {
  /* Baseline Data Model */
});

const keenPlugin = store => {
  // called when the store is initialized
  store.subscribe((mutation, state) => {
    client.deferEvent('app-actions', {
      'mutation': mutation,
      'state': state
    });
  });
};

Is there a better approach to this? Vue.js is rather new to me, so if you have any suggestions I'd love to hear them! Perhaps there are multiple instrumentation strategies to cover in addition to Vuex?

from keen-tracking.js.

tesarwijaya avatar tesarwijaya commented on June 12, 2024

that's exactly what i want to try. and i think that is ideal to approach.

from keen-tracking.js.

dustinlarimer avatar dustinlarimer commented on June 12, 2024

Great! If you would like to tackle it, then go right ahead 🚀

from keen-tracking.js.

tesarwijaya avatar tesarwijaya commented on June 12, 2024

gonna make PR asap 👍

from keen-tracking.js.

dustinlarimer avatar dustinlarimer commented on June 12, 2024

@tesarwijaya thanks for your help on this! Please shoot an email to [email protected] 👍

from keen-tracking.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.