-
Notifications
You must be signed in to change notification settings - Fork 218
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
Analytics event: REPORT_MEDIA #1181
Conversation
Size Change: +6.34 kB (+1%) Total Size: 859 kB
ℹ️ View Unchanged
|
Full-stack documentation: https://docs.openverse.org/_preview/1181 Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again. You can check the GitHub pages deployment action list to see the current status of the deployments. |
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.
Working correctly for all report types.
However, should we also add the DMCA event when users click on the "DMCA form" text which also links to the form?
Sure, great catch! I'll add this. |
40699fa
to
cdf7908
Compare
cdf7908
to
5be593b
Compare
5be593b
to
1a1da4f
Compare
Fixes
Fixes #1082 by @dhruvkb
Description
This PR adds
REPORT_MEDIA
analytics event.The DMCA report uses an external form, and there is no way of getting the actual "report submitted" event programmatically from the app (we can, of course, create some automation for the Google form submission, but that is outside of scope for this PR). I decided to send the event when the user clicks on the "Open form" button for the DMCA report.
The RFC did not contain the
reason
property for the event even though it was mentioned in the docstrings. Do we want to update the RFC, @dhruvkb, or is implementing it here enough?Testing Instructions
Set up the analytics by running
just frontend/init
.Run the app using
just frontend/run dev
.If you click on "Report content" on the single result page, you should see the event in Plausible: http://0.0.0.0:50288/localhost?goal=REPORT_MEDIA
Checklist
Update index.md
).main
) ora parent feature branch.
errors.
Developer Certificate of Origin
Developer Certificate of Origin