PHP logging
EventLogging::logEvent( 'PlanOutExperimentExposure', 10745784, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"PlanOutExperimentExposure": 10745784
}
}
}
}
JavaScript logging
mw.track( 'event.PlanOutExperimentExposure', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Logs a user's exposure to a PlanOut experiment." |
---|
properties | name | type | "string" |
---|
required | true |
---|
description | "The name of the experiment." |
---|
|
---|
time | type | "integer" |
---|
required | true |
---|
description | "The time that the user was exposed to the experiment in Unix time." |
---|
|
---|
salt | type | "string" |
---|
required | true |
---|
description | "The experiment-level salt (see http://facebook.github.io/planout/docs/how-planout-works.html)." |
---|
|
---|
userToken | type | "string" |
---|
required | true |
---|
description | "A token that represents a unique user. The token should persist for at least the duration of the experiment." |
---|
|
---|
params | type | "string" |
---|
required | true |
---|
description | "The JSON representation of the experiment parameters assigned to the user." |
---|
|
---|
|
---|