Skip to content

Commit

Permalink
add metric types as well as the metrics themselves
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Jun 3, 2024
1 parent bc46704 commit a02ec35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,11 @@ function getFieldsFromReportMetadata(reportMetadata: Api.ReportMetadata, goals:
if (reportMetadata.module !== 'Actions') {
if (!reportMetadata.metrics?.conversion) {
allMetrics['nb_conversions'] = 'Conversions';
reportMetadata.metricTypes['nb_conversions'] = 'number';
}
if (!reportMetadata.metrics?.revenue) {
allMetrics['revenue'] = 'Revenue';
reportMetadata.metricTypes['revenue'] = 'money';
}
}
}
Expand Down

0 comments on commit a02ec35

Please sign in to comment.