Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Found this content helpful? Log in or sign up to leave a like!
Hello,
I'm hoping someone in this group can help with a data query.
For a course, is there any way to track how many users clicked back into the Modules after a specific date? With the New Analytics, I can obtain the number of 'page views' for each week, but there is no count as to how many users were making those page views.
I'm thinking this API call would work:
But I'm in need of coding to run this call for over 5K students in the course site.
Any help is greatly appreciated!
Thank you,
Rosie
Hi @rsasso ,
It really depends on what you need to do with the data once you have it, and how you're getting the information on which courses to query. Are you looking to see how often students log into specific modules, or just how often they access the "modules" tab for a course?
GET /api/v1/courses/:course_id/recent_students gives a list of students in the course, ordered by access date. I'd be inclined to start there and then drop anything older than a week.
If you're using something like the UCF python bindings, it's easy to then take the list of recent users, get their page views, and look for the urls for specific modules with something like:
for pv in user.get_page_views(start_time=YYYY-MM-DDT00:00:00Z) :
if re.search('/<course_id>/modules', pv.url) :
# do something
else :
continue
To participate in the Instructure Community, you need to sign up or log in:
Sign In