Files
apps.apple.com/src/jet/metrics/settings.ts

21 lines
489 B
TypeScript
Raw Normal View History

2025-11-04 05:03:50 +08:00
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;
},
};
}