Ugly hack to report fragment metrics to JS interface