Automates the insertion and removal of SCORM tracking IDs into Adapt courses.
This plugin requires Grunt ~0.4.1
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install adapt-grunt-tracking-ids --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('adapt-grunt-tracking-ids');
There are three available tasks for trackingIds: adapt_insert_tracking_ids
, adapt_reset_tracking_ids
and adapt_remove_tracking_ids
.
In your project's Gruntfile, add a section with each of these names to the data object passed into grunt.initConfig()
. Each section should take the same options. E.g.:
grunt.initConfig({
adapt_insert_tracking_ids: {
options: {
courseFile: "src/course/en/course.json",
blocksFile: "src/course/en/blocks.json"
}
},
})
Type: String
Default value: 'src/course/en/course.json'
A string representation of the JSON file which contains the course information.
Type: String
Default value: 'src/course/en/course.json'
A string representation of the JSON file which contains the blocks for the course.