Skip to content

A simple utility that allows to track actions, items, whatever you need, on Electron based desktop apps

Notifications You must be signed in to change notification settings

fmir86/ElectronAppTracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElectronAppTracking

A simple utility that allows to track actions, items, whatever you need, on Electron based desktop apps

How to use it?

  1. Put the Tracking.js file into your proyect folder, ideally into the root.

  2. Import it into your main index.js file:

const Tracking = require("./Tracking");
  1. Init the component:
app.on("ready", () => {
    Tracking.init();
    // YOUR CODE HERE
})
  1. Finally import Tracking.js on your front-end js script and make tracking requests as follows:
const Tracking = require("../Tracking");

Tracking.trackRequest("slide", "default");

The 2 parameter that thsi method receives are: The name of the item you want to track, and the kind/type.

How it works

It creates a JSON storage file in the root of the app. And based on it, generates a human-readable tracking report in the user's desktop.

About

A simple utility that allows to track actions, items, whatever you need, on Electron based desktop apps

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published