-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TAS-2787] 📈 Add logging for PDF download event #2007
[TAS-2787] 📈 Add logging for PDF download event #2007
Conversation
src/pages/reader/pdf.vue
Outdated
}, | ||
1 | ||
); | ||
console.log(`PDF downloaded: ${event.data.filename}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove unneeded console.log
src/pages/reader/pdf.vue
Outdated
logTrackerEvent( | ||
this, | ||
'ReaderPdf', | ||
'PDFDownloaded', | ||
{ | ||
classId: this.classId, | ||
filename: event.data.filename, | ||
}, | ||
1 | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4th param does not expect object
and maybe we should name it as present tense since download is not completed at this point
logTrackerEvent( | |
this, | |
'ReaderPdf', | |
'PDFDownloaded', | |
{ | |
classId: this.classId, | |
filename: event.data.filename, | |
}, | |
1 | |
); | |
logTrackerEvent( | |
this, | |
'ReaderPdf', | |
'ReaderDownloadPdf', | |
classId: this.classId, | |
1 | |
); |
src/pages/reader/pdf.vue
Outdated
} | ||
if (event.data.event === 'pdfDownload') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
if (event.data.event === 'pdfDownload') { | |
} else if (event.data.event === 'pdfDownload') { |
listen event from likecoin/pdf.js#10