@financial-times/custom-code-component 2.0.6 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -82,13 +82,13 @@ Initialise the ClientMetrics Adaptor in your project to start listening to CCC E
|
|
|
82
82
|
|
|
83
83
|
```js
|
|
84
84
|
import { MetricsClient } from '@dotcom-reliability-kit/client-metrics-web';
|
|
85
|
-
import * as
|
|
85
|
+
import * as clientMetricsAdaptor from '@financial-times/custom-code-component/client-metrics-adaptor';
|
|
86
86
|
|
|
87
87
|
const client = new MetricsClient({
|
|
88
88
|
// Options go here
|
|
89
89
|
});
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
clientMetricsAdaptor.init(client, {
|
|
92
92
|
enrichEventCb: enrichCCCEventWithHomepageContext,
|
|
93
93
|
shouldIgnoreEventCb: shouldIgnoreCCCEvent,
|
|
94
94
|
});
|