Add custom events to successful ATBD creation, update and deletion
Add custom event to ATBD template downloads by format
How to test:
Copy staging tracking code config/local.js
Run the app locally
Create documents, both regular and PDF upload
Update and delete documents
Go to GA dashboard
Click "Reports" and "Realtime" in the left vertical bar
Your events should be listed in Event count by Event name panel
Click atbd_created event, it should include a property named type equal pdfand one equal to regular
Click atbd_template_download it should include a property called template_format with the number of times each template format was downloaded
Please note the "Lifecycle" panel will not change right way as the "Realtime" does. It can take up to 24-48 hours to display the events. I believe the events introduced, along with the preexisting ones (session_start, user_engagement), should be sufficient to generate the required metrics.
Contributes to https://github.com/NASA-IMPACT/nasa-apt/issues/807.
Changes:
How to test:
config/local.js
Event count by Event name
panelatbd_created
event, it should include a property namedtype
equalpdf
and one equal toregular
atbd_template_download
it should include a property calledtemplate_format
with the number of times each template format was downloadedPlease note the "Lifecycle" panel will not change right way as the "Realtime" does. It can take up to 24-48 hours to display the events. I believe the events introduced, along with the preexisting ones (session_start, user_engagement), should be sufficient to generate the required metrics.
@wrynearson ready for review.