// example order event
StatsigSidecar.logEvent('Order', null, {
total: 54.66,
units: 3,
unitAvgCost: 18.22
});
```sql
## Post-Experiment Callback for outbound integrations
You can bind a callback that gets invoked after Sidecar has run experiments (also gets called when there are no experiments),
allowing you to run code that processes the experiment assignments as needed.
_This method should be defined anywhere prior to the Sidecar client script._
```js
window.postExperimentCallback = function(statsigClient, experimentIds) {
/**
* add your own callback routine here
* ie; annotating 3rd party analytics tools with assignment info
var evarValue = [];
experimentIds.forEach(function(expId) {
var inExp = statsigClient.getExperiment(expId, { disableExposureLog: true }).groupName;
if(inExp) {
evarValue.push(expId + ':' + inExp);
}
});
evarValue = evarValue.join(',');
*/
}