mozilla / testpilot-metrics

Metrics broker library for Test Pilot experiments. Pings Google Analytics and Mozilla metrics servers
Mozilla Public License 2.0
3 stars 7 forks source link

Document how to generate unique user id #5

Open jaredhirsch opened 7 years ago

jaredhirsch commented 7 years ago

This is left up to experiment authors, but it would be helpful to provide guidance.

meandavejustice commented 7 years ago

sdk usage example:

// set our unique identifier for metrics
if (!store.clientUUID) {
   store.clientUUID = require('sdk/util/uuid').uuid().toString().slice(1, -1);
}