This project downloads the page view summary for each user in a course and outputs a CSV with the following headers:
- canvas_id: Canvas User ID.
- page_views: The number of page views of the user.
These instructions will get you a copy of the project up and running on your local machine for use with your own API tokens and Canvas domains.
- Install Node 10 or greater.
- Install Git.
- Create a
.env
file. - Generate Canvas API token and copy it to clipboard.
- Add the following:
CANVAS_API_TOKEN={YOUR API TOKEN}
andCANVAS_API_DOMAIN={YOUR API DOMAIN}
. An exampleCANVAS_API_DOMAIN
ishttps://{school}.instructure.com/api/v1
- Clone this repo.
git clone https://github.com/ubccapico/canvas-page-view-analytics-summary
- Then cd into the repo.
cd canvas-page-view-analytics-summary
- Run the installation script.
npm install
(If you seebabel-node: command not found
, you've missed this step.) - Open
index.js
and supply the Canvas course IDs where it says/* add Canvas course IDs here */
. - Run the script.
npm start
. - An
{Canvas course id}-pageviews.csv
file should be generated for each Canvas course ID.
- justin0022 - Justin Lee <[email protected]>
This project is licensed under the GNU General Public License v3.0.