November 2019
Beginner
436 pages
8h 52m
English
The Nucleus service allows us to identify our users if we need that level of tracking. When working with analytics data, you may want to know the user's or machine's information.
You can do this when you create a new instance of the Nucleus object. Check out the following example:
const Nucleus = require("electron-nucleus")("<App Id>", { userId: '<unique-identifier>'});
In the preceding code, <unique-identifier> is any value that you can generate on the first application run, such as the GUID. Alternatively, you can have the user provide it, in which case you'll be provided with something such as a login or email address.
You can also specify the user ID at runtime if you don't know the value beforehand. In this case, we ...
Read now
Unlock full access