blob: c0c5075d3880d4cb7c8fbfa8a7608bf75ab3c2ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import type { MetricSettings } from '@amp/web-apps-metrics-8';
/**
* Generates a metric settings for Metrics class.
*
* @param context - app context map
* @returns MetricSettings
*/
export function makeMetricsSettings(
context: Map<string, unknown>,
): MetricSettings {
return {
shouldEnableFunnelKit: function (): boolean {
return false;
},
getConsumerId: async function (): Promise<string> {
return null;
},
};
}
|