CE/Vista Reports and Tracking displays summaries of activity. If an instructor seeks to know who clicked on a specific file, then Reports and Tracking falls down on the job.
Course Instructor can produce a report of the raw tracking data. However, access to the role falls under the Administration tab so people running the system need to make a user specifically to enroll themselves at the course level to get the reports. (Annoying.)
Instead the administrators for my campuses pass up to my level of support requests to generate reports. For providing these I have SQL to produce a report. This example is for users who clicked on a specific file. Anything in bold is what the SQL composer will need to alter.
set lines 200 pages 9999 col user format a20 col action format a32 col pagename format a80 clear breaks computes break on User skip 1 compute count of Action on User select tp.user_name "User",ta.name "Action", to_char(tua.event_time,'MM/DD/RR HH24:MI:SS') "Time", NVL(tpg.name,'--') "PageName" from trk_person tp, trk_action ta, trk_user_action tua, trk_page tpg, learning_context lc where tp.id = tua.trk_person_id and ta.id = tua.trk_action_id and tua.trk_page_id = tpg.id (+) and tua.trk_learning_context_id = lc.id and lc.id = 1234567890 and tpg.name like '%filename.doc%' order by tp.user_name,tua.event_time /
Output
- User aka tp.user_name – This is the student’s account.
- Action aka ta.name – This is an artifact of the original script. You might drop it as meaningless from this report.
- Time aka tua.event_time – Day and time the action took place.
- PageName aka tpg.name – Confirmation of the file name. Keep if using like in a select on this.
Considerations
I use the learning context id (lc.id aka learning_context.id) because in my multi-institution environment, the same name of a section could be used in many places. This id ensures I data from multiple sections.
The tricky part is identifying the file name. HTML files generally will show up as the name of in the title tag (hope the instructor never updates it). Office documents generally will show as the file name. Here are a couple approaches to determining how to use tpg.name (aka trk_page.name).
- Look at the file in the user interface.
- Run the report without limiting results to any tpg.name. Identify out of the results the name you wish to search and use:Â tpg.name = ‘page name‘
Most tracked actions do have a page name. However, some actions do not. This SQL is designed to print a “–” in those cases.
Leave a Reply