Skip to content

Commit

Permalink
feat: added host to event properties (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik authored Oct 10, 2023
2 parents 6124d88 + 0a5fb31 commit dbfdd28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/widget/src/hooks/Phase3/usePhase3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,17 @@ export function usePhase3({ onNext }: IUsePhase3Props) {
onSuccess(uploadData) {
logAmplitudeEvent('RECORDS', {
type: 'invalid',
host: location.host,
records: uploadData.invalidRecords,
});
logAmplitudeEvent('RECORDS', {
type: 'valid',
host: location.host,
records: uploadData.totalRecords - uploadData.invalidRecords,
});
logAmplitudeEvent('RECORDS', {
type: 'total',
host: location.host,
records: uploadData.totalRecords,
});
setUploadInfo(uploadData);
Expand Down

0 comments on commit dbfdd28

Please sign in to comment.