Skip to content

Commit

Permalink
chore: added tsdocs (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpaten committed Oct 29, 2024
1 parent afdea19 commit d8c8571
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/Export/common/tracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,21 @@ export function bulkDownloadTracking(
});
}

/**
* Executes event tracking for the file manifest export.
* @param entity_name - Entity (tab) name.
*/
export function fileManifestTracking(entity_name: string): void {
// Track the file manifest requested event.
console.log("tracking file manifest requested event");
console.log(entity_name);
track(EVENT_NAME.INDEX_FILE_MANIFEST_REQUESTED, {
[EVENT_PARAM.ENTITY_NAME]: entity_name,
});
}

/**
* Executes event tracking for the Terra export.
* @param entity_name - Entity (tab) name.
*/
export function exportToTerraTracking(entity_name: string): void {
// Track the export to terra event.
track(EVENT_NAME.INDEX_ANALYZE_IN_TERRA_REQUESTED, {
Expand Down

0 comments on commit d8c8571

Please sign in to comment.